Re: negative dentries wasting ram

Alexander Viro (viro@math.psu.edu)
Fri, 24 May 2002 15:04:26 -0400 (EDT)


On Fri, 24 May 2002, Andrea Arcangeli wrote:

> > I might buy that argument if we didn't also leave around _unreferenced_
> > inodes for minutes in the icache. And _that_ is much stronger source of
>
> I don't see it, at the last iput of an inode with i_nlink == 0 the inode
> is freed immediatly, not like the dcache that is left floating around as
> a negative one with no useful caching effects for most workloads.

Right. Now look at the inodes with i_nlink != 0. And realize that they'd
already gone through the aging in dcache - if they get to the point of
final iput(), they have no references remaining. And _after_ that they
happily stay in icache for minutes.

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