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-devel

Re: [Xen-devel] Debian linux-image-2.6.32-4-xen-amd64 2.6.32-11 doesn't

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Debian linux-image-2.6.32-4-xen-amd64 2.6.32-11 doesn't boot with > 4 GiB; resets immediatelly, no log messages
From: Thomas Goirand <thomas@xxxxxxxxxx>
Date: Wed, 14 Apr 2010 13:48:31 +0800
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Delivery-date: Tue, 13 Apr 2010 22:48:05 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=goirand.fr; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=postfix; bh=URiKIyAv8 91wTv1OnJbhqHMgtXw=; b=SQE7RghwFTu9uaRJV40FGcp1ej/H73WjZtkT1wBcj 1kNsOZXCxUGzHW1asox1mG8hxxKdACmGChUNdzCMfEKDxUjJb8YpvV6p4YO6NbKD 6z5Duq2Ci62LY1+Hd15AuecsQh7yyHJgz7kDLn+kHdctsLAEiUyDDaPluDnlc56g 0I=
Domainkey-signature: a=rsa-sha1; c=nofws; d=goirand.fr; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=postfix; b=KhS bPl8bEzq6c5vvH46SxCcAizre3IGoqgCiMcP06MZb4KjqEgxeK04IeVOr445Bh+7 mSN2YZmv8W9hsCYlRO1dbVxUX3c37Oyl7hGBmScOXK2dalZKBNhlLZBeT0WH5Cm+ pGKp/4A+A/ypF0OR4IBKzUWnb3mighsz5+B1IRWE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BC50570.7060400@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=98EF9A49
Organization: GPLHost
References: <20100408113422.GD4183@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20100408133820.GA29832@xxxxxxxxxxxxxxxxxxx> <20100408221953.GG4183@xxxxxxxxxxxxxxxxxxxxxxxxxx> <4BBE5DF2.6040707@xxxxxxxx> <20100409180016.GA14029@xxxxxxxxxxxxxxxxxxxxxxxxxx> <4BBF7004.8000707@xxxxxxxx> <20100410221349.GM4183@xxxxxxxxxxxxxxxxxxxxxxxxxx> <4BC1013D.2020003@xxxxxxxx> <4BC19B2A.3040501@xxxxxxxxxx> <4BC375A9.1060904@xxxxxxxx> <4BC3C6E1.4010400@xxxxxxxxxx> <4BC4CB1A.3000101@xxxxxxxx> <4BC4EFD9.2040806@xxxxxxxxxx> <4BC50570.7060400@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)
Jeremy Fitzhardinge wrote:
> Yes, you system has 3990MB of RAM; the hardware/BIOS is hiding, using or
> otherwise disabling 106MB of memory.

Possible, yes. Especially video could allocate some RAM anyway.

>>  and 645 MB free, and "xm list" shows that dom0 is
>> using 3286 MB. Already, things are weird because 645 free + 3286 for the
>> dom0 makes 3931 and not 3990, and I never asked that my dom0 takes
>> anything (at boot-up it should take all the available memory).
>>   
> 
> I would assume that extra 59MB is memory Xen has allocated for its own
> purposes on behalf of the domain.  And Xen won't give all memory to dom0
> at boot; it will always leave some memory free.

Quite not. This already allocated RAM that seems to be gone, isn't
always the same amount. Plus 60MB, I never ever saw Xen taking that much.

>> Then I do:
>>
>> xm mem-set Domain-0 2048
>>
>> and then I get:
>> xm list Domain-0: 2048
>> xm info Free RAM: 1627
>>
>> That makes a total of 3675 MB, which is less than the total of what I
>> had at boot time without using xm mem-set.
> 
> So the apparent overhead has grown from 59MB to 315MB?

No. Apparently, the memory manager of the hypervisor is somehow broken.
These values aren't always the same, this is quite random and weird,
even the first amount of "lost RAM" just right after booting is not
always the same (10s of MB). Once, I even had up to a gig that was gone.

>>  Ever more weirdness: the
>> amount of free RAM after a xm mem-set call does vary randomly each time
>> I boot my laptop (a one year old Lenovo T500).
>>   
> 
> How much variation?  By a few pages?  10s of MB?

100s of MB variation.

> What happens if you just boot with dom0_mem=2048MB at boot time rather
> than shrinking it after boot?

If I do that, I can't even boot, when X starts (KDM), my screen becomes
dark and it seems that the video initialization fails to be done
correctly! I'd be hard to tell if it's a driver timing or a Xen issue.

> This should all be an internal-to-Xen issue, so I wouldn't expect the
> kernel to have any effect.

Agreed with the diagnostic, this is an hypervisor issue.

>> "xm debug-keys m" shows nothing, when exactly should I type it (sorry,
>> I'm not familiar with Xen debugging...).
>>   
> 
> The result will appear on the console, so you may need to follow it with
> "xm dmesg" to see the output.
> 
> I don't know all that much about how Xen does its internal memory
> management, but aside from the ~300MB apparently lost by shrinking dom0
> the amounts of memory you're talking about are small, and well within
> the sort of range I'd expect for allocator overhead.

I've been using Xen for YEARS, and no, this is not a normal behavior
that I'm seeing here. Having 1GB gone is NOT a normal situation, this is
a lot more than just few bytes for the internals of the hypervisor.

Thomas

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>