From owner-freebsd-current@FreeBSD.ORG Tue Sep 4 20:52:00 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19BEC16A418 for ; Tue, 4 Sep 2007 20:52:00 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 97DD113C428 for ; Tue, 4 Sep 2007 20:51:57 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id A43912184B6; Tue, 4 Sep 2007 22:51:55 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.8/8.13.6) with ESMTP id l84KndC3077338; Tue, 4 Sep 2007 22:49:39 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.8/8.13.6/Submit) id l84Kndbs077337; Tue, 4 Sep 2007 22:49:39 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 4 Sep 2007 22:49:39 +0200 To: Nenhum_de_Nos Message-ID: <20070904204939.GA74683@saturn.kn-bremen.de> References: <4956a5e50709022056o16fe85c8oab72532afe335b43@mail.gmail.com> <059F5A32-4979-422B-B42B-8163A151E874@dougk-ff7.net> <46DB9A1E.4080000@cran.org.uk> <4956a5e50709030343x6de3ab6frab925421859bd7f0@mail.gmail.com> <46DC4118.8020300@cran.org.uk> <4956a5e50709031654v9b13eb9na0a964dd9cb7f497@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4956a5e50709031654v9b13eb9na0a964dd9cb7f497@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Mailman-Approved-At: Wed, 05 Sep 2007 02:08:14 +0000 Cc: Bruce Cran , freebsd-current@freebsd.org Subject: Re: qemu on a recent -current, slow like a 486 ! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 20:52:00 -0000 On Mon, Sep 03, 2007 at 08:54:57PM -0300, Nenhum_de_Nos wrote: > On 9/3/07, Bruce Cran wrote: > > Nenhum_de_Nos wrote: > > > I have disabled all but one debug support: > > > > > > makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols > > > > > > no witness also > > > > > > thanks > > > > > > matheus > > > > > > > > > > Hi Matheus, > > > > If you haven't tried kqemu-kmod, I would highly recommend it - with the > > caveat that, being a kernel module that hasn't been extensively tested, > > it may crash your system. > > It should speed up qemu to near-native speeds since it allows the code > > to run natively instead of being interpreted one instruction at a time. > > > > Cheers, > > Bruce Cran > > hm, I'll try this today :) > thanks, but now what I think will most kill performance is that even > though I say -smp 2 and it has two cpus (my machine is in fact dual > core), it has one and only one process for all qemu vm, and there fore > uses just one core. > > is it really supposed to behave this way ? -smp is meant more for testing purposes than running stuff where performance matters, qemu is still single-threaded and -smp doesn't work with kqemu... Oh and if you want to use kqemu don't forget to rebuild qemu with kqemu support enabled to get the relevant bits compiled in (do `make config' to get the OPTIONS menu back), that will also build kqemu as a dependency so you don't need to build that seperately. Also there is -kernel-kqemu too, altho not all guests really work with that. (freebsd guests mostly work, I have seen guest kernels complain about the clock going backwards tho.) HTH, Juergen