From owner-freebsd-current@FreeBSD.ORG Mon Sep 3 05:24:12 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 3745E16A417 for ; Mon, 3 Sep 2007 05:24:12 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (muon.bluestop.org [80.68.94.188]) by mx1.freebsd.org (Postfix) with ESMTP id F093F13C478 for ; Mon, 3 Sep 2007 05:24:11 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.draftnet (dyn-62-56-57-198.dslaccess.co.uk [62.56.57.198]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id 931143000D; Mon, 3 Sep 2007 06:19:58 +0100 (BST) Message-ID: <46DB9A1E.4080000@cran.org.uk> Date: Mon, 03 Sep 2007 06:22:38 +0100 From: Bruce Cran User-Agent: Thunderbird 2.0.0.6 (X11/20070809) MIME-Version: 1.0 To: Doug Kelly References: <4956a5e50709022056o16fe85c8oab72532afe335b43@mail.gmail.com> <059F5A32-4979-422B-B42B-8163A151E874@dougk-ff7.net> In-Reply-To: <059F5A32-4979-422B-B42B-8163A151E874@dougk-ff7.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Mon, 03 Sep 2007 05:24:12 -0000 Doug Kelly wrote: > On Sep 2, 2007, at 10:56 PM, Nenhum_de_Nos wrote: > >> hail, >> >> I have a Turion X2 1.8GHz and created a SMP 64bits VM just for running >> folding at home. I'm now compiling linux kernel source for gentoo >> distro, and it takes a century for each module (.o) to be compiled. >> >> FreeBSD xxx.apartnet 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Aug 9 >> 01:44:04 BRT 2007 root@xxx.apartnet:/usr/obj/usr/src/sys/xxx i386 >> >> and >> >> QEMU PC emulator version 0.9.0, Copyright (c) 2003-2007 Fabrice Bellard >> >> any more info, just ask ... >> >> is it always this slow ?! > > Well, I know -CURRENT's kernel has a ton of debug options enabled by > default, which will adversely impact performance. You can disable > them in the kernel's config file (you'll need to rebuild the kernel, > though), and the GENERIC config has some notes about them. Also, qemu > is a full emulator--although there is a kernel module for Linux to > allow some type of virtualization, I'm not sure if it's been ported to > any other OSes. > > In short, yes, it will be slow. I'm sure "a century" is hyperbole, > but yes, even though you are on a rather fast machine, it will be > slow, as every single instruction on your qemu VM is going to be > emulated. The kernel module to speed up execution of the x86 emulation on x86 platforms is available in the emulators/kqemu-kmod port. -- Bruce Cran