Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CDWnN-0002WY-2x for qemu-devel@nongnu.org; Fri, 01 Oct 2004 19:26:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CDWnM-0002WB-8p for qemu-devel@nongnu.org; Fri, 01 Oct 2004 19:26:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CDWnM-0002Vq-2q for qemu-devel@nongnu.org; Fri, 01 Oct 2004 19:26:36 -0400 Received: from [212.63.36.242] (helo=gwyn.kn-bremen.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CDWgb-0007kn-0l for qemu-devel@nongnu.org; Fri, 01 Oct 2004 19:19:37 -0400 From: Juergen Lock Date: Sat, 2 Oct 2004 01:32:39 +0200 Subject: Re: [Qemu-devel] kernel 2.6 losing too many ticks Message-ID: <20041002013238.A7800@saturn.kn-bremen.de> References: <1096640710.415d68c6f0c93@imp4-q.free.fr> <415DA3D3.9050200@libertysurf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <415DA3D3.9050200@libertysurf.fr> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bennet Cc: qemu-devel@nongnu.org On Fri, Oct 01, 2004 at 07:43:20PM +0000, bennet wrote: > A speedup can be made by passing clock=pit to the kernel parameters (at > lilo prompt: linux clock=pit) > But there's still a problem with some timers : sleep 1 sleeps for about > 10 seconds ! > I can't find why, and don't know how to get more information to solve > the problem. This happens when the host's hz is < than the guest's: linux 2.4 kernels have a default of 100 and 2.6 kernels of 1000 -> factor 10, which you see with `sleep 1'. Also, qemu has an internal limit of 1000 (or 1024?), so if your guest's hz is > than that it'll still be slow even if the hosts's hz is as fast or faster. (Maybe this should be made configurable? some ppl use e.g. hz 5000 to increase gig ethernet performance, like the FreeSBIE kernel...) HTH, Juergen