Date: Fri, 6 Sep 1996 14:14:12 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: hackers@freebsd.org Subject: Faster kern.clockrate ? Message-ID: <199609061214.OAA00692@labinfo.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
Hi, for my dummynet stuff, I would like to have a finer clock granularity than the default 10ms: 1ms would probably be ok. There shouldn't be so much overhead (after all, I started using FreeBSD on a 386/25, and now I have a Pentium100!). I have been thinking of changing the value of hz (assumed I can find there it is initialized), but there are so many lines of code with hz == 100 100 / hz hz / 100 which makes me think that this is a bit dangerous. Otherwise, I thought I could initialize the timer (timer0, I guess) so as to interrupt faster, and then manage to call hardclock() every 10ms. Still, has anyone already done something similar ? And, what are the implications of this approach with other timers ? Thanks Luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609061214.OAA00692>