[Lustre-devel] proposal on implementing a new readahead in clio
Jinshan.Xiong at Sun.COM
Sat Jan 23 17:01:46 PST 2010
Alexey Lyashkov wrote:
> We have an idea to spawn a per file readahead thread for each process,
> and this thread can be used to issue the readahead RPC async.
> I correctly understand: you suggest a spawn one new thread per open
> so if client have 10 processes, and each process is open 100 files, you
> need spawn 1000 new threads?
No, per process readahead, or some system readahead thread pool, this is
because most of those threads are sleeping, and it consumes little time
to issue readahead requests. The idea behind the scheme is to issue
readahead rpcs async.
BTW, I'm not going to implement what you mentioned in linux, because I
don't think this is a good idea, as what I said in design doc. However,
we HAVE to have an async thread pool to implement readahead for windows.
Windows doesn't have an interface of issuing async read request, lack of
a mechanism to have page lock or similar things - what a pity!
> On Fri, 2010-01-22 at 18:53 +0800, jay wrote:
>> Here is a pdf version of design document. Also I'm attaching a picture
>> because the pictures in pdf is not clear.
>> jay wrote:
Good good study, day day up
More information about the lustre-devel