[lkml]   [2010]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: readahead on directories
    Phillip Susi wrote:
    > I have been trying to improve boot times with ureadahead and have
    > identified a period of time of almost zero IO throughput caused by calls
    > to open() blocking during name lookup while fetching directory blocks.
    > At first I thought this could simply be fixed by calling readahead() on
    > the directories first before open()ing all of the normal files for
    > readahead.
    > Unfortunately it seems that readahead() fails when called on a
    > directory. I was wondering if I could get some help understanding why
    > this is, and how it could be fixed.

    readahead() doesn't make much sense on a directory - the offset and
    size aren't meaningful.

    But does plain opendir/readdir/closedir solve the problem?

    -- Jamie

     \ /
      Last update: 2010-04-21 02:47    [W:2.120 / U:0.132 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site