lkml.org 
[lkml]   [1996]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: fcntl() or ioctl() for fs readahead?
Date
Marty Leisner (leisner@sdsp.mc.xerox.com) wrote:


: I don't like reada...it adds complexity and is another problem
: porting code...

: I'm doing sequential reads, I may as well get more into the
: buffer cache...

What if you are doing

loop {
seek(random_offset());
read(buf);
work();
}

Wouldn't it be nice if you could rewrite that as

seek(random_offset());
loop {
read(buf);
seek(random_offset());
reada(buf);
work();
}
?
--
---
Larry McVoy lm@sgi.com http://reality.sgi.com/lm (415) 933-1804
Copyright 1996, all rights reserved. Microsoft Network is prohibited from
redistributing this work in any form, in whole or in part without license.
License to distribute this work is available to Microsoft at $500.
Transmission without permission constitutes an agreement to these terms.



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.063 / U:2.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site