From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Juergen Gross <JGross@suse.com>,
Ian Campbell <ian.campbell@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
David Vrabel <david.vrabel@citrix.com>,
Jan Beulich <JBeulich@suse.com>,
xen-devel@lists.xenproject.org
Subject: Re: Linux 4.1 reports wrong number of pages to toolstack
Date: Fri, 4 Sep 2015 21:32:29 +0100 [thread overview]
Message-ID: <55E9FFDD.10301@citrix.com> (raw)
In-Reply-To: <20150904194656.GA5612@zion.uk.xensource.com>
On 04/09/15 20:46, Wei Liu wrote:
>
>>> When I looked at write_batch() I found some snippets that I thought to
>>> be wrong. But I didn't what to make the judgement when I didn't have a
>>> clear head.
>> write_batch() is a complicated function but it can't usefully be split any
>> further. I would be happy to explain bits or expand the existing comments,
>> but it is also possible that it is buggy.
>>
> I think write_batch is correct. I overlooked one function call. I'm not
> overly happy with the handling of balloon pages and the use of deferred
> array in non-live transfer, but those things are not buggy in itself.
Handling of ballooned pages is broken at several layers. This was
covered in my talk at Seattle. Fixing it is non-trivial.
The use of the deferred array is necessary for live migrates, and used
in non-live migrates to avoid diverging the algorithm. Nothing in the
non-live side queries the deferred array (which itself is a contributory
factor to the ballooning issue, as there is no interlock to prevent
something else issuing population/depopoulation hypercalls on behalf of
the paused domain).
~Andrew
next prev parent reply other threads:[~2015-09-04 20:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-04 0:40 Linux 4.1 reports wrong number of pages to toolstack Wei Liu
2015-09-04 3:38 ` Juergen Gross
2015-09-04 8:28 ` Jan Beulich
2015-09-04 9:35 ` Andrew Cooper
2015-09-04 11:35 ` Wei Liu
2015-09-04 18:39 ` Andrew Cooper
2015-09-04 19:46 ` Wei Liu
2015-09-04 20:32 ` Andrew Cooper [this message]
2015-09-04 11:40 ` Wei Liu
2015-09-04 8:53 ` Ian Campbell
2015-09-04 9:28 ` Ian Campbell
2015-09-04 14:42 ` David Vrabel
2015-09-04 14:53 ` Wei Liu
2015-09-04 14:58 ` David Vrabel
2015-09-07 7:09 ` Jan Beulich
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=55E9FFDD.10301@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=JGross@suse.com \
--cc=david.vrabel@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).