Dan Crosta
unread,May 8, 2013, 11:19:07 AM5/8/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tokyocabi...@googlegroups.com
We have a Kyoto Tycoon server set up with about 110M keys, about 20G on-disk size, and the following startup options:
ktserver -ls -port 3003 -plsv /usr/libexec/ktplugservmemc.so -plex 'port=3103#opts=f' -sid 1 -ulog /path/to/kyoto.ulog -rts /path/to/kyoto.rts -cmd /path/to/bin '/path/to/kyoto.kch#opts=l#bnum=20000000#msiz=30g#dfunit=8'
The machine has 48G physical RAM, about 40G of which is used for filesystem cache (about half of that is, I presume, the ~20G kch file that is mmaped into ktserver?). ktserver is under constant but relatively low volumes of constant write activity -- about 500 to 1000 keys per second, more or less random distribution over the keyspace.
Much of the time, the database works great -- lookups reliably take < 1ms. However, every 5-20 minutes (it is not regular, but usually within that window of time) we get an approximately 5 minute burst of heavy IO activity, during which time the disk subsytem is 100% utilized. These periods last 4-5 minutes, and during that time, the kernel "flush-N:M" threads, which are responsible for flushing dirty pages to disk, are using the majority of the IO subsystem. This causes slowdowns for readers from the database, as well as another (small) database also hosted on the same machine.
I'm wondering if anyone has run into a situation like this, or has any recommendations for ways to tune the Kyoto Tycoon settings to help mitigate this?
Thanks,
- Dan