From owner-freebsd-emulation@FreeBSD.ORG Tue Apr 11 19:08:51 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 10C3416A403 for ; Tue, 11 Apr 2006 19:08:51 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id AED2B43D49 for ; Tue, 11 Apr 2006 19:08:50 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 709B9294B3; Tue, 11 Apr 2006 12:08:49 -0700 (PDT) To: Joe Auty In-reply-to: Your message of "Tue, 11 Apr 2006 06:48:03 EDT." Date: Tue, 11 Apr 2006 12:08:49 -0700 From: Bakul Shah Message-Id: <20060411190849.709B9294B3@mail.bitblocks.com> Cc: freebsd-emulation@freebsd.org Subject: Re: Qemu pegging my CPU X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 19:08:51 -0000 > It looks like Qemu just buggered up my networking so that it wasn't > accepting incoming requests to the entire FreeBSD machine (although > outgoing networking on that machine worked fine). Could this be > caused by lack of RAM too, or perhaps a problem with the Qemu kernel > module? I think I read somewhere else that it isn't always very stable? kqemu seems reasonably stable now. See if your disk activity light is brightly lit. If so, it is the swapping that is killing performance. If it is not lit, likely it is not hooked up:-) The disparity between the swapping speed and processor speed is so much worse now that pretty much any swapping will bring the machine to its knees. You need at least as much memory as your working set. So either add more memory or reduce your working set by exiting programs you can do without. For instance remove web browsers, email clients and bloaty window managers. Reduce memory needs of other things (for instance give less memory to qemu but beware of the same issues for the virtual machine!). But as always *measure* the changes to better understand the system behavior. > I think I am running into swap... The answer sounds like adding more > RAM or more swap to the machine. Adding more swap won't help.