Re: fcntl() or ioctl() for fs readahead?

Larry McVoy (lm@neteng.engr.sgi.com)
24 May 1996 21:55:05 GMT


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.