All of lore.kernel.org
 help / color / mirror / Atom feed
* How to increase the Xen heap
@ 2010-08-11  6:25 alex
  2010-08-11  6:33 ` alex
  0 siblings, 1 reply; 3+ messages in thread
From: alex @ 2010-08-11  6:25 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 562 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 672 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to increase the Xen heap
  2010-08-11  6:25 How to increase the Xen heap alex
@ 2010-08-11  6:33 ` alex
  2010-08-11  6:47   ` Keir Fraser
  0 siblings, 1 reply; 3+ messages in thread
From: alex @ 2010-08-11  6:33 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 715 bytes --]

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@gmail.com> 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
>

[-- Attachment #1.2: Type: text/html, Size: 1093 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to increase the Xen heap
  2010-08-11  6:33 ` alex
@ 2010-08-11  6:47   ` Keir Fraser
  0 siblings, 0 replies; 3+ messages in thread
From: Keir Fraser @ 2010-08-11  6:47 UTC (permalink / raw)
  To: alex, xen-devel

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@gmail.com> 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@gmail.com> 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
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-11  6:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-11  6:25 How to increase the Xen heap alex
2010-08-11  6:33 ` alex
2010-08-11  6:47   ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.