posix_fadvise.2: NOREUSE now supported.
PATCH v3 1/1 posix_fadvise.2: NOREUSE now supported.
POSIX_FADV_NOREUSE is now supported in Linux[1].
Updates text regarding former no op behavior. Indicates the readahead policy and treatment of file pages read with this flag.
[1]: https://lore.kernel.org/linux-mm/[email protected]/
--- man2/posix_fadvise.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
man2/posix_fadvise.2 +5 -1
@@ -64,7 +64,10 @@ The specified data will be accessed only once. .IP Before Linux 2.6.18, \fBPOSIX_FADV_NOREUSE\fP had the same semantics as \fBPOSIX_FADV_WILLNEED\fP. -This was probably a bug; since Linux 2.6.18, this flag is a no-op. +This was probably a bug; from Linux 2.6.18 until Linux 6.2 this flag was +a no-op. From Linux 6.3 and beyond, \fBPOSIX_FADV_NOREUSE\fP signals +that the LRU algorithm can ignore access to mapped page cache marked +by this flag. This is useful, for example, while streaming large files. .TP .B POSIX_FADV_WILLNEED The specified data will be accessed in the near future.
@@ -154,6 +157,7 @@ in POSIX.1-2001 TC1. Under Linux, \fBPOSIX_FADV_NORMAL\fP sets the readahead window to the default size for the backing device; \fBPOSIX_FADV_SEQUENTIAL\fP doubles this size, and \fBPOSIX_FADV_RANDOM\fP disables file readahead entirely. +\fBPOSIX_FADV_NOREUSE\fP does not modify the readahead window size. These changes affect the entire file, not just the specified region (but other open file handles to the same file are unaffected). .PP
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
Quoted 8 lines · T.J. Alumbaugh
POSIX_FADV_NOREUSEis now supported in Linux[1].
Updates text regarding former no op behavior. Indicates the readahead policy and treatment of file pages read with this flag.[1]: https://lore.kernel.org/linux-mm/[email protected]/
Signed-off-by T.J. Alumbaugh <[email protected]>
Quoted 7 lines · Yu Zhao
Quoted 5 lines · T.J. Alumbaugh
POSIX_FADV_NOREUSEis now supported in Linux[1].
Updates text regarding former no op behavior. Indicates the readahead policy and treatment of file pages read with this flag.
Quoted 5 lines
Quoted 3 lines
[1]: https://lore.kernel.org/linux-mm/[email protected]/
Signed-off-by T.J. Alumbaugh <[email protected]>Acked-by Yu Zhao <[email protected]>
Hi Alex,
Friendly ping.
Thank you.
Hi T.J.,
Quoted 16 lines · T.J. Alumbaugh
POSIX_FADV_NOREUSEis now supported in Linux[1].
Updates text regarding former no op behavior. Indicates the readahead policy and treatment of file pages read with this flag.[1]: https://lore.kernel.org/linux-mm/[email protected]/
Signed-off-by T.J. Alumbaugh <[email protected]>--- man2/posix_fadvise.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)man2/posix_fadvise.2 +0
-0
man2/posix_fadvise.2 The specified data will be accessed only once. · line 68
Quoted 6 lines
man2/posix_fadvise.2 +2
-1@@ -64,7 +64,10 @@ The specified data will be accessed only once. .IP Before Linux 2.6.18, \fBPOSIX_FADV_NOREUSE\fP had the same semantics as \fBPOSIX_FADV_WILLNEED\fP. -This was probably a bug; since Linux 2.6.18, this flag is a no-op. +This was probably a bug; from Linux 2.6.18 until Linux 6.2 this flag was +a no-op. From Linux 6.3 and beyond, \fBPOSIX_FADV_NOREUSE\fP signals
Please use semantic newlines. See man-pages(7):
Use semantic newlines
In the source of a manual page, new sentences should be started on new lines, long sentences should be split into lines at clause breaks (commas, semicolons, colons, and so on), and long clauses should be split at phrase boundaries. This convention, sometimes known as "semantic newlines", makes it easier to see the effect of patches, which often operate at the level of in‐ dividual sentences, clauses, or phrases.
Also, please format with macros such as:
.B POSIX_FADV_NOREUSE
instead of inline with \f.
Thanks,
Alex
Quoted 13 lines
man2/posix_fadvise.2 +3
-0+that the LRU algorithm can ignore access to mapped page cache marked +by this flag. This is useful, for example, while streaming large files. .TP .B POSIX_FADV_WILLNEED The specified data will be accessed in the near future.@@ -154,6 +157,7 @@ in POSIX.1-2001 TC1. Under Linux, \fBPOSIX_FADV_NORMAL\fP sets the readahead window to the default size for the backing device; \fBPOSIX_FADV_SEQUENTIAL\fP doubles this size, and \fBPOSIX_FADV_RANDOM\fP disables file readahead entirely. +\fBPOSIX_FADV_NOREUSE\fP does not modify the readahead window size. These changes affect the entire file, not just the specified region (but other open file handles to the same file are unaffected). .PP
Signature · 2 lines
<http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5