01-19-2009, 01:19 AM
iliketohostservers Wrote:Im getting 260, good or bad? I believe my kernels 1000hz
in theory, you should get 250, as the usleep should sleep for 250 usecs. in reality you will not achieve this, especially if you dont give realtime scheduling and priority to the process, so 260 is pretty normal (i got 258 most of the time).
it should only demonstrate that usleep does not depend on kernel HZ. if it would, you could not get below 1000 usecs on a HZ=1000 kernel.
its not meant to be some kind of benchmark ^^
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!