From owner-freebsd-emulation@FreeBSD.ORG Thu May 15 22:05:54 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 843961065673 for ; Thu, 15 May 2008 22:05:54 +0000 (UTC) (envelope-from tsw5@duke.edu) Received: from smtp.duke.edu (smtp-04.oit.duke.edu [152.3.174.85]) by mx1.freebsd.org (Postfix) with ESMTP id 49D6C8FC15 for ; Thu, 15 May 2008 22:05:54 +0000 (UTC) (envelope-from tsw5@duke.edu) Received: from smtp.duke.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 71F13359B1D; Thu, 15 May 2008 18:05:53 -0400 (EDT) Received: from avenue.wintermute (cpe-076-182-024-090.nc.res.rr.com [76.182.24.90]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.duke.edu (Postfix) with ESMTP id 31406358CB7; Thu, 15 May 2008 18:05:53 -0400 (EDT) Message-Id: From: Todd Wasson To: Bakul Shah In-Reply-To: <20080515080948.3B1F15B47@mail.bitblocks.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 15 May 2008 18:05:52 -0400 References: <20080515080948.3B1F15B47@mail.bitblocks.com> X-Mailer: Apple Mail (2.919.2) X-PMX-Version: 5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.5.15.145446 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 22:05:54 -0000 Yes, it was on this same system, configured in exactly the same with, with the same image. I tried it again with 1.3.0.p11_4 and it still works, so I tried it with 1.3.0.p11_5. That worked too. The problem must be in 1.3.0.p11_6. The command line I've been using is "qemu-system-x86_64 -hda test.img - net nic -net tap -localtime -m 1536 -vnc :2 -usbdevice tablet -soundhw es1370,pcspk". I've tried running without ZFS (I unloaded the module), sound, and networking and it still crashes. I enabled the debugging sysctl and just saw a lot of kqemu_vmalloc_to_phys calls before it crashed. I haven't started playing with max_locked_mem yet, but will do so if narrowing it down specifically to the changes between 1.3.0.p11_5 and 1.3.0.p11_6 isn't helpful enough. The main reason I'm hesitant is that repeatedly crashing my box is rather undesirable and problematic for me, but I will resort to this if I can't learn more in another way. Thanks for your help. Todd On May 15, 2008, at 4:09 AM, Bakul Shah wrote: > 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.