All of lore.kernel.org
 help / color / mirror / Atom feed
* 3.0.3-rc3 restore problem
@ 2006-10-12 16:52 Tuan Van
  2006-10-12 16:59 ` Keir Fraser
  2006-10-12 17:01 ` Ewan Mellor
  0 siblings, 2 replies; 3+ messages in thread
From: Tuan Van @ 2006-10-12 16:52 UTC (permalink / raw)
  To: xen-devel

Hi everyone,
I tried to restore a saved domain but it failed with:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line
263, in domain_restore_fd
    return XendCheckpoint.restore(self, fd)
  File "/usr/lib/python2.4/site-packages/xen/xend/XendCheckpoint.py",
line 150, in restore
    balloon.free(xc.pages_to_kib(nr_pfns))
  File "/usr/lib/python2.4/site-packages/xen/xend/balloon.py", line 166,
in free
    raise VmError(
VmError: I need 192512 KiB, but dom0_min_mem is 200704 and shrinking to
200704 KiB would leave only 119668 KiB free.

For some reason, balloon.py get the wrong value for dom0_min_mem. In
grub.conf I set dom0_mem=131072 and xm list shows it correctly:
# xm list 0
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      128     1 r-----   4906.2

Did I miss something ?

Thanks,
Tuan

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

* Re: 3.0.3-rc3 restore problem
  2006-10-12 16:52 3.0.3-rc3 restore problem Tuan Van
@ 2006-10-12 16:59 ` Keir Fraser
  2006-10-12 17:01 ` Ewan Mellor
  1 sibling, 0 replies; 3+ messages in thread
From: Keir Fraser @ 2006-10-12 16:59 UTC (permalink / raw)
  To: Tuan Van, xen-devel

On 12/10/06 17:52, "Tuan Van" <lang.thang@gmail.com> wrote:

> For some reason, balloon.py get the wrong value for dom0_min_mem. In
> grub.conf I set dom0_mem=131072 and xm list shows it correctly:
> # xm list 0
> Name                                      ID Mem(MiB) VCPUs State   Time(s)
> Domain-0                                   0      128     1 r-----   4906.2
> 
> Did I miss something ?

/etc/xen/xend-config.sxp. Change the dom0-min-mem parameter in there to
zero. If you know what you are doing then dom0 auto-ballooning is really
just a pain in the neck. Probably we should disable it by default if we see
an explicit dom0_mem= parameter on the Xen command line.

 -- Keir

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

* Re: 3.0.3-rc3 restore problem
  2006-10-12 16:52 3.0.3-rc3 restore problem Tuan Van
  2006-10-12 16:59 ` Keir Fraser
@ 2006-10-12 17:01 ` Ewan Mellor
  1 sibling, 0 replies; 3+ messages in thread
From: Ewan Mellor @ 2006-10-12 17:01 UTC (permalink / raw)
  To: Tuan Van; +Cc: xen-devel

On Thu, Oct 12, 2006 at 09:52:59AM -0700, Tuan Van wrote:

> Hi everyone,
> I tried to restore a saved domain but it failed with:
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line
> 263, in domain_restore_fd
>     return XendCheckpoint.restore(self, fd)
>   File "/usr/lib/python2.4/site-packages/xen/xend/XendCheckpoint.py",
> line 150, in restore
>     balloon.free(xc.pages_to_kib(nr_pfns))
>   File "/usr/lib/python2.4/site-packages/xen/xend/balloon.py", line 166,
> in free
>     raise VmError(
> VmError: I need 192512 KiB, but dom0_min_mem is 200704 and shrinking to
> 200704 KiB would leave only 119668 KiB free.
> 
> For some reason, balloon.py get the wrong value for dom0_min_mem. In
> grub.conf I set dom0_mem=131072 and xm list shows it correctly:
> # xm list 0
> Name                                      ID Mem(MiB) VCPUs State   Time(s)
> Domain-0                                   0      128     1 r-----   4906.2
> 
> Did I miss something ?

dom0_min_mem is an additional setting in /etc/xen/xend-config.sxp,
over-and-above anything that might be set on the kernel command line
(dom0_mem).  You need to change that setting to match your dom0_mem (or make
it lower than dom0_mem, if that's what you'd like).

Ewan.

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

end of thread, other threads:[~2006-10-12 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12 16:52 3.0.3-rc3 restore problem Tuan Van
2006-10-12 16:59 ` Keir Fraser
2006-10-12 17:01 ` Ewan Mellor

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.