Subject: Re: Readahead
To: Kamal Prasad <kamalpr@yahoo.com>
From: Wojciech Puchar <wojtek@chylonia.3miasto.net>
List: tech-kern
Date: 09/10/2002 08:37:52
>
> read() system call will probably not do any
> read-ahead. but libc code (fread() for eg.) will do
> readahead  as well as some other buffering.
> pl. correct me if Im wrong.

you are wrong

/usr/src/sys/kern/vfs_bio.c and vfs_cluster.c

> thanks
> -kamal
>
> --- Curt Sampson <cjs@cynic.net> wrote:
> >
> > Can someone give me a brief explanation, with
> > pointers to the
> > appropriate source files, of how readahead works in
> > NetBSD? A few
> > months ago I was sure I'd found some code that
> > triggered 64K reads
> > if it detected sequential file reads, but I can't
> > seem to find it
> > any more.
> >
> > cjs
> > --
> > Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974
> > http://www.netbsd.org
> >     Don't you know, in this new Dark Age, we're all
> > light.  --XTC
> >
>
>
> __________________________________________________
> Yahoo! - We Remember
> 9-11: A tribute to the more than 3,000 lives lost
> http://dir.remember.yahoo.com/tribute
>