Re: [PATCH] readahead even for FMODE_RANDOM

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jens Axboe
Date: Thursday, April 1, 2010 - 11:38 pm

On Fri, Apr 02 2010, Wu Fengguang wrote:

The application is doing large random reads. It's purely random, so
the POSIX_FADV_RANDOM hint is correct. However, thinking about it, it
may be that we later hit a random "block" that has now been cached due
to this read-ahead. Let me try and rule that out completely and see if
there's still the difference. The original reporter observed 4kb reads
hitting the driver, where 128kb was expected.


Yeah, that's an ancient issue and pretty sad.


Hmm, are we talking about the same thing? I want to hit read-ahead for
the remaining pages inside that random read, eg ensure that read-ahead
gets activated inside that window of the random request.


I'll try and give this a spin. On the laptop, I cannot reproduce the
problem of smaller < reqsize ios, so hard to say just now.


-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] readahead even for FMODE_RANDOM, Jens Axboe, (Thu Apr 1, 11:31 am)
Re: [PATCH] readahead even for FMODE_RANDOM, Wu Fengguang, (Thu Apr 1, 6:23 pm)
Re: [PATCH] readahead even for FMODE_RANDOM, Jens Axboe, (Thu Apr 1, 11:38 pm)
Re: [PATCH] readahead even for FMODE_RANDOM, Wu Fengguang, (Thu Apr 1, 11:52 pm)
Re: [PATCH] readahead even for FMODE_RANDOM, Jens Axboe, (Thu Apr 1, 11:59 pm)
Re: [PATCH] readahead even for FMODE_RANDOM, Wu Fengguang, (Fri Apr 2, 12:21 am)