From owner-freebsd-emulation@FreeBSD.ORG Thu May 15 08:09:49 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37112106566B for ; Thu, 15 May 2008 08:09:49 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id 1EB708FC1E for ; Thu, 15 May 2008 08:09:49 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 3B1F15B47; Thu, 15 May 2008 01:09:48 -0700 (PDT) To: Todd Wasson In-reply-to: Your message of "Wed, 14 May 2008 23:06:47 EDT." Date: Thu, 15 May 2008 01:09:48 -0700 From: Bakul Shah Message-Id: <20080515080948.3B1F15B47@mail.bitblocks.com> Cc: freebsd-emulation@freebsd.org Subject: Re: kqemu locking my machine hard on amd64 smp, with most recent patches 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: Thu, 15 May 2008 08:09:49 -0000 When you said an earlier kqemu version worked, was it on the same hardware, with the same amount of memory and 7.0 release? For the same image? Can you try it again to see if it still works? Can you show the exact qemu command line? Some more things to try: In your earlier response I see > kqemu version 0x00010300 > kqemu: KQEMU installed, max_locked_mem=3134224kB. This makes me wonder if the amount of max_locked_mem is the problem. To test this, change kqemu-freebsd.c:554 to max_locked_pages = MIN(physmem / 2, 0x1fffffff / PAGE_SIZE); This will allocate no more than 512B for max locked pages. If this works keep doubling the size until it breaks. You can enable kqemu debug prints by sysctl debug.kqemu_debug=1 before starting qemu. May be we will find something unusual there. To rule out audio you can disable it from the qemu command line. If you can, remove zfs during testing.