On Sun, 16 Sep 2007, Jörn Engel wrote: > > I have been toying with the idea of having seperate caches for pinned > and movable dentries. Downside of such a patch would be the number of > memcpy() operations when moving dentries from one cache to the other. Totally inappropriate. I bet 99% of all "dentry_lookup()" calls involve turning the last dentry from having a count of zero ("movable") to having a count of 1 ("pinned"). So such an approach would fundamentally be broken. It would slow down all normal dentry lookups, since the *common* case for leaf dentries is that they have a zero count. So it's much better to do it on a "directory/file" basis, on the assumption that files are *mostly* movable (or just freeable). The fact that they aren't always (ie while kept open etc), is likely statistically not all that important. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Jörn Engel <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- References:
- [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Christoph Lameter <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Nick Piggin <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Jörn Engel <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Andrew Morton <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Goswin von Brederlow <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Andrea Arcangeli <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Goswin von Brederlow <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Andrea Arcangeli <[email protected]>
- Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- From: Jörn Engel <[email protected]>
- [00/41] Large Blocksize Support V7 (adds memmap support)
- Prev by Date: Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- Next by Date: Re: [PATCH v3] menuconfig: distinguish between selected-by-another options and comments
- Previous by thread: Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- Next by thread: Re: [00/41] Large Blocksize Support V7 (adds memmap support)
- Index(es):