All of lore.kernel.org
 help / color / mirror / Atom feed
* XL low memory
@ 2013-05-29  5:22 Dominic Russell
  2013-05-29 13:00 ` Ben Guthro
  0 siblings, 1 reply; 4+ messages in thread
From: Dominic Russell @ 2013-05-29  5:22 UTC (permalink / raw)
  To: xen-devel


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

Hello,

With xl toolstack, is it possible to declare a low memory parameters, like we could with xend in the xend-config.sxp file, with the (dom0-min-mem) parameter?

I did try to google this, but could only find information about the xend-config file, which xl does not read.
I have a Dell server, on which I tested that the minimum it can go before crashing the kernel is 224mb, but the current minimum set in libxl_internal.h is only 128mb!  By the mean time, I changed the constant and recompiled 4.2.2.  To have a parameter would be easier :).

Thanks,
Dominic

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

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

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

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

* Re: XL low memory
  2013-05-29  5:22 XL low memory Dominic Russell
@ 2013-05-29 13:00 ` Ben Guthro
  2013-05-29 13:58   ` Dominic Russell
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Guthro @ 2013-05-29 13:00 UTC (permalink / raw)
  To: Dominic Russell; +Cc: xen-devel

On Wed, May 29, 2013 at 1:22 AM, Dominic Russell <GTA_doum@hotmail.com> wrote:
> Hello,
>
> With xl toolstack, is it possible to declare a low memory parameters, like
> we could with xend in the xend-config.sxp file, with the (dom0-min-mem)
> parameter?
>
> I did try to google this, but could only find information about the
> xend-config file, which xl does not read.
> I have a Dell server, on which I tested that the minimum it can go before
> crashing the kernel is 224mb, but the current minimum set in
> libxl_internal.h is only 128mb!  By the mean time, I changed the constant
> and recompiled 4.2.2.  To have a parameter would be easier :).

Hi,

You can do this with Xen command line parameters, at boot time.
See the first section of the following wiki page for reference:

http://wiki.xen.org/wiki/Xen_Best_Practices

Ben

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

* Re: XL low memory
  2013-05-29 13:00 ` Ben Guthro
@ 2013-05-29 13:58   ` Dominic Russell
  2013-05-29 14:02     ` Ben Guthro
  0 siblings, 1 reply; 4+ messages in thread
From: Dominic Russell @ 2013-05-29 13:58 UTC (permalink / raw)
  To: Ben Guthro; +Cc: xen-devel


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

Hello,

My understanding of this parameter, is that it sets the starting amount of memory, and the maximum authorized.  The memory could be ballooned down anyway!  Is that the case?
I want to keep the balloon feature for now, because there is only two gigs of RAM on this computer...

Thanks,
Dominic


From: Ben Guthro 
Sent: Wednesday, May 29, 2013 9:00 AM
To: Dominic Russell 
Cc: xen-devel@lists.xensource.com 
Subject: Re: [Xen-devel] XL low memory

On Wed, May 29, 2013 at 1:22 AM, Dominic Russell <GTA_doum@hotmail.com> wrote:
> Hello,
>
> With xl toolstack, is it possible to declare a low memory parameters, like
> we could with xend in the xend-config.sxp file, with the (dom0-min-mem)
> parameter?
>
> I did try to google this, but could only find information about the
> xend-config file, which xl does not read.
> I have a Dell server, on which I tested that the minimum it can go before
> crashing the kernel is 224mb, but the current minimum set in
> libxl_internal.h is only 128mb!  By the mean time, I changed the constant
> and recompiled 4.2.2.  To have a parameter would be easier :).

Hi,

You can do this with Xen command line parameters, at boot time.
See the first section of the following wiki page for reference:

http://wiki.xen.org/wiki/Xen_Best_Practices

Ben

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

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

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

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

* Re: XL low memory
  2013-05-29 13:58   ` Dominic Russell
@ 2013-05-29 14:02     ` Ben Guthro
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Guthro @ 2013-05-29 14:02 UTC (permalink / raw)
  To: Dominic Russell; +Cc: xen-devel

See the comments in domain_build.c above parse_dom0_mem for details:

http://tinyurl.com/pdtjje9

/*
 * dom0_mem=[min:<min_amt>,][max:<max_amt>,][<amt>]
 *
 * <min_amt>: The minimum amount of memory which should be allocated for dom0.
 * <max_amt>: The maximum amount of memory which should be allocated for dom0.
 * <amt>:     The precise amount of memory to allocate for dom0.
 *
 * Notes:
 *  1. <amt> is clamped from below by <min_amt> and from above by available
 *     memory and <max_amt>
 *  2. <min_amt> is clamped from above by available memory and <max_amt>
 *  3. <min_amt> is ignored if it is greater than <max_amt>
 *  4. If <amt> is not specified, it is calculated as follows:
 *     "All of memory is allocated to domain 0, minus 1/16th which is reserved
 *      for uses such as DMA buffers (the reservation is clamped to 128MB)."
 *
 * Each value can be specified as positive or negative:
 *  If +ve: The specified amount is an absolute value.
 *  If -ve: The specified amount is subtracted from total available memory.
 */


min:XXX will not be ballooned lower than specified.

On Wed, May 29, 2013 at 9:58 AM, Dominic Russell <GTA_doum@hotmail.com> wrote:
> Hello,
>
> My understanding of this parameter, is that it sets the starting amount of
> memory, and the maximum authorized.  The memory could be ballooned down
> anyway!  Is that the case?
> I want to keep the balloon feature for now, because there is only two gigs
> of RAM on this computer...
>
> Thanks,
> Dominic
>
> From: Ben Guthro
> Sent: Wednesday, May 29, 2013 9:00 AM
> To: Dominic Russell
> Cc: xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] XL low memory
>
> On Wed, May 29, 2013 at 1:22 AM, Dominic Russell <GTA_doum@hotmail.com>
> wrote:
>> Hello,
>>
>> With xl toolstack, is it possible to declare a low memory parameters, like
>> we could with xend in the xend-config.sxp file, with the (dom0-min-mem)
>> parameter?
>>
>> I did try to google this, but could only find information about the
>> xend-config file, which xl does not read.
>> I have a Dell server, on which I tested that the minimum it can go before
>> crashing the kernel is 224mb, but the current minimum set in
>> libxl_internal.h is only 128mb!  By the mean time, I changed the constant
>> and recompiled 4.2.2.  To have a parameter would be easier :).
>
> Hi,
>
> You can do this with Xen command line parameters, at boot time.
> See the first section of the following wiki page for reference:
>
> http://wiki.xen.org/wiki/Xen_Best_Practices
>
> Ben

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

end of thread, other threads:[~2013-05-29 14:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29  5:22 XL low memory Dominic Russell
2013-05-29 13:00 ` Ben Guthro
2013-05-29 13:58   ` Dominic Russell
2013-05-29 14:02     ` Ben Guthro

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.