It doesn't have to Hertz

8:03 PM

When doing some performance analysis, it is necessary to know the smallest kernel time slice. This value is buried in the kernel headers and config system. So, how do you find what this value is without installing the kernel source or the kernel headers? Easy. Use Perl!
$ perl -e 'use POSIX; print POSIX::sysconf(&POSIX::_SC_CLK_TCK) . "\n";'
100
Just copy-n-paste the perl statement onto a command line and press Enter. Root privileges not necessary.

You Might Also Like

0 comments

Contact Form

Name

Email *

Message *

Translate

Wikipedia

Search results