From owner-svn-src-head@FreeBSD.ORG Thu Oct 30 12:20:35 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAED51065679; Thu, 30 Oct 2008 12:20:35 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 86FB28FC16; Thu, 30 Oct 2008 12:20:35 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 66FF16D449; Thu, 30 Oct 2008 12:20:34 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 4EC6C84494; Thu, 30 Oct 2008 13:20:34 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Maxim Sobolev References: <200810270625.m9R6P2a8029701@svn.freebsd.org> Date: Thu, 30 Oct 2008 13:20:34 +0100 In-Reply-To: <200810270625.m9R6P2a8029701@svn.freebsd.org> (Maxim Sobolev's message of "Mon, 27 Oct 2008 06:25:02 +0000 (UTC)") Message-ID: <86wsfqgtpp.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r184323 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 12:20:35 -0000 Maxim Sobolev writes: > Log: > Default HZ value (1,000) on i386/amd64 is not very virtual machine frie= ndly. > Due to the nature of the beast it causes lot of unproductive overhead. = This > is especially bad when running SMP kernel on VMWare with several virtual > processors - idle FreeBSD guest with SMP kernel takes 150% host CPU tim= e on my > dual-core MacBook Pro when I am enabling two virtual CPUs, making even = host > not very usable. Detect when we are running in the sandbox and reduce HZ > to 10 (can be adjusted via VM_HZ in the kernel config) in such cases. T= his > brings host CPU usage of idle FreeBSD/SMP on two virtual processors down > to 10%. What, too chicken to go whole hog and make the kernel tickless? :) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no