lkml.org 
[lkml]   [2000]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: very large directories

> Every time a file needs to be opened, the dir is opened and the
> filename must be searched for.
>
> Anyone concerned with file access performance should never put
> that many files in a single dir.
>
> Mike A. Harris

That is not true.

If there's enough RAM for directory cache, the directory size is
irrelevant. Directory is scanned when file is first open and
then entry is in fast global cache. Organisation of directory tree and
directory sizes doesn't affect lookup speed at all.

When your'e getting short on memory or you're listing directory,
linear ext2 directory structure will slow down operation, however.

JB


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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