From: Keir Fraser Subject: Re: lowest limit for balloon? Date: Mon, 18 Jul 2005 17:47:02 +0100 Message-ID: References: <9cde8bff05071803571388e532@mail.gmail.com> <3f5bbf036ea5085e752235233f8760dd@cl.cam.ac.uk> <1121702139.21890.30.camel@localhost.localdomain> <200507181712.03798.mark.williamson@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200507181712.03798.mark.williamson@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mark Williamson Cc: xen-devel@lists.xensource.com, Paul Larson List-Id: xen-devel@lists.xenproject.org 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