| To: | David Chinner <dgc@xxxxxxx> |
|---|---|
| Subject: | [xfs-masters] Re: Interaction between Xen and XFS: stray RW mappings |
| From: | Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
| Date: | Sun, 14 Oct 2007 16:12:20 -0700 |
| Cc: | xfs@xxxxxxxxxxx, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Mark Williamson <mark.williamson@xxxxxxxxxxxx>, Morten Bøgeskov <xen-users@xxxxxxxxxxxxxxxxxx>, xfs-masters@xxxxxxxxxxx, nickpiggin@xxxxxxxxxxxx |
| In-reply-to: | <20071014225618.GN23367404@xxxxxxx> |
| References: | <470FA7C3.90404@xxxxxxxx> <20071014225618.GN23367404@xxxxxxx> |
| Reply-to: | xfs-masters@xxxxxxxxxxx |
| Sender: | xfs-masters-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 2.0.0.5 (X11/20070727) |
David Chinner wrote:
> You mean xfs_buf.c.
>
Yes, sorry.
> And yes, we delay unmapping pages until we have a batch of them
> to unmap. vmap and vunmap do not scale, so this is batching helps
> alleviate some of the worst of the problems.
>
How much performance does it cost? What kind of workloads would it show
up under?
> Realistically, if this delayed release of vmaps is a problem for
> Xen, then I think that some generic VM solution is needed to this
> problem as vmap() is likely to become more common in future (think
> large blocks in filesystems). Nick - any comments?
>
Well, the only real problem is that the pages are returned to the free
pool and reallocated while still being part of a mapping. If the pages
are still owned by the filesystem/pagecache, then there's no problem.
What's the lifetime of things being vmapped/unmapped in xfs? Are they
necessarily being freed when they're unmapped, or could unmapping of
freed memory be more immediate than other memory?
Maybe it just needs a notifier chain or something.
J
|
| Previous by Date: | [xfs-masters] Re: Interaction between Xen and XFS: stray RW mappings, David Chinner |
|---|---|
| Next by Date: | [xfs-masters] Re: Interaction between Xen and XFS: stray RW mappings, David Chinner |
| Previous by Thread: | [xfs-masters] Re: Interaction between Xen and XFS: stray RW mappings, David Chinner |
| Next by Thread: | [xfs-masters] Re: Interaction between Xen and XFS: stray RW mappings, David Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |