Re: readahead on directories

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Phillip Susi
Date: Wednesday, April 21, 2010 - 7:57 am

On 4/20/2010 8:44 PM, Jamie Lokier wrote:

No, since those are synchronous.  I want to have readahead() queue up
reading the entire directory in the background to avoid blocking, and
get the queue filled with a bunch of requests that can be merged into
larger segments before being dispatched to the hardware.

I don't actually care to have the contents of the directories returned,
so readdir() does more than I need in that respect, and also it performs
a blocking read of one disk block at a time, which is horribly slow with
a cold cache.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
readahead on directories, Phillip Susi, (Mon Apr 19, 8:51 am)
Re: readahead on directories, Jamie Lokier, (Tue Apr 20, 5:44 pm)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 7:57 am)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 9:12 am)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 11:10 am)
Re: readahead on directories, Evgeniy Polyakov, (Wed Apr 21, 11:38 am)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 11:51 am)
Re: readahead on directories, Evgeniy Polyakov, (Wed Apr 21, 11:56 am)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 12:23 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:01 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:02 pm)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 1:13 pm)
Re: readahead on directories, Evgeniy Polyakov, (Wed Apr 21, 1:21 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:22 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:37 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:39 pm)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 1:59 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 3:06 pm)
Re: readahead on directories, Brad Boyer, (Thu Apr 22, 12:01 am)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 7:26 am)
Re: readahead on directories, Jamie Lokier, (Thu Apr 22, 10:53 am)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 12:23 pm)
Re: readahead on directories, Jamie Lokier, (Thu Apr 22, 1:35 pm)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 2:22 pm)
Re: readahead on directories, Jamie Lokier, (Thu Apr 22, 3:43 pm)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 9:13 pm)
Re: unified page and buffer cache?, Matthew Wilcox, (Fri May 7, 11:30 am)
Re: unified page and buffer cache?, tytso, (Fri May 7, 5:46 pm)
Re: unified page and buffer cache?, Phillip Susi, (Fri May 7, 5:50 pm)
Re: unified page and buffer cache?, Phillip Susi, (Fri May 7, 5:54 pm)
Re: unified page and buffer cache?, tytso, (Sat May 8, 5:52 am)