From mboxrd@z Thu Jan 1 00:00:00 1970 From: alex Subject: Re: How to increase the Xen heap Date: Tue, 10 Aug 2010 23:33:46 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1444266504==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1444266504== Content-Type: multipart/alternative; boundary=001485f87e2e84ea6e048d866ef8 --001485f87e2e84ea6e048d866ef8 Content-Type: text/plain; charset=ISO-8859-1 I am using 32-bit Xen and Xen heap is limited in size. On Tue, Aug 10, 2010 at 11:25 PM, alex 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 > --001485f87e2e84ea6e048d866ef8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am using 32-bit Xen and Xen heap is limited in size.

=A0
On Tue, Aug 10, 2010 at 11:25 PM, alex <leiye.xen@gmail.com= > wrote:
Hi all,
=A0
I wrote some code in Xen hypervisor. It allocates an array to track th= e runtime statistics. When I use _xmalloc to allocate the array from xen he= ap, it fails with "No enough memory". I check the Xen heap via &q= uot;xm dmesg", it shows 9MB, while the size of the array is around 14M= B. 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?
=A0
Thank you.
=A0
Alex

--001485f87e2e84ea6e048d866ef8-- --===============1444266504== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1444266504==--