Reiserfs puts on-disk inode (stat-data) near file "body" which is an
array of pointers to actual blocks of the file. This optimizes the case
of short files, because inode and file "body" can be read in one io. But
when there are many large files in the same directory, this results in
inodes of the files from the same directory being far from each other on
the disk, making readdir() or sequential stat() slower. Reiser4 uses
(will use, that is) different allocation policy that tries to address
this.
>
> Linux version 2.4.16 (root@cave) (gcc version egcs-2.91.66
> 19990314/Linux (egcs-1.1.2 release)) #15 Fri Jan 18 13:00:57 MET 2002
>
> There are 4 maxtor 160G IDE disks raided to something that looks more
> like 600G....
>
> # df .
> Filesystem Size Used Avail Use% Mounted on
> /dev/md0 603G 133G 470G 23% /recover5
>
> The format is "reiserfs".
>
> Is this an odd situation for "VM", Is this related to the reiserfs?
> The raid?
>
> From the strace below, you can see that most of the time is spent in
> simple "stat" calls.
>
> Before the trace below, I did the same "ls" which could have cached
> all info some 10 seconds before. If I repeat the command, within a few
> seconds, things are fast.
>
> I can live with the current situation. I'm reporting this as a
> data-point, so that Linux can become better. If someone wants me to do
> some quick tests,
>
>
> Roger.
>
Nikita.
-
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/