Date: Mon, 7 Dec 2009 19:59:28 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/sys fcntl.2 src/sys/kern kern_descrip.c vfs_vnops.c src/sys/sys fcntl.h Message-ID: <200912072004.nB7K4Pld059969@repoman.freebsd.org>
index | next in thread | raw e-mail
delphij 2009-12-07 19:59:28 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
lib/libc/sys fcntl.2
sys/kern kern_descrip.c vfs_vnops.c
sys/sys fcntl.h
Log:
SVN rev 200229 on 2009-12-07 19:59:28Z by delphij
MFC revision 197579 and 199617:
Add two new fcntls to enable/disable read-ahead:
- F_READAHEAD: specify the amount for sequential access. The amount is
specified in bytes and is rounded up to nearest block size.
- F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
access size.
A third argument of zero disables the read-ahead behavior.
Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.
Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.
Revision Changes Path
1.47.2.2 +17 -1 src/lib/libc/sys/fcntl.2
1.357.2.2 +45 -0 src/sys/kern/kern_descrip.c
1.286.2.3 +3 -0 src/sys/kern/vfs_vnops.c
1.25.2.2 +7 -2 src/sys/sys/fcntl.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912072004.nB7K4Pld059969>
