This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [PATCH] Add Small Memory Warning to XM for create and me

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Add Small Memory Warning to XM for create and mem-set
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Fri, 21 Apr 2006 17:41:34 -0500
Cc: Daniel Stekloff <dsteklof@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Ewan Mellor <ewan@xxxxxxxxxxxxx>
Delivery-date: Fri, 21 Apr 2006 15:42:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200604211629.40691.mark.williamson@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1145632658.2566.9.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <200604211629.40691.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mail/News 1.5 (X11/20060309)
Mark Williamson wrote:
I really like this idea. I think it's most important for ballooning, which is a really easy way to get a domain to commit suicide otherwise ;-)

I'd quite like to see it implemented Xend-side, though, with the "warning level" configurable (and probably disablable) in the xend-config.sxp so that users who really do want to create very small domUs can tweak the system not to warn them.

I'm not sure I agree that Xend is the right place to do this. You would have to add another parameter to the either the domain config or to the actual create() call that basically had the semantics of "if memory is less than X, throw an exception." That seems like a rather awkward addition to the interface and it makes client code harder to write.

I'll attempt to be telepathic here and guess that you suggested this because there's no xm config file so there's no easy way to be able to tell xm to never give an error when mem is too small? I think this is a good point in time to start thinking about just implementing an xm config file.

If you use SafeConfigParser and just grab from a standard location (say /etc/xen/xm.conf), you should be able to do it properly (just within xm) with very little code.



Anthony Liguori


On Friday 21 April 2006 16:17, Daniel Stekloff wrote:

This patch adds a warning to xm for creating and setting a domain's
memory under 32 MBs. Patch adds a "--force-mem" option to "xm create"
and "xm mem-set" commands for creating or setting memory less than 32
MBs. Patch also updates man page and user manual.

All comments welcome.



Xen-devel mailing list

Xen-devel mailing list