Re: Interaction between Xen and XFS: stray RW mappings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Sunday, October 14, 2007 - 8:42 pm

Nick Piggin wrote:

Sure.


Yes.  If there's some way to tell whether a particular page is in a lazy
mapping then that would help, since we could easily tell whether we need
to do the whole shootdown thing.  I would expect the population of
lazily mapped pages in the whole freepage pool to be pretty small, but
if the allocator tends to return the most recently freed pages you might
hit them fairly regularly (shoving them at the other end of the freelist
might be useful).


That's right.  The hypervisor doesn't trust the guests, so it prevents
them from getting into a state where they can do bad things.


Sounds good.


For now I've proposed a patch to simply eagerly vunmap everything when
CONFIG_XEN is set.  It certainly works, but I don't have a good feel for
how much of a performance hit that imposes on XFS.  A slightly more
subtle change would be to test to see if we're actually running under
Xen before taking the eager path, so at least the performance burden
only affects actual Xen users (and I presume xfs+xen is a fairly rare
combination, or this problem would have turned up earlier, or perhaps
the old xenified kernels have some other workaround for it).

    J
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Fri Oct 12, 9:58 am)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Fri Oct 12, 10:08 am)
Re: Interaction between Xen and XFS: stray RW mappings, David Chinner, (Sun Oct 14, 3:56 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Sun Oct 14, 4:12 pm)
Re: Interaction between Xen and XFS: stray RW mappings, David Chinner, (Sun Oct 14, 4:33 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Sun Oct 14, 5:57 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Sun Oct 14, 8:42 pm)
Re: Interaction between Xen and XFS: stray RW mappings, David Chinner, (Sun Oct 14, 9:11 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Nick Piggin, (Sun Oct 14, 9:15 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Sun Oct 14, 9:18 pm)
Re: Interaction between Xen and XFS: stray RW mappings, David Chinner, (Sun Oct 14, 9:25 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Nick Piggin, (Mon Oct 15, 12:26 am)
Re: [xfs-masters] Re: Interaction between Xen and XFS: str ..., Christoph Hellwig, (Mon Oct 15, 1:31 am)
Re: Interaction between Xen and XFS: stray RW mappings, Nick Piggin, (Mon Oct 15, 4:28 am)
Re: Interaction between Xen and XFS: stray RW mappings, Nick Piggin, (Mon Oct 15, 7:56 am)
Re: Interaction between Xen and XFS: stray RW mappings, Dave Airlie, (Sun Oct 21, 5:17 am)
Re: Interaction between Xen and XFS: stray RW mappings, Benjamin Herrenschmidt, (Sun Oct 21, 3:16 pm)
Re: Interaction between Xen and XFS: stray RW mappings, dean gaudet, (Sun Oct 21, 8:18 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Sun Oct 21, 8:34 pm)
Re: Interaction between Xen and XFS: stray RW mappings, dean gaudet, (Sun Oct 21, 9:28 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Nick Piggin, (Sun Oct 21, 9:39 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Mon Oct 22, 11:32 am)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Mon Oct 22, 11:37 am)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Mon Oct 22, 11:40 am)
Re: Interaction between Xen and XFS: stray RW mappings, Andi Kleen, (Mon Oct 22, 12:07 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Jeremy Fitzhardinge, (Mon Oct 22, 12:11 pm)
Re: Interaction between Xen and XFS: stray RW mappings, David Chinner, (Mon Oct 22, 3:32 pm)
Re: Interaction between Xen and XFS: stray RW mappings, Zachary Amsden, (Mon Oct 22, 5:16 pm)
Re: Interaction between Xen and XFS: stray RW mappings, David Chinner, (Mon Oct 22, 5:36 pm)
Re: [patch] Re: Interaction between Xen and XFS: stray RW ..., Jeremy Fitzhardinge, (Tue Oct 23, 7:33 am)
Re: [PATCH] Allow lazy unmapping by taking extra page refe ..., Jeremy Fitzhardinge, (Tue Oct 23, 10:08 pm)
Re: [PATCH] Allow lazy unmapping by taking extra page refe ..., Jeremy Fitzhardinge, (Wed Oct 24, 3:46 pm)