From owner-freebsd-emulation@FreeBSD.ORG Tue Apr 11 13:53:35 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.ORG Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0704516A402 for ; Tue, 11 Apr 2006 13:53:35 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5552F43D49 for ; Tue, 11 Apr 2006 13:53:33 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (qxabuf@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k3BDrQH0039143 for ; Tue, 11 Apr 2006 15:53:32 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k3BDrQJS039142; Tue, 11 Apr 2006 15:53:26 +0200 (CEST) (envelope-from olli) Date: Tue, 11 Apr 2006 15:53:26 +0200 (CEST) Message-Id: <200604111353.k3BDrQJS039142@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG In-Reply-To: <8C304818-D731-4226-ACCD-805B986A1F2E@netmusician.org> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 11 Apr 2006 15:53:32 +0200 (CEST) Cc: Subject: Re: Qemu pegging my CPU X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-emulation@FreeBSD.ORG List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:53:35 -0000 Joe Auty wrote: > I'm running FBSD 5.4, installed the kqemu-mod and qemu, everything > seems to be running fine, except Qemu frequently takes up over 90% of > my CPU. Just pinging the server or pinging from the host OS outside > of my network results in loss of packets. Occasionally my CPU is so > taxed that network requests are stalled or cut out. > > I've given 256 MB RAM to my guest OS (Ubuntu). I believe my computer > has 384 MB of RAM. So, when you run a 256 MB host on a 384 MB machine, that leaves only 128 MB for the qemu emulator itself and everything else that runs on the machine. That means that you're probably running out of memory, and when the OS starts swapping, it'll slow down considerably. It doesn't make much of a difference whether the host OS is swapping or the guest os is swapping. Or both. You don't want that. :-) My advice: Add more RAM. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "File names are infinite in length, where infinity is set to 255 characters." -- Peter Collinson, "The Unix File System"