All of lore.kernel.org
 help / color / mirror / Atom feed
* lowest limit for balloon?
@ 2005-07-18 10:57 aq
  2005-07-18 12:38 ` Keir Fraser
  0 siblings, 1 reply; 6+ messages in thread
From: aq @ 2005-07-18 10:57 UTC (permalink / raw)
  To: xen-devel

hello,

currently there is one problem with balloon: if we specify too little
memory for a domain, that domain might crash with OOM error. even in
that case, balloon still happily do what we request. i just
accidentally balloon dom0 to 0M, and must reboot the machine ;-)

so i guess it is better to enforce a certain limit, so balloon will
not bring the amount of memory for a domain to be lower than that
level.

there are few choices to do this:
- each domain has a configurable option for this (for example:
balloon-level in domain config file)

- xen automatically determine this level for each domain (but how?)

any idea?


regards,
aq

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

* Re: lowest limit for balloon?
  2005-07-18 10:57 lowest limit for balloon? aq
@ 2005-07-18 12:38 ` Keir Fraser
  2005-07-18 15:44   ` aq
  2005-07-18 15:55   ` Paul Larson
  0 siblings, 2 replies; 6+ messages in thread
From: Keir Fraser @ 2005-07-18 12:38 UTC (permalink / raw)
  To: aq; +Cc: xen-devel

It's probably a job for higher-level management tools. Maybe a safety 
catch should be placed on 'xm balloon', but the intra-VM 
/proc/xen/balloon interface is definitely not intended for the casual 
user.

  -- Keir


On 18 Jul 2005, at 11:57, aq wrote:

> urrently there is one problem with balloon: if we specify too little
> memory for a domain, that domain might crash with OOM error. even in
> that case, balloon still happily do what we request. i just
> accidentally balloon dom0 to 0M, and must reboot the machine ;-)
>
> so i guess it is better to enforce a certain limit, so balloon will
> not bring the amount of memory for a domain to be lower than that
> level.
>
> there are few choices to do this:
> - each domain has a configurable option for this (for example:
> balloon-level in domain config file)

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

* Re: lowest limit for balloon?
  2005-07-18 12:38 ` Keir Fraser
@ 2005-07-18 15:44   ` aq
  2005-07-18 15:55   ` Paul Larson
  1 sibling, 0 replies; 6+ messages in thread
From: aq @ 2005-07-18 15:44 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

On 7/18/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
> It's probably a job for higher-level management tools. Maybe a safety
> catch should be placed on 'xm balloon', but the intra-VM
> /proc/xen/balloon interface is definitely not intended for the casual
> user.
> 

fine, but how about the balloon level to set the limit? i prefer to
calculate it based on the domain configuration, instead of specifying
it in the domain config file. but that is probably a tough job.

do you have any idea on how to determine the limit ?

regards,
aq

>   -- Keir
> 
> 
> On 18 Jul 2005, at 11:57, aq wrote:
> 
> > urrently there is one problem with balloon: if we specify too little
> > memory for a domain, that domain might crash with OOM error. even in
> > that case, balloon still happily do what we request. i just
> > accidentally balloon dom0 to 0M, and must reboot the machine ;-)
> >
> > so i guess it is better to enforce a certain limit, so balloon will
> > not bring the amount of memory for a domain to be lower than that
> > level.
> >
> > there are few choices to do this:
> > - each domain has a configurable option for this (for example:
> > balloon-level in domain config file)
> 
> 


-- 
regards,
aq

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

* Re: lowest limit for balloon?
  2005-07-18 12:38 ` Keir Fraser
  2005-07-18 15:44   ` aq
@ 2005-07-18 15:55   ` Paul Larson
  2005-07-18 16:12     ` Mark Williamson
  1 sibling, 1 reply; 6+ messages in thread
From: Paul Larson @ 2005-07-18 15:55 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel


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

On Mon, 2005-07-18 at 13:38 +0100, Keir Fraser wrote:
> It's probably a job for higher-level management tools. Maybe a safety 
> catch should be placed on 'xm balloon', but the intra-VM 
> /proc/xen/balloon interface is definitely not intended for the casual 
> user.
I still think /proc/xen/balloon makes it far too easy to shoot yourself
in the foot, even for the non-casual user.  Simply forgetting to leave
the units off the end of an echo can bring your domain (even dom0) to a
screeching halt.

Such as doing:
echo 200000 > /proc/xen/balloon
instead of:
echo 200000K > /proc/xen/balloon.

I know that it's really difficult to determine how low is too low.
Could I recommend a small interface change though, that would force the
user to always specify units {B,K,M,...}?  That might help a little at
least.

-- 
Thanks,
Paul Larson
plars@linuxtestproject.org
http://www.linuxtestproject.org

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 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] 6+ messages in thread

* Re: lowest limit for balloon?
  2005-07-18 15:55   ` Paul Larson
@ 2005-07-18 16:12     ` Mark Williamson
  2005-07-18 16:47       ` Keir Fraser
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Williamson @ 2005-07-18 16:12 UTC (permalink / raw)
  To: xen-devel; +Cc: Paul Larson

> I know that it's really difficult to determine how low is too low.
> Could I recommend a small interface change though, that would force the
> user to always specify units {B,K,M,...}?  That might help a little at
> least.

That sounds like it should rule out most accidental errors.  Whilst it's not 
quite so raw, /proc interfaces tend to be a bit high level anyhow...

As an alternative, I guess we could introduce a guest-internal ballooning tool 
- this could incorporate all the safety checks and user-friendliness (the 
same or similar checks should be used in the xm tool for the node admin).

Cheers,
Mark

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

* Re: lowest limit for balloon?
  2005-07-18 16:12     ` Mark Williamson
@ 2005-07-18 16:47       ` Keir Fraser
  0 siblings, 0 replies; 6+ messages in thread
From: Keir Fraser @ 2005-07-18 16:47 UTC (permalink / raw)
  To: Mark Williamson; +Cc: xen-devel, Paul Larson


On 18 Jul 2005, at 17:12, Mark Williamson wrote:

>> I know that it's really difficult to determine how low is too low.
>> Could I recommend a small interface change though, that would force 
>> the
>> user to always specify units {B,K,M,...}?  That might help a little at
>> least.
>
> That sounds like it should rule out most accidental errors.  Whilst 
> it's not
> quite so raw, /proc interfaces tend to be a bit high level anyhow...
>
> As an alternative, I guess we could introduce a guest-internal 
> ballooning tool
> - this could incorporate all the safety checks and user-friendliness 
> (the
> same or similar checks should be used in the xm tool for the node 
> admin).

Really, if you want to safely balloon inside a guest VM, is it so hard 
to write a tiny script to ensure a 'sane' value is passed to the /proc 
interface?

The /proc interface is only really text read/write so that accesses are 
scriptable. If you go straight at it and mess it up, I think that is 
tough luck.

  -- Keir

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

end of thread, other threads:[~2005-07-18 16:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-18 10:57 lowest limit for balloon? aq
2005-07-18 12:38 ` Keir Fraser
2005-07-18 15:44   ` aq
2005-07-18 15:55   ` Paul Larson
2005-07-18 16:12     ` Mark Williamson
2005-07-18 16: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.