Subject: Re: /kern/hz
To: Mark <mindfunk@mindfunk.net>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-help
Date: 10/01/2003 10:46:39
Mark <mindfunk@mindfunk.net> writes:
> What does the value in /kern/hz measure? Is it the FSB speed?
> The value in mine, when read as mhz, seems too slow to be FSB or CPU
> frequency.

It measures the number of hardclock interrupts the system has set
itself up to get per second. HZ is used throughout the kernel for
various purposes.

On some systems, this ends up being the granularity of the system time
of day clock. (On other systems, CPU cycle counters and similar hacks
are used to provide much finer time of day resolution.)

On most systems, this is the granularity with which system timer
events can go off.

The value is generally somewhere between 60hz and 2048hz. It is
generally port specific -- the default on x86 is 100, for example.

-- 
Perry E. Metzger		perry@piermont.com