All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Braam <Peter.Braam@Sun.COM>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] read ahead
Date: Tue, 11 Dec 2007 11:59:13 -0700	[thread overview]
Message-ID: <475EDE01.2070408@sun.com> (raw)
In-Reply-To: <88917D9B-1A3F-4C20-8764-FD9A4A2FB973@sun.com>

This might be quite damaging in some situations - for example, if the 
server has the 4K data cached in RAM it should refuse to do a disk read 
probably, but in order to do so it would need to know that part of the 
request is optional, while the 4K is mandatory.

Can we give hints to the OSC about what part of I/O is requested by 
applications and what is requested for read-ahead?  If so, could we use 
a more interesting IOV to do this faster?

- Peter -

Oleg Drokin wrote:
> Hello!
>
> On Dec 11, 2007, at 1:25 PM, Peter Braam wrote:
>
>> Can anyone tell me if read ahead in Lustre includes "early return" 
>> features.  I mean that if I read 4K and readahead decides to fetch 1M 
>> will my request get serviced when the first 4K arrives?  Is this 
>> important?
>
> I think this is impossible to implement with current architecture.
> We have one bulk RPC (1M in size) that until received completely, 
> won't issue any callbacks.
> So only when that entire 1M is received your 4k request would return.
> On the other hand if your example is 4k and 2M, then we will return 
> after 1M that contains requested 4k is received (but there is no 
> guarantee at the moment we won't receive second 2M first, I believe).
>
> Bye,
>     Oleg

  reply	other threads:[~2007-12-11 18:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11 18:25 [Lustre-devel] read ahead Peter Braam
2007-12-11 18:42 ` Nikita Danilov
2007-12-11 23:47   ` Andreas Dilger
2007-12-12  0:57     ` Mark Seger
2007-12-12  5:53     ` Nikita Danilov
2007-12-14  0:21       ` Andreas Dilger
2007-12-20 10:20         ` Alex Lyashkov
2007-12-20 20:44           ` Andreas Dilger
2007-12-12 15:52     ` chas williams - CONTRACTOR
2007-12-12 16:41       ` Oleg Drokin
2007-12-13 15:15         ` chas williams - CONTRACTOR
2007-12-13 15:23           ` Oleg Drokin
     [not found]     ` <475F7759.2080103@sun.com>
     [not found]       ` <47603E32.6070203@sun.com>
     [not found]         ` <4760B247.4030505@sun.com>
2007-12-13 19:09           ` Peter Braam
2007-12-11 18:43 ` Oleg Drokin
2007-12-11 18:59   ` Peter Braam [this message]
2007-12-11 19:16     ` Oleg Drokin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=475EDE01.2070408@sun.com \
    --to=peter.braam@sun.com \
    --cc=lustre-devel@lists.lustre.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.