Re: dentry bloat.

From: Andrew Morton
Date: Sat May 08 2004 - 23:38:53 EST


Linus Torvalds <torvalds@xxxxxxxx> wrote:
>
> > The calculation of DNAME_INLINE_LEN assumes that slab padded the dentry out
> > to the next cacheline.
>
> No it doesn't. It's just:
>
> #define DNAME_INLINE_LEN (sizeof(struct dentry)-offsetof(struct dentry,d_iname))
>
> which is always right.

erk. OK. Things are (much) worse than I thought. The 24 byte limit means
that 20% of my names will be externally allocated, but that's no worse than
what we had before.

We should make this change to 2.4.x.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/