Does FreeBSD have replacement for posix_fadvice() or fcntl(F_RDADVISE)?

Lev Serebryakov lev at FreeBSD.org
Fri May 13 06:21:10 UTC 2011


Hello, Jilles.
You wrote 13 мая 2011 г., 3:03:27:

>>    It is like madvise(2) but for file descriptors.
> An effect like POSIX_FADV_SEQUENTIAL can be obtained with the
> F_READAHEAD or F_RDAHEAD fcntl(2) requests. The implementation is
> divided between the generic VFS layer and various filesystems (cd9660,
> ext2fs, msdosfs, nfs, xfs and ufs appear to use the information to some
> degree).
 Does read ahead turned on by default (for UFS), as here is vfs.read_max? Or
vfs.read_max is only "upper bound" for F_READAHEAD and it is turned
off by default completely?


-- 
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>



More information about the freebsd-hackers mailing list