All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] userlevel should not need to know about HZ?
@ 2006-02-23 20:21 Andreas Hasenack
  2006-02-23 22:47 ` Andreas Klauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andreas Hasenack @ 2006-02-23 20:21 UTC (permalink / raw)
  To: lartc

Kernel people tell me users should never need to know the value of HZ
used by the currently running kernel. One kernel hacker even told me
that Linus once changed the value from 100 to 1000 just to see user
space programs break.

However, it is needed for the buffer parameter in TBF. The tc-tbf(8)
manpage:

	If your buffer is too small, packets may be dropped because more
	tokens arrive per timer tick than fit in your bucket.  The mini-
	mum buffer size can be calculated by dividing the rate by HZ.

My kernel (2.6.12), for example, doesn't have a CONFIG option in
/proc/config.gz. I only found out the correct HZ value by looking into
/usr/include/asm/param.h, and even there are two values: 1000 for
__KERNEL__ and 250 for the rest. Newer kernels have CONFIG options and
1000 is just one of the possible values.

So, how do we reliably calculate the minimum value for buffer/burst/maxburts?

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-25 11:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 20:21 [LARTC] userlevel should not need to know about HZ? Andreas Hasenack
2006-02-23 22:47 ` Andreas Klauer
2006-02-23 23:45 ` Andreas Hasenack
2006-02-25 11:53 ` Andy Furniss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.