From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Bob Liu <bob.liu@oracle.com>
Cc: Bob Liu <lliubbo@gmail.com>,
keir@xen.org, ian.campbell@citrix.com,
George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com,
Jan Beulich <JBeulich@suse.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH 2/4] xen: introduce an "scrub" free page list
Date: Wed, 18 Jun 2014 09:18:14 -0400 [thread overview]
Message-ID: <20140618131814.GD2788@laptop.dumpdata.com> (raw)
In-Reply-To: <53A0E328.8070702@oracle.com>
On Wed, Jun 18, 2014 at 08:54:00AM +0800, Bob Liu wrote:
>
> On 06/17/2014 08:36 PM, Jan Beulich wrote:
> >>>> On 17.06.14 at 13:49, <lliubbo@gmail.com> wrote:
> >> Because of page scrubbing, it's very slow to destroy a domain with large
> >> memory.
> >> It takes around 10 minutes when destroy a guest of nearly 1 TB of memory.
> >>
> >> This patch introduced a "scrub" free page list, pages on this list need to be
> >> scrubbed before use. During domain destory just mark pages "PGC_need_scrub"
> >> and then add them to this list, so that xl can return quickly.
> >>
> >> In alloc_domheap_pages():
> >> - If there are pages on the normal "heap" freelist, allocate them.
> >> - Try to allocate from the "scrub" free list with the same order and do
> >> scrubbing synchronously.
> >>
> >> In order to not fail high order allocate request, merge page trunks for
> >> PGC_need_scrub pages.
> >> Note: PCG_need_scrub pages and normal pages are not mergeable
> >
> > The whole series needs sync-ing logically both with Konrad's recent
> > boot time scrubbing changes (this change here really makes his
> > change unnecessary - the affected pages could quite well be simply
> > marked as needing scrubbing, getting dealt with by the logic added
> > here) and with XSA-100's change.
> >
>
> I agree. Konrad?
The patch is already in staging. See 7430a86de0c9bd126b441570e459f6e06413cbf6
and 4bd78937ec324bcef4e29ef951e0ff9815770de1.
Thanks!
next prev parent reply other threads:[~2014-06-18 13:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 11:49 [PATCH 1/4] xen: asm-x86: introduce PGC_need_scrub page flag Bob Liu
2014-06-17 11:49 ` [PATCH 2/4] xen: introduce an "scrub" free page list Bob Liu
2014-06-17 12:36 ` Jan Beulich
2014-06-18 0:54 ` Bob Liu
2014-06-18 13:18 ` Konrad Rzeszutek Wilk [this message]
2014-06-17 11:49 ` [PATCH 3/4] xen: separate a function merge_free_trunks from Bob Liu
2014-06-17 12:39 ` Jan Beulich
2014-06-17 11:49 ` [PATCH 4/4] xen: use idle vcpus to scrub pages Bob Liu
2014-06-17 13:01 ` Jan Beulich
2014-06-18 1:18 ` Bob Liu
2014-06-18 10:42 ` Jan Beulich
2014-06-17 12:35 ` [PATCH 1/4] xen: asm-x86: introduce PGC_need_scrub page flag Jan Beulich
2014-06-17 12:46 ` Julien Grall
2014-06-18 0:55 ` Bob Liu
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=20140618131814.GD2788@laptop.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=bob.liu@oracle.com \
--cc=ian.campbell@citrix.com \
--cc=keir@xen.org \
--cc=lliubbo@gmail.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 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.