Re: Interaction between Xen and XFS: stray RW mappings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Chinner
Date: Sunday, October 14, 2007 - 4:33 pm

On Sun, Oct 14, 2007 at 04:12:20PM -0700, Jeremy Fitzhardinge wrote:

Every vunmap() cal causes a global TLB sync, and the region lists
are globl with a spin lock protecting them. I thin kNick has shown
a 64p altix with ~60 cpus spinning on the vmap locks under a
simple workload....


A directory traversal when using large directory block sizes
with large directories....



The pages are still attached to the blockdev address space mapping,
but there's nothing stopping them from being reclaimed before they are
unmapped.


It's all "freed memory". At the time we pull the buffer down, there are
no further references to the buffer. the pages are released and the mapping
is never used again until it is torn down. it is torn down either on the
next xfsbufd run (either memory pressure or every 15s) or every 64th
new vmap() call to map new buffers.


We've already got a memroy shrinker hook that triggers this reclaim.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group
-
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)