All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <Ian.Jackson@eu.citrix.com>
To: xen-devel@lists.xen.org, ian.campbell@eu.citrix.com
Subject: Re: Test report: Migration from 4.1 to 4.2 works
Date: Mon, 10 Sep 2012 15:42:59 +0100	[thread overview]
Message-ID: <20557.64627.33137.937086@mariner.uk.xensource.com> (raw)
In-Reply-To: <20557.62949.300788.804976@mariner.uk.xensource.com>

Ian Jackson writes ("Re: Test report: Migration from 4.1 to 4.2 works"):
>   xc: Saving memory: iter 1 (last sent 134144 skipped 1553): 0/1048576
>   0%xc: error: Failed to allocate memory for batch.!: Internal error

15:22 <ijc> It might be interesting to compare the actual memory usage
            of the same domain started with xend and xl on 4.1/4.2?

Started with xl create:

root@potato-beetle:~# xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   512     4     r-----     641.0
win.guest.osstest                           10   507     2     -b----     223.4
root@potato-beetle:~#

Then switched to xend:

root@potato-beetle:~# /etc/init.d/xend start
root@potato-beetle:~# xenstore-rm /local/domain/0/libxl/disable_udev

Started with xm create:

root@potato-beetle:~# xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   512     4     r-----     720.9
win.guest.osstest                           11   515     2     ------     238.0
root@potato-beetle:~#

I think what is happening is this: xend accounts memory differently to
xl, giving the guest actually slightly more than is specified in the
config file.  When xl during incoming migration reads the guest config
file, it assumes that the config file's memory maximum is an accurate
representation of the guest's actual memory use.

I can reproduce this problem by ballooning a PV guest before migrating
it.  Eg,
   xl create /etc/xen/debian.guest.osstest.cfg
with memory=512, maxmem=1024.  Then
   xl migrate debian.guest.osstest localhost
works but
   xl mem-set debian.guest.osstest 1024
   xl migrate debian.guest.osstest localhost

I think we need to fix this in 4.2.1 somehow.

Ian.

  reply	other threads:[~2012-09-10 14:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31 11:04 Test report: Migration from 4.1 to 4.2 works Ian Jackson
2012-08-31 11:09 ` Ian Campbell
2012-08-31 11:13   ` Ian Campbell
2012-08-31 14:35   ` Ian Jackson
2012-08-31 11:30 ` Jan Beulich
2012-08-31 13:01   ` Ian Campbell
2012-08-31 13:11     ` Jan Beulich
2012-08-31 13:18       ` Ian Campbell
2012-08-31 14:38     ` Ian Jackson
2012-08-31 14:58       ` Ian Campbell
2012-08-31 14:41   ` Ian Jackson
2012-08-31 11:56 ` Mathias Gaunard
2012-08-31 12:03   ` Ian Campbell
2012-09-10 14:15 ` Ian Jackson
2012-09-10 14:42   ` Ian Jackson [this message]
2012-09-10 14:48     ` Ian Campbell
2012-09-10 15:29   ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20557.64627.33137.937086@mariner.uk.xensource.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=ian.campbell@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.