From: Andreas Hasenack <ahasenack@terra.com.br>
To: lartc@vger.kernel.org
Subject: [LARTC] userlevel should not need to know about HZ?
Date: Thu, 23 Feb 2006 20:21:46 +0000 [thread overview]
Message-ID: <20060223202145.GL3411@mandriva.com> (raw)
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
next reply other threads:[~2006-02-23 20:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-23 20:21 Andreas Hasenack [this message]
2006-02-23 22:47 ` [LARTC] userlevel should not need to know about HZ? Andreas Klauer
2006-02-23 23:45 ` Andreas Hasenack
2006-02-25 11:53 ` Andy Furniss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060223202145.GL3411@mandriva.com \
--to=ahasenack@terra.com.br \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.