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/
Home Products Support Community News


Re: [Xen-devel] How to increase the Xen heap

To: alex <leiye.xen@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to increase the Xen heap
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 11 Aug 2010 07:47:35 +0100
Delivery-date: Tue, 10 Aug 2010 23:48:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimKNjjDnkuZRoug6LyYXMZ+PEkD2TKgrP=H8Y5r@xxxxxxxxxxxxxx>
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
Thread-index: Acs5Hz5H9MMcRqkuTQC//Fg3WIYpbwAAdYux
Thread-topic: [Xen-devel] How to increase the Xen heap
User-agent: Microsoft-Entourage/
You cannot increase the size of 32-bit Xen heap. You need to run 64-bit Xen.

 -- Keir

On 11/08/2010 07:33, "alex" <leiye.xen@xxxxxxxxx> wrote:

> I am using 32-bit Xen and Xen heap is limited in size.
> On Tue, Aug 10, 2010 at 11:25 PM, alex <leiye.xen@xxxxxxxxx> wrote:
>> Hi all,
>> I wrote some code in Xen hypervisor. It allocates an array to track the
>> runtime statistics. When I use _xmalloc to allocate the array from xen heap,
>> it fails with "No enough memory". I check the Xen heap via "xm dmesg", it
>> shows 9MB, while the size of the array is around 14MB. I try to reduce the
>> array size, it succeed without any problem and works correctly. My question
>> is how to increase the Xen heap because I will put other fields into array
>> data structure. Or can I allocate from dom heap? If that, are there some
>> sample code? 
>> Thank you.
>> Alex

Xen-devel mailing list

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