[lkml]   [2000]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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.


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

     \ /
      Last update: 2005-03-22 13:56    [W:0.017 / U:7.256 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site