mardi 24 février 2015

Java algorithm performance difference between Linux and Windows

We observe a very significant performance difference of an algorithm in java between Linux (ubuntu) and Windows. The difference is 3x-4x in favor of Windows. Test machine is i3770 quad core (8 logical cores). Under Linux, all the cores have the same load: about 50% is spent in userspace and 50% in kernel. Under Windows 80% is spent in user mode, 20% in kernel.


Recently we doubled Linux performance using “chrt” command: “chrt -f 99 java …” which enables FIFO_SCHED scheduling for the java process.


We suspect that Linux needlessly switches between tasks too many times.


Is there a way to increase java performance on Linux to match Windows performance?


Aucun commentaire:

Enregistrer un commentaire