From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 1 19:43:46 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6DB116A403 for ; Sun, 1 Apr 2007 19:43:46 +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 7D26D13C45A for ; Sun, 1 Apr 2007 19:43:46 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id AA83315A3C6; Sun, 1 Apr 2007 21:43:44 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id l31JdMN8060753; Sun, 1 Apr 2007 21:39:22 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id l31JdK9K060752; Sun, 1 Apr 2007 21:39:20 +0200 (CEST) (envelope-from nox) Date: Sun, 1 Apr 2007 21:39:20 +0200 (CEST) From: Juergen Lock Message-Id: <200704011939.l31JdK9K060752@saturn.kn-bremen.de> To: andrew@dobrohot.org X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <460D7A37.9080408@dobrohot.org> Organization: home Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: any vm gurus in the house? :) (was: Fatal trap 12, at use qemu) 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: Sun, 01 Apr 2007 19:43:46 -0000 In article <460D7A37.9080408@dobrohot.org> you write: >http://www.freebsd.org/cgi/query-pr.cgi?pr=110892 > >Crash of system at use of the emulator "qemu" > >$ pkg_info -E kqemu\* qemu\* >kqemu-kmod-1.3.0.p11 >qemu-0.9.0 > >$ kldload aio >$ kldload kqemu >$ qemu -boot c -m 256 \ >-hda /usr/EMULATORS/BOCHS/disk0.img \ >-net nic,model=rtl8139 \ >-net tap \ >-std-vga \ >-soundhw es1370 \ >-win2k-hack \ >-kernel-kqemu > >Guest system on qemu - WinXP. (looking at the pr...) object is NULL, anyone have an idea how that could have happened? (You seem to be low on ram, maybe kqemu is stressing the vm system in an unusual way in that case? btw kqemu no longer is closed source now...) Also, is this an smp box? You could try a few things while we wait for insights from vm gurus: - a kernel with options INVARIANTS and maybe also WITNESS - reducing the ram shortage by using smaller -m args to qemu, a lighter wm, etc. (or adding ram :) - a patch to the kqemu-kmod port to try and lower the number of locked pages: (maybe call it files/patch-lockedpages) Index: kqemu-freebsd.c @@ -466,7 +466,7 @@ switch (type) { case MOD_LOAD: printf("kqemu version 0x%08x\n", KQEMU_VERSION); - max_locked_pages = physmem / 2; + max_locked_pages = physmem / 4; kqemu_gs = kqemu_global_init(max_locked_pages); #if __FreeBSD_version < 500000 if ((rc = cdevsw_add(&kqemu_cdevsw))) { - you could also try the qemu-devel port, although i dont think the kqemu related parts have changed... Juergen