Re: option HZ=?



On Wed, Jan 30, 2008 at 02:55:30PM +0200, Stefan Lambrev wrote:
Greetings,

I want to know what is the bad effect of increasing HZ too much?
And when is too much? What problems can I expect when HZ>2000?
Can I change this value without pre-compiling the kernel?

You can change HZ by adding a line to /boot/loader.conf like this:

kern.hz="100"

(it works on RELENG_6 and RELENG_7 and I'm using this conservative
setting on all my boxes, since I don't need faster context switching)

If you set HZ too high, the kernel will spend too much overhead
on unnecessary context switching, and it may even reach a point
(with very high values of HZ) where interrupt service routines
get interrupted way too often by clock ticks; i.e. interrupts
would eventually come in faster than the kernel can service them.

Because all docs I found for HZ is in src/sys/conf/NOTES and it doesn't say
much.

-cpghost.

--
Cordula's Web. http://www.cordula.ws/
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: option HZ=?
    ... Can I change this value without pre-compiling the kernel? ... since I don't need faster context switching) ... where interrupt service routines ...
    (freebsd-stable)
  • Re: Interrupt context...
    ... > gone through most of the posts on interrupt in usenet. ... > kernel stack and ISR is executed. ... More may be saved depending on the architecture. ... Here the kernel have assembler code to save all general ...
    (comp.os.linux.development.system)
  • Re: [PATCH 19-rc1] Fix typos in /Documentation : Misc
    ... +do not have a corresponding kernel virtual address space mapping) and ... This command sets the scale factor for the ABSOLUTE MOUSE POSITIONING mode. ... If you check the source code you will see that what I draw here as a frame ... interrupt-parent: contains the phandle of the interrupt ...
    (Linux-Kernel)
  • Re: [PATCH 18-rc3] Fix typos in /Documentation : Q-R
    ... The driver will receive them again on the ... The kernel is entered with r3 pointing to an area of memory that is ... Bits are then right shifted into the GP_SAMPLE register at the specified ... you get an interrupt when a full DWORD is recieved. ...
    (Linux-Kernel)
  • PROBLEM: oops in 2.6.21.1 after bringing up the network
    ... I am consistently getting a kernel oops from a vanilla 2.6.21.1 kernel. ... Fatal exception in interrupt ... pin B routed to IRQ 0 ... Elitegroup Computer Systems Unknown device b732 ...
    (Linux-Kernel)