From mboxrd@z Thu Jan 1 00:00:00 1970 From: alex Subject: How to increase the Xen heap Date: Tue, 10 Aug 2010 23:25:25 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0525602604==" Return-path: 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 --===============0525602604== Content-Type: multipart/alternative; boundary=0016367fa92da8381e048d8650d4 --0016367fa92da8381e048d8650d4 Content-Type: text/plain; charset=ISO-8859-1 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 --0016367fa92da8381e048d8650d4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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
--0016367fa92da8381e048d8650d4-- --===============0525602604== 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 --===============0525602604==--