public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Yuanchu Xie <yuanchu@google.com>
Cc: Alejandro Colomar <alx.manpages@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Yu Zhao <yuzhao@google.com>,
	linux-man@vger.kernel.org, "T.J. Alumbaugh" <talumbau@google.com>
Subject: Re: [PATCH v6] posix_fadvise.2: POSIX_FADV_NOREUSE now supported.
Date: Wed, 20 Nov 2024 11:47:14 +0100	[thread overview]
Message-ID: <20241120104714.kobevbrggqo7urun@devuan> (raw)
In-Reply-To: <20241120045214.1294799-1-yuanchu@google.com>

[-- Attachment #1: Type: text/plain, Size: 2816 bytes --]

Hi Yuanchu,

On Tue, Nov 19, 2024 at 08:52:14PM -0800, Yuanchu Xie wrote:
> POSIX_FADV_NOREUSE is now supported in Linux.
> Update text regarding former no op behavior.  Indicate the readahead policy
> and treatment of file pages read with this flag.
> 
> Link: <https://lore.kernel.org/linux-mm/20221230215252.2628425-2-yuzhao@google.com/>
> Signed-off-by: T.J. Alumbaugh <talumbau@google.com>
> Signed-off-by: Yuanchu Xie <yuanchu@google.com>

Thanks!  I've applied the patch.  I've also added Yu's Acked-by.
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=a0c510a1bcc61fe24b38b1c54a2e28a5ad65c048>

Have a lovely day!
Alex

> ---
> Changelog
> v5 -> v6
> - Fixed wordiness
> - Clarified LRU to mean the kernel page replacement algorithm
> 
> v4 -> v5
> - Remove unnecessary changes
> - Use two space inter-sentence spacing
> - Fix lines exceeding 80-column
> 
> v3 -> v4
> - Use semantic newlines
> - Format with macros like .B instead of inline \f
> 
> v3: https://lore.kernel.org/linux-man/20230320222057.1976956-1-talumbau@google.com/
> v4: https://lore.kernel.org/linux-man/20241113031654.3964740-1-yuanchu@google.com/
> v5: https://lore.kernel.org/linux-man/20241114012233.4152152-1-yuanchu@google.com/
> 
>  man/man2/posix_fadvise.2 | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man2/posix_fadvise.2 b/man/man2/posix_fadvise.2
> index ed40b0c0d..894a0762c 100644
> --- a/man/man2/posix_fadvise.2
> +++ b/man/man2/posix_fadvise.2
> @@ -64,7 +64,13 @@ 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.
> +Since Linux 6.3,
> +.B POSIX_FADV_NOREUSE
> +signals that the kernel page replacement 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.
> @@ -130,6 +136,8 @@ in this case.)
>  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.
> +.B POSIX_FADV_NOREUSE
> +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).
>  .SS C library/kernel differences
> -- 
> 2.46.0
> 

-- 
<https://www.alejandro-colomar.es/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2024-11-20 10:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-20  4:52 [PATCH v6] posix_fadvise.2: POSIX_FADV_NOREUSE now supported Yuanchu Xie
2024-11-20 10:47 ` Alejandro Colomar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241120104714.kobevbrggqo7urun@devuan \
    --to=alx@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=talumbau@google.com \
    --cc=yuanchu@google.com \
    --cc=yuzhao@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox