* xl mem-set for domain 0 regression
@ 2017-10-10 15:03 James Dingwall
2017-10-11 16:00 ` Wei Liu
0 siblings, 1 reply; 3+ messages in thread
From: James Dingwall @ 2017-10-10 15:03 UTC (permalink / raw)
To: xen-devel; +Cc: Wei Liu, Shannon Zhao
Hi,
We are migrating from xen 4.4 to xen 4.8. At the moment we boot our
system with a xen command line that includes
"dom0_mem=8192m,min:1728m,max:8192m". We have autoballoon of dom0
disabled in xl.conf and instead call xl mem-set 0 <memory_size> to
change the dom0 memory allocation. (We shrink before starting guest
domains and then increase it when all are stopped.)
In xen 4.8.2 the xl mem-set command fails with this error:
# xl mem-set 0 3990
libxl: error: libxl.c:4196:libxl_set_memory_target: unable to retrieve
domain configuration: No such file or directory
cannot set domid 0 dynamic max memory to : 3990
I think it was the following commit that made it necessary to access the
configuration file but perhaps for the case domid == 0 this should be
skipped? If it is that simple I could try a patch which includes that
test.
commit 38cd0664a6bf1c3b887992ea029d2bb516f52c59
Author: Shannon Zhao <shannon.zhao@linaro.org>
Date: Wed Sep 28 18:19:02 2016 -0700
libxl/arm: Add the size of ACPI tables to maxmem
Here it adds the ACPI tables size to set the target maxmem to avoid
providing less available memory for guest.
Thanks,
James
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: xl mem-set for domain 0 regression
2017-10-10 15:03 xl mem-set for domain 0 regression James Dingwall
@ 2017-10-11 16:00 ` Wei Liu
2017-10-12 9:06 ` James Dingwall
0 siblings, 1 reply; 3+ messages in thread
From: Wei Liu @ 2017-10-11 16:00 UTC (permalink / raw)
To: James Dingwall; +Cc: Wei Liu, Shannon Zhao, xen-devel
On Tue, Oct 10, 2017 at 04:03:32PM +0100, James Dingwall wrote:
> Hi,
>
> We are migrating from xen 4.4 to xen 4.8. At the moment we boot our system
> with a xen command line that includes "dom0_mem=8192m,min:1728m,max:8192m".
> We have autoballoon of dom0 disabled in xl.conf and instead call xl mem-set
> 0 <memory_size> to change the dom0 memory allocation. (We shrink before
> starting guest domains and then increase it when all are stopped.)
>
> In xen 4.8.2 the xl mem-set command fails with this error:
>
> # xl mem-set 0 3990
> libxl: error: libxl.c:4196:libxl_set_memory_target: unable to retrieve
> domain configuration: No such file or directory
> cannot set domid 0 dynamic max memory to : 3990
>
> I think it was the following commit that made it necessary to access the
> configuration file but perhaps for the case domid == 0 this should be
> skipped? If it is that simple I could try a patch which includes that test.
There should be a stub configuration file generated for Dom0.
Check if there is /var/lib/xen/userdata-d.0.0000-*000.libxl-json ?
If not, check if xen-init-dom0 service is run?
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: xl mem-set for domain 0 regression
2017-10-11 16:00 ` Wei Liu
@ 2017-10-12 9:06 ` James Dingwall
0 siblings, 0 replies; 3+ messages in thread
From: James Dingwall @ 2017-10-12 9:06 UTC (permalink / raw)
To: xen-devel; +Cc: Wei Liu, Shannon Zhao
On Wed, Oct 11, 2017 at 05:00:45PM +0100, Wei Liu wrote:
> On Tue, Oct 10, 2017 at 04:03:32PM +0100, James Dingwall wrote:
> > Hi,
> >
> > We are migrating from xen 4.4 to xen 4.8. At the moment we boot our system
> > with a xen command line that includes "dom0_mem=8192m,min:1728m,max:8192m".
> > We have autoballoon of dom0 disabled in xl.conf and instead call xl mem-set
> > 0 <memory_size> to change the dom0 memory allocation. (We shrink before
> > starting guest domains and then increase it when all are stopped.)
> >
> > In xen 4.8.2 the xl mem-set command fails with this error:
> >
> > # xl mem-set 0 3990
> > libxl: error: libxl.c:4196:libxl_set_memory_target: unable to retrieve
> > domain configuration: No such file or directory
> > cannot set domid 0 dynamic max memory to : 3990
> >
> > I think it was the following commit that made it necessary to access the
> > configuration file but perhaps for the case domid == 0 this should be
> > skipped? If it is that simple I could try a patch which includes that test.
>
> There should be a stub configuration file generated for Dom0.
>
> Check if there is /var/lib/xen/userdata-d.0.0000-*000.libxl-json ?
>
> If not, check if xen-init-dom0 service is run?
Ahh... :) That was exactly the issue. We are not using the default startup scripts so this was not called. I
had compared to a Gentoo system where this file was not present (for exactly the same reason). I shall pay more
attention to the default scripts to ensure there is nothing else we have missed.
Thanks,
James
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-12 9:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10 15:03 xl mem-set for domain 0 regression James Dingwall
2017-10-11 16:00 ` Wei Liu
2017-10-12 9:06 ` James Dingwall
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.