public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to know HZ from userspace?
@ 2001-05-30 23:37 Harald Welte
  2001-05-31  0:07 ` H. Peter Anvin
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Harald Welte @ 2001-05-30 23:37 UTC (permalink / raw)
  To: linux-kernel

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.

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)

^ permalink raw reply	[flat|nested] 24+ messages in thread
[parent not found: <XFMail.20010601083302.peterw@dascom.com.au>]

end of thread, other threads:[~2001-06-07  0:00 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-30 23:37 How to know HZ from userspace? Harald Welte
2001-05-31  0:07 ` H. Peter Anvin
2001-05-31  0:22   ` Joel Becker
2001-05-31  0:24   ` Jonathan Lundell
2001-05-31  0:38     ` Joel Becker
2001-05-31  0:44       ` Jonathan Lundell
2001-05-31  1:02         ` Mike Castle
2001-05-31 17:12         ` Daniel Phillips
2001-05-31  1:17       ` Martin Dalecki
2001-05-31  3:23     ` Albert D. Cahalan
2001-06-01  1:57   ` Ralf Baechle
2001-06-01  4:12     ` H. Peter Anvin
2001-06-01  8:17       ` Chris Wedgwood
2001-05-31  3:40 ` Albert D. Cahalan
2001-05-31 15:52   ` Harald Welte
2001-05-31 17:06     ` H. Peter Anvin
2001-06-03 23:14 ` Erik Tews
2001-06-06 18:09 ` Tomas Telensky
2001-06-06 18:22   ` Harald Welte
2001-06-06 18:59     ` Tomas Telensky
2001-06-06 20:47       ` Harald Welte
2001-06-06 20:55 ` Linus Torvalds
2001-06-06 23:59   ` Chris Wedgwood
     [not found] <XFMail.20010601083302.peterw@dascom.com.au>
2001-05-31 22:43 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox