[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] xen 4.3.2 rc1 memory ballooning



On Fri, Feb 21, 2014 at 02:44:41PM +0400, Vasiliy Tolstov wrote:
> 2014-02-21 14:39 GMT+04:00 Wei Liu <wei.liu2@xxxxxxxxxx>:
> > Ah, so Daniel's change only affects "xl mem-set" command. When building a
> > domain the maxmem is still capped to target_memory (which is memory= in
> > you domain config file).
> >
> > Unfortunately Daniel's patch won't help you much with that
> 
> 
> =( Very bad. How much changes needed to fix that?
> 

DISCLAIMER: xl is designed like that for a reason, I don't think I know
this particular reason. I just know how it is implemented. So you need
to evaluate the risk before changing it. I wouldn't claim the following
paragraphs as a "fix" to this issue.

If you don't care much about altering the behavior, the change is only
oneliner. Find libxl/libxl_dom.c:libxl__build_pre, then look for
xc_domain_setmaxmem. There's a parameter "info->target_memkb". Change it 
to "info->max_memkb".

With that change, not the cap is set to maxmem= by default when building
a domain.

Wei.

> -- 
> Vasiliy Tolstov,
> e-mail: v.tolstov@xxxxxxxxx
> jabber: vase@xxxxxxxxx

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.