Re: Ext2 directory index, updated

From: Christian Laursen (xi@borderworlds.dk)
Date: Thu Nov 08 2001 - 02:21:39 EST


Daniel Phillips <phillips@bonn-fries.net> writes:

> On November 4, 2001 11:09 pm, Christian Laursen wrote:
> > Daniel Phillips <phillips@bonn-fries.net> writes:
> >
> > > ***N.B.: still for use on test partitions only.***
> >
> > It's the first time, I've tried this patch and I must say, that
> > the first impression is very good indeed.
> >
> > I took a real world directory (my linux-kernel MH folder containing
> > roughly 115000 files) and did a 'du -s' on it.
> >
> Which kernel are you using? From 2.4.10 on ext2 has an accelerator in
> ext2_find_entry - it caches the last lookup position. I'm wondering how that
> affects this case.

I ran the tests again and got some real numbers this time.

The accelerator should work as normal, when the filesystem is not
mounted with -o index, shouldn't it (Although it's on a kernel
with the directory index patch)?

xi@tam:~/Mail > uname -a
Linux tam 2.4.13-3um #1 Sun Nov 4 14:29:19 CET 2001 i686 unknown

xi@tam:~/Mail > mount
/dev/ubd0 on / type ext2 (rw,index)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/ubd2 on /mnt/flaf type ext2 (rw)

xi@tam:/mnt/flaf > time du -s linux-kernel/
685652 linux-kernel

real 19m14.689s
user 0m1.650s
sys 23m39.000s

xi@tam:~/Mail > time du -s linux-kernel/
686432 linux-kernel

real 1m8.363s
user 0m5.500s
sys 0m57.350s

-- 
Best regards
    Christian Laursen
-
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 : Thu Nov 15 2001 - 21:00:17 EST