Maharaja
Registered: Feb 2004
Posts: 373 |
11-04-09 12:55 AM
Quote from dcraig:
I think you misunderstand what nice is intended to do. It really means "be nice to others". ie if you have a process that is hogging CPU increase the nice value so that other processes get more of a fair go.
As for Java performance, you might try a server JVM. I think that they are more inclined to do the JIT thing after fewer code iterations than the workstation variant. Garbage collection is significantly different though.
In any case does 10ms really make much of a difference? It is likely to be swamped by internet latencies, broker latencies (margin checking, order routing etc) and exchange processing etc.
From "info nice":
"A niceness should not be confused with a scheduling priority, which lets applications determine the order in which threads are scheduled to run. Unlike a priority, a niceness is merely advice to the scheduler, which the scheduler is free to ignore."
I guess it doesn't hurt to turn the nice value negative through right?
I can try the server thing and maybe even experiment with some GC settings.
The funny thing is you are right. 10ms doesn't make a huge difference, it's merely an obsession thing. I want the program to be the best I can make it, nothing less.
|