Re: Ext2 Directory Index - Delete Performance

From: Daniel Phillips (phillips@nl.linux.org)
Date: Wed Apr 18 2001 - 20:22:31 EST


Jan Harkes wrote:
> On Thu, Apr 19, 2001 at 02:27:48AM +0200, Daniel Phillips wrote:
> > more memory. If you have enough memory, the inode cache won't thrash,
> > and even when it does, it does so gracefully - performance falls off
> > nice and slowly. For example, 250 Meg of inode cache will handle 2
> > million inodes with no thrashing at all.
>
> What inode cache are you talking about? According to the slabinfo output
> on my machine every inode takes up 480 bytes in the inode_cache slab. So
> 250MB is only able to hold about half a million inodes in memory.
                                                                 
Sorry, I was a little loose with terminology there. I should have said "inode
blocks in cache". The inode cache is related. When an Ext2 inode is pushed
out of the inode cache it gets transfered to a dirty block in memory, where it
shrinks to 128 bytes and shares the block with 31 other inodes. These blocks
are in the buffer cache, and this is the cache I'm talking about.

--
Daniel
-
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/



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:29 EST