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

Re: [Xen-users] cannot allocate memory

To: "Mihamina Rakotomandimby (R12y)" <mihamina.rakotomandimby@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] cannot allocate memory
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Sat, 20 Jan 2007 16:06:52 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 20 Jan 2007 08:06:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1169249854.4285.18.camel@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1169249854.4285.18.camel@xxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Sat, Jan 20, 2007 at 12:37:34AM +0100, Mihamina Rakotomandimby (R12y) wrote:
> Hi,
> I have Xen 3.0.3 on an opensuse 10.2.
> This is the status of my memory:
> 
> mihamina@asus:~> free 
>        total      used      free     shared    buffers     cached
> Mem:   1777664    1769308   8356          0      16288     673308
> Swap:  6626728    60        6626668
> 
> 
> Whne I create a ("256M RAM", "1 vcpu") domU:
> [...]
> Error: (12, 'Cannot allocate memory')
> [...]
> 
> Well. The message is quite clear. But my swap is still free (6GB man!).
> I guess the Xen utility is not able to swap things. What is the common
> way to free some RAM? is there a kind of 'swapwhatever <PID>' magic tool
> you would recommend? I wont reboot my box in order to free memory!

I believe this is a bug in the Hypervisor in Xen 3.0.3. I'm not sure what
changeset solved it offhand, but the fix should be in Xen 3.0.4 already.
Basically once you get into this state, unless you are incredibly lucky
you'll not get out of it except by rebooting. The cause is the HV doing a bogus
check for some bit being set/unset in a piece of memory it shouldn't. In
particular it has absolutely nothing todo with how much free memory you
have in your machine. 

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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

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