login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
23
Re: [patch] Re: Interaction between Xen and XFS: stray RW mappings
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andi Kleen
Subject:
Re: [patch] Re: Interaction between Xen and XFS: stray RW mappings
Date: Tuesday, October 23, 2007 - 2:30 am
On Tue, Oct 23, 2007 at 05:04:14PM +1000, David Chinner wrote:
quoted text
> On Tue, Oct 23, 2007 at 10:36:41AM +1000, David Chinner wrote: > > On Tue, Oct 23, 2007 at 01:35:14AM +0200, Andi Kleen wrote: > > > On Tue, Oct 23, 2007 at 08:32:25AM +1000, David Chinner wrote: > > > > Could vmap()/vunmap() take references to the pages that are mapped? That > > > > way delaying the unmap would also delay the freeing of the pages and hence > > > > we'd have no problems with the pages being reused before the mapping is > > > > torn down. That'd work for Xen even with XFS's lazy unmapping scheme, and > > > > would allow Nick's more advanced methods to work as well.... > > > > > > You could always just keep around an array of the pages and then drop the > > > reference count after unmap. Or walk the vmalloc mapping and generate such > > > an array before freeing, then unmap and then drop the reference counts. > > > > You mean like vmap() could record the pages passed to it in the area->pages > > array, and we walk and release than in __vunmap() like it already does > > for vfree()? > > > > If we did this, it would probably be best to pass a page release function > > into the vmap or vunmap call - we'd need page_cache_release() called on > > the page rather than __free_page().... > > > > The solution belongs behind the vmap/vunmap interface, not in XFS.... > > Lightly tested(*) patch that does this with lazy unmapping > below for comment.
Thanks
quoted text
> > (*) a) kernel boots, b) made an XFS filesystem with 64k directory > blocks, created ~100,000 files in a directory to get a wide btree > (~1700 blocks, still only a single level) and run repeated finds > across it dropping caches in between. Each traversal maps and > unmaps every btree block.
Hmm, the __free_page -> page_cache_release() change in vfree() would have been simpler wouldn't it? But if it works it is fine. -Andi -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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
, Andi Kleen
, (Mon Oct 15, 2:36 am)
Re: Interaction between Xen and XFS: stray RW mappings
, Andi Kleen
, (Mon Oct 15, 4:07 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
, Andi Kleen
, (Mon Oct 15, 5:54 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
, Andi Kleen
, (Mon Oct 22, 2:49 am)
Re: Interaction between Xen and XFS: stray RW mappings
, Andi Kleen
, (Mon Oct 22, 6:47 am)
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
, Andi Kleen
, (Mon Oct 22, 4:35 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)
[patch] Re: Interaction between Xen and XFS: stray RW mappings
, David Chinner
, (Tue Oct 23, 12:04 am)
Re: Interaction between Xen and XFS: stray RW mappings
, Andi Kleen
, (Tue Oct 23, 2:28 am)
Re: [patch] Re: Interaction between Xen and XFS: stray RW ...
, Andi Kleen
, (Tue Oct 23, 2:30 am)
Re: [patch] Re: Interaction between Xen and XFS: stray RW ...
, David Chinner
, (Tue Oct 23, 5:41 am)
Re: [patch] Re: Interaction between Xen and XFS: stray RW ...
, Jeremy Fitzhardinge
, (Tue Oct 23, 7:33 am)
[PATCH] Allow lazy unmapping by taking extra page referenc ...
, David Chinner
, (Tue Oct 23, 9:36 pm)
Re: [PATCH] Allow lazy unmapping by taking extra page refe ...
, Jeremy Fitzhardinge
, (Tue Oct 23, 10:08 pm)
[PATCH] Allow lazy unmapping by taking extra page referenc ...
, David Chinner
, (Wed Oct 24, 2:48 pm)
Re: [PATCH] Allow lazy unmapping by taking extra page refe ...
, Jeremy Fitzhardinge
, (Wed Oct 24, 3:46 pm)
Re: [PATCH] Allow lazy unmapping by taking extra page refe ...
, David Chinner
, (Wed Oct 24, 4:21 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Gautham R Shenoy
[PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Jeffrey V. Merkey
Re: Versioning file system
James Bottomley
Re: [PATCH -mm 1/2] scsi: remove dma_is_consistent usage in 53c700
David Miller
Re: NO_HZ: timer interrupt stuck
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Miles Bader
Re: way to automatically add untracked files?
Harvey Harrison
Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
Alex Riesen
Re: git exclude patterns for directory
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
netfilter: nf_conntrack_sip: add T.38 FAX support
Linux Kernel Mailing List
drivers/acpi: use kasprintf
linux-netdev
:
Timo Teräs
ip xfrm policy semantics
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
联系系统管理员
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
frantisek holop
Re: mount ffs as msdos, system hangs
Colocation donated by:
Syndicate