From owner-freebsd-stable@FreeBSD.ORG Wed Jan 30 14:55:52 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71C7516A4A9 for ; Wed, 30 Jan 2008 14:55:52 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2EDFB13C52C for ; Wed, 30 Jan 2008 14:55:51 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JKELn-0005KP-Ff for freebsd-stable@freebsd.org; Wed, 30 Jan 2008 14:55:43 +0000 Received: from 213.202.123.79 ([213.202.123.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jan 2008 14:55:43 +0000 Received: from ivoras by 213.202.123.79 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jan 2008 14:55:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Wed, 30 Jan 2008 15:55:49 +0100 Lines: 22 Message-ID: References: <47A073C2.1060209@moneybookers.com> <20080130140711.GA19047@epia-2.farid-hajji.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 213.202.123.79 User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) In-Reply-To: <20080130140711.GA19047@epia-2.farid-hajji.net> X-Enigmail-Version: 0.94.1.0 Sender: news Subject: Re: option HZ=? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 14:55:52 -0000 cpghost wrote: > 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. Isn't there also something bad about TCP timestamp overflow?