]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 230782,237274:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Aug 2012 18:44:56 +0000 (18:44 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Aug 2012 18:44:56 +0000 (18:44 +0000)
commitb7cb80c19f6c9f8d7923bc21759dbf409bef43bc
tree7b44365ed67960a68876413f121e30f10503b0e7
parentce0d8da259ce87892087c74ac4dbf8ced1f3c955
MFC 230782,237274:
Refine the implementation of POSIX_FADV_NOREUSE to perform
POSIX_FADV_DONTNEED requests on the currently accessed portion of the
file on each read(2) or write(2) rather than using direct I/O.  This
gives much better performance including read-ahead and write clustering
similar to normal read(2) and write(2) calls.

If subsequent read(2) and write(2) calls are sequential, then the
POSIX_FADV_DONTNEED requests will cover the entire sequentially-accessed
range.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/posix_fadvise.2
sys/kern/vfs_syscalls.c
sys/kern/vfs_vnops.c
sys/sys/file.h