[lkml]   [2001]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How to know HZ from userspace?
On Wed, May 30, 2001 at 08:37:25PM -0300, Harald Welte wrote:
> Hi!
> Is there any way to read out the compile-time HZ value of the kernel?
> I had a brief look at /proc/* and didn't find anything.
> The background, why it is needed:
> There are certain settings, for example the icmp rate limiting values,
> which can be set using sysctl. Those setting are basically derived from
> HZ values (1*HZ, for example).
> If you now want to set those values from a userspace program / script in
> a portable manner, you need to be able to find out of HZ of the currently
> running kernel.

Have a look at the source of top. There is a lib which can help you to
find out HZ by reading some files from proc.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:54    [W:0.563 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site