Re: finding out the value of HZ from userspace
From: Jamie Lokier
Date: Thu Mar 25 2004 - 12:44:34 EST
Peter Williams wrote:
> >Will this be USER_HZ or kernel HZ?
> >Someone earlier suggested it would be USER_HZ which would make it
> It has to be whatever enables user space to correctly interpret values
> sent to user space as "ticks". That means USER_HZ and it's not useless
> as it enables USER_HZ to be different and/or change without breaking
> programs that use values expressed in "ticks".
It is, however, useless for the _other_ reasons userspace needs to
know kernel HZ, including as I mentioned userspace timer granularity.
(Btw, that usage would be better as a period rather than a frequency,
so that a "tickless" kernel can report zero).
The fundamental problem is that there are two values, and both values
have programs which can usefully use them.
How hard can it be to export both?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/