From owner-freebsd-stable@FreeBSD.ORG Thu Oct 4 15:42:43 2007 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 8BE0C16A417 for ; Thu, 4 Oct 2007 15:42:43 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: from corpmail.itlegion.ru (corpmail.itlegion.ru [84.21.226.211]) by mx1.freebsd.org (Postfix) with SMTP id BABFB13C45D for ; Thu, 4 Oct 2007 15:42:42 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: (qmail 22514 invoked from network); 4 Oct 2007 19:42:40 +0400 Received: from unknown (HELO Artem) (192.168.0.12) by 84.21.226.211 with SMTP; 4 Oct 2007 19:42:40 +0400 X-AntiVirus: Checked by Dr.Web [version: 4.44, engine: 4.44.0.09170, virus records: 246614, updated: 4.10.2007] Message-ID: <009201c8069d$2f3edc20$0c00a8c0@Artem> From: "Artem Kuchin" To: "Craig Boston" , References: <02d401c805cb$abf59ec0$0c00a8c0@Artem><200710041232.l94CWd6W056143@lurza.secnetix.de> <20071004143944.GA46491@nowhere> Date: Thu, 4 Oct 2007 19:42:33 +0400 Organization: IT Legion MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Cc: Subject: Re: Quation about HZ kernel option 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: Thu, 04 Oct 2007 15:42:43 -0000 Craig Boston wrote: > On Thu, Oct 04, 2007 at 02:32:39PM +0200, Oliver Fromme wrote: >> In that case, I would recommend not to override the >> default at all (which is 1000). > > ISTM that it would be better to use kern.hz=100 in this case. > > My reasoning is that a web server shouldn't be terribly sensitive to > latency, so it's better to have longer quantums to get more work done > without context switching overhead. If you're not using polling, > you'll be getting interrupts for network traffic anyway. That what i personally thought. However 100 seems to be too rough. I just feel so, no reasoning behind this ;) Maybe 200-300 is better than 100 and better than 1000? I wonder how to build a test case for this to find best settings for web server, so others will not stuggle with this on the future. > With polling on however, a high HZ value makes sense. polling does not make sense in case of webhosting though ;) -- Regards, Artem