WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [PATCH] Use saner dom0 memory and vcpu defaults, d

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] Use saner dom0 memory and vcpu defaults, don't panic on over-allocation
From: Jarod Wilson <jwilson@xxxxxxxxxx>
Date: Fri, 03 Aug 2007 16:26:00 -0400
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 03 Aug 2007 13:23:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1186162709.6802.179.camel@bling>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Red Hat, Inc.
References: <46AFF7F6.5090105@xxxxxxxxxx> <1185943424.6802.98.camel@bling> <20070801052434.GC14448%yamahata@xxxxxxxxxxxxx> <46B08EE2.5020106@xxxxxxxxxx> <46B0ACEB.3080200@xxxxxxxxxx> <46B0C21C.9010605@xxxxxxxxxx> <46B0D5AF.1050309@xxxxxxxxxx> <20070802021200.GA6395%yamahata@xxxxxxxxxxxxx> <46B1E766.7000003@xxxxxxxxxx> <46B1F9E6.9010404@xxxxxxxxxx> <46B2AFE1.6070803@xxxxxxxxxx> <46B3343A.9040106@xxxxxxxxxx> <46B34516.6030603@xxxxxxxxxx> <1186162709.6802.179.camel@bling>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.5 (X11/20070719)
Alex Williamson wrote:
> On Fri, 2007-08-03 at 11:09 -0400, Jarod Wilson wrote:
>>>>> Indeed, on my 16GB system, only 8MB less from the v2 incantation, and
>>>>> the dom0_mem=0 option does properly allocate all available memory to
>>>>> dom0. I'm quite happy with this version if everyone else is...
>>>> Eep! I retract my happiness... Seems with all memory allocated like
>>>> this, I can't get a guest to actually boot. I get this when I try to
>>>> bring one up via xm create:
> 
>    It's still not completely happy on my 96G system.  If I specify
> dom0_mem=0, dom0 fails to startup.

Damn, I need a 96G system... ;)

> It's incredibly close to the right
> value though.  The max calculated memory is:
> 
> (XEN) Maximum permitted dom0 size: 97841MB
> 
> This fails just before launching dom0 with this:
> 
> (XEN) Domain0 EFI passthrough: ACPI 2.0=0x3fdda000 SMBIOS=0x3e52a000
> (XEN) assign_new_domain_page: Can't alloc!!!! Aaaargh!
> (XEN) 
> (XEN) ****************************************
> (XEN) Panic on CPU 0:
> (XEN) assign_new_domain0_page: can't allocate page for 
> dom0****************************************
> 
> If I reduce this slightly and boot with dom0_mem=97840MB, dom0 starts to
> boot, then hits this:
> 
> CPU 1: synchronized ITC with CPU 0 (last diff -2 cycles, maxerr 154 cycles)
> CPU 2: synchronized ITC with CPU 0 (last diff -8 cycles, maxerr 159 cycles)
> CPU 3: synchronized ITC with CPU 0 (last diff -7 cycles, maxerr 159 cycles)
> Brought up 4 CPUs
> Total of 4 processors activated (12753.30 BogoMIPS).
> migration_cost=11839
> (XEN) mm.c:520:d0 Warning: UC to WB for mpaddr=3e52a010
> DMI 2.3 present.
> NET: Registered protocol family 16
> ACPI: bus type pci registered
> ACPI: Interpreter enabled
> ACPI: Using IOSAPIC for interrupt routing
> ACPI: PCI Root Bridge [L000] (0000:00)
> (XEN) __assign_domain_page:871 WARNING can't assign page domain 
> 0xf000000007c18080 id 0
> (XEN)   already assigned pte_val 0x6400000000000000
> (XEN)   mpaddr 0x00000800bc000000 physaddr 0x00000800bc000000 flags 0x2
> (XEN) __assign_domain_page:871 WARNING can't assign page domain 
> 0xf000000007c18080 id 0
> (XEN)   already assigned pte_val 0xf000000000000000
> (XEN)   mpaddr 0x00000800bc004000 physaddr 0x00000800bc004000 flags 0x2
> (XEN) __assign_domain_page:871 WARNING can't assign page domain 
> 0xf000000007c18080 id 0
> (XEN)   already assigned pte_val 0xf000ff54f0000000
> (XEN)   mpaddr 0x00000800bc008000 physaddr 0x00000800bc008000 flags 0x2
> ...
> 
> To get it to boot all the way to userspace, I had to reduce dom0's
> memory a full 16MB further, down to dom0_mem=97824M.  Each few MB more
> kept for Xen allowed the boot to enumerate another PCI root bridge.  I
> suspect it's the ioremaps going on there that are eating up free heap
> pages.  Maybe this also suggests that xen doesn't really know how much
> dynamic memory it might take to boot dom0 all the way.  Thanks,

I wonder if this is at all similar to the reason for the fudge-factor
inclusion in the x86 code that was originally in here... Any suggestions
for a remedy? Just heist some of those x86 bits again? :)


-- 
Jarod Wilson
jwilson@xxxxxxxxxx


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>