You can also try mod_posix_timer if you have it built. My CentOS 5.4 server performs better under load using it with heavy-timer vs using the default timer.
"timer_test 20 50 posix"
Ok, I'll try disabling the nanosleep.In server.2 the current load of the box is 35% and after FreeSwitch (at 750% of cpu), in top there is Sangoma Transcoding server (4% of cpu).The result of "timer_test 20 50" is:
Here the result of "timer_test 10 50" :It's normal that only the timer_test on 20 is bad where 10ms is good and also is good 40,60,120?:Stephen