From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwi9Y-0000aF-5Y for qemu-devel@nongnu.org; Tue, 30 Mar 2010 16:35:12 -0400 Received: from [140.186.70.92] (port=42639 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwi9W-0000YC-NH for qemu-devel@nongnu.org; Tue, 30 Mar 2010 16:35:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwi7h-000508-HV for qemu-devel@nongnu.org; Tue, 30 Mar 2010 16:33:18 -0400 Received: from are.twiddle.net ([75.149.56.221]:59038) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwi7h-000500-B3 for qemu-devel@nongnu.org; Tue, 30 Mar 2010 16:33:17 -0400 Message-ID: <4BB2600B.90002@twiddle.net> Date: Tue, 30 Mar 2010 13:33:15 -0700 From: Richard Henderson MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu git head 20100323 on FreeBSD - qemu-devel port update for testing References: <20100325204423.GA46954@triton8.kn-bremen.de> <20100330191629.GA95521@triton8.kn-bremen.de> <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> In-Reply-To: <201003302009.o2UK9lAv002282@triton8.kn-bremen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juergen Lock Cc: Blue Swirl , freebsd-emulation@freebsd.org, Toni , qemu-devel@nongnu.org, Andreas Tobler On 03/30/2010 01:09 PM, Juergen Lock wrote: > Oh sorry if that was not clear, things go into swap if I _replace_ the > endaddr ~0ul (which caused the assert) with the max value the assert > still tolerates i.e. > ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS) - 1 > which in this case seems to be 0x7fffffffffff: Yes, I got that. And I see from ... > #3 0x0000000060012731 in page_set_flags (start=140737488224256, > end=18446744073709551615, flags=32) ... here that the range we're reserving is 0x7ffffffe0000 ... 0x7fffffffffff which is a mere 128k range. Which ought to allocate no more than a single leaf page table (and thus N-1 pages for the N-level table). Which doesn't answer the question of why you'd wind up running out of memory. r~