Xin LI 931d13672c 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.
2009-12-07 19:59:28 +00:00
..
2009-06-23 14:11:41 +00:00
2009-08-28 19:48:06 +00:00
2009-06-23 14:11:41 +00:00
2009-06-23 14:11:41 +00:00
2009-11-23 09:10:08 +00:00
2009-12-07 19:07:45 +00:00
2009-12-07 08:38:44 +00:00
2009-11-02 18:44:01 +00:00
2009-12-04 07:08:15 +00:00
2009-12-07 19:59:28 +00:00
2009-11-01 20:24:17 +00:00