[lkml]   [2001]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: linux-2.4.10-pre5
On September 11, 2001 12:39 am, Rik van Riel wrote:
> On Mon, 10 Sep 2001, Linus Torvalds wrote:
> > (Ugly secret: because I tend to have tons of memory, I sometimes do
> >
> > find tree1 tree2 -type f | xargs cat > /dev/null
> This suggests we may want to do agressive readahead on the
> inode blocks.
> They are small enough to - mostly - cache and should reduce
> the amount of disk seeks quite a bit. In an 8 MB block group
> with one 128 byte inode every 8 kB, we have a total of 128 kB
> of inodes...

I tested this idea by first doing a ls -R on the tree, then Linus's find

time ls -R linux >/dev/null
time find linux -type f | xargs cat > /dev/null

the plan being that the ls command would read all the inode blocks and hardly
any of the files would be big enough to have an index block, so we would
effectively have all metadata in cache.

According to your theory the total time for the two commands should be less
than the second command alone. But it wasn't, the two commands together took
almost exactly the same time as the second command by itself.

There goes that theory.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.076 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site