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

[Xen-devel] checkLiveMigrateMemory() insufficient?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] checkLiveMigrateMemory() insufficient?
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Wed, 1 Oct 2008 17:17:03 +0100
Delivery-date: Wed, 01 Oct 2008 09:17:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
I occassionally see failures live migrating due to running out of memory in
sh_set_allocation(). For example on a 4Gb machine with freely-balloonable dom0,
the routine attempts to allocate 1536 pages of heap, and fails right at the
end:

(xVM) free 5dc total 5dc xenheap 21 total 40000 max 40000
(xVM) failed to allocate shadow pages from domheap

This is a 64-bit guest on 64-bit host. I see this in xend.log:

[2008-10-01 08:56:31 100921] DEBUG (XendDomainInfo:2121) overhead_kb is now 9216
[2008-10-01 08:56:31 100921] DEBUG (balloon:116) Balloon: 12216 KiB free; need 
9216; done.

(Note that I added an extra 1Mb on to the normal overhead_kb allocation).

So we have 12Mb free from physinfo, and we're trying to allocate 6Mb plus some
other smaller allocations. I suspect the issue is one of fragmentation of the
heap? That is, no allocations of order SHADOW_MAX_ORDER could be found?

Does the linux balloon handler free in page-sized increments like Solaris
currently does?

Is there a better way to handle this?

regards
john

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

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