From: David Lively <dlively@virtualiron.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>,
Ben Guthro <bguthro@virtualiron.com>
Subject: Re: [PATCH] Segment dirty log for performance
Date: Thu, 25 Oct 2007 11:23:57 -0400 [thread overview]
Message-ID: <4720B50D.5090807@virtualiron.com> (raw)
In-Reply-To: <C34665E6.176EC%Keir.Fraser@cl.cam.ac.uk>
Keir Fraser wrote:
> On 24/10/07 22:00, "Ben Guthro" <bguthro@virtualiron.com> wrote:
>
>
>> Represent dirty log as an array of bitmaps.
>> Also, when bookkeeping the valid HVM pfn ranges, breaks the PFNs
>> into two ranges -- RAM and VGA. This allows the dirty
>> page bitmaps to conform to these ranges and to skip the
>> (sometimes large) empty PFN range between them.
>>
>> Signed-off-by: Ben Guthro <bguthro@virtualron.com>
>> Signed-off-by: Dave Lively <dlively@virtualiron.com>
>>
>
> In terms of tracking active ranges of pseudophysical space, we already have
> a data structure that can give that info (the p2m radix tree). And the
> better way of subdividing the dirty bitmap would be to make that a radix
> tree too, where the leaves are PAGE_SIZE'd bitmaps each handling 128MB of
> pseudophys address space. This would mean we only need order-0 allocations
> in the dirty bitmap logic, greatly reducing the chance of domain-migration
> failure with ENOMEM.
>
> Apart from the obvious benefit of allocating a smaller dirty bitmap, which
> is hence more likely to succeed, how much does this improve migration
> performance for a small-ish memory guest? Is it significant?
>
> -- Keir
>
No, the performance benefit is not noticeable. We (Robert Phillips,
actually) did it to make migrate more reliable. But relying only on
order-0 allocations is obviously even better. I'll take a look at using
the radix tree as you suggest.
Thanks,
Dave
next prev parent reply other threads:[~2007-10-25 15:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 21:00 [PATCH] Segment dirty log for performance Ben Guthro
2007-10-25 14:25 ` Keir Fraser
2007-10-25 15:23 ` David Lively [this message]
2007-10-25 15:31 ` Keir Fraser
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=4720B50D.5090807@virtualiron.com \
--to=dlively@virtualiron.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=bguthro@virtualiron.com \
--cc=xen-devel@lists.xensource.com \
/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.