deft
deft copied to clipboard
Thread priorities
Its possible to lower the priority (nice level) of a thread without beeing root (thanks to a bug in suns jvm implementation, http://tech.stolsvik.com/2010/01/linux-java-thread-priorities-workaround.html)
Unfortunately its not possible to raise the priority with this "hack". But it would still be interesting so see if we can detect any performance differences when changing the io loops thread priority (to java.lang.Thread.MAX_PRIORITY)
-XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42
(idea from CASSANDRA-1181)