linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] process_madvise.2: Add MADV_WILLNEED to process_madvise()
@ 2021-08-05  4:44 zhangkui
  2021-08-09 17:31 ` Suren Baghdasaryan
  0 siblings, 1 reply; 3+ messages in thread
From: zhangkui @ 2021-08-05  4:44 UTC (permalink / raw)
  To: linux-man, alx.manpages, mtk.manpages, akpm, linux-kernel, linux-mm
  Cc: zhangkui

Add MADV_WILLNEED to process_madvise() for read-ahead swapped
out memory immediately when the app switches to forground.

https://lore.kernel.org/patchwork/patch/1472006/

Signed-off-by: zhangkui <zhangkui@oppo.com>
---
 man2/process_madvise.2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/man2/process_madvise.2 b/man2/process_madvise.2
index a6c8724d4..caa8bc0b3 100644
--- a/man2/process_madvise.2
+++ b/man2/process_madvise.2
@@ -112,6 +112,10 @@ See
 .BR MADV_PAGEOUT
 See
 .BR madvise (2).
+.TP
+.BR MADV_WILLNEED
+See
+.BR madvise (2).
 .PP
 The
 .I flags
--
2.25.1

________________________________
OPPO

本电子邮件及其附件含有OPPO公司的保密信息,仅限于邮件指明的收件人使用(包含个人及群组)。禁止任何人在未经授权的情况下以任何形式使用。如果您错收了本邮件,请立即以电子邮件通知发件人并删除本邮件及其附件。

This e-mail and its attachments contain confidential information from OPPO, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] process_madvise.2: Add MADV_WILLNEED to process_madvise()
  2021-08-05  4:44 [PATCH] process_madvise.2: Add MADV_WILLNEED to process_madvise() zhangkui
@ 2021-08-09 17:31 ` Suren Baghdasaryan
  2021-09-10 13:51   ` Alejandro Colomar (man-pages)
  0 siblings, 1 reply; 3+ messages in thread
From: Suren Baghdasaryan @ 2021-08-09 17:31 UTC (permalink / raw)
  To: zhangkui
  Cc: linux-man, alx.manpages, Michael Kerrisk (man-pages),
	Andrew Morton, LKML, linux-mm

On Wed, Aug 4, 2021 at 9:44 PM zhangkui <zhangkui@oppo.com> wrote:
>
> Add MADV_WILLNEED to process_madvise() for read-ahead swapped
> out memory immediately when the app switches to forground.
>
> https://lore.kernel.org/patchwork/patch/1472006/
>
> Signed-off-by: zhangkui <zhangkui@oppo.com>

Reviewed-by: Suren Baghdasaryan <surenb@google.com>

> ---
>  man2/process_madvise.2 | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/man2/process_madvise.2 b/man2/process_madvise.2
> index a6c8724d4..caa8bc0b3 100644
> --- a/man2/process_madvise.2
> +++ b/man2/process_madvise.2
> @@ -112,6 +112,10 @@ See
>  .BR MADV_PAGEOUT
>  See
>  .BR madvise (2).
> +.TP
> +.BR MADV_WILLNEED
> +See
> +.BR madvise (2).
>  .PP
>  The
>  .I flags
> --
> 2.25.1
>
> ________________________________
> OPPO
>
> 本电子邮件及其附件含有OPPO公司的保密信息,仅限于邮件指明的收件人使用(包含个人及群组)。禁止任何人在未经授权的情况下以任何形式使用。如果您错收了本邮件,请立即以电子邮件通知发件人并删除本邮件及其附件。
>
> This e-mail and its attachments contain confidential information from OPPO, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] process_madvise.2: Add MADV_WILLNEED to process_madvise()
  2021-08-09 17:31 ` Suren Baghdasaryan
@ 2021-09-10 13:51   ` Alejandro Colomar (man-pages)
  0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-09-10 13:51 UTC (permalink / raw)
  To: zhangkui, Suren Baghdasaryan
  Cc: linux-man, Michael Kerrisk (man-pages), Andrew Morton, LKML, linux-mm

Hi Zhangkui and Suren,

On 8/9/21 7:31 PM, Suren Baghdasaryan wrote:
> On Wed, Aug 4, 2021 at 9:44 PM zhangkui <zhangkui@oppo.com> wrote:
>>
>> Add MADV_WILLNEED to process_madvise() for read-ahead swapped
>> out memory immediately when the app switches to forground.
>>
>> https://lore.kernel.org/patchwork/patch/1472006/
>>
>> Signed-off-by: zhangkui <zhangkui@oppo.com>

Patch applied!

> 
> Reviewed-by: Suren Baghdasaryan <surenb@google.com>
> 

And tag added.

Thank you both,

Alex

>> ---
>>   man2/process_madvise.2 | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/man2/process_madvise.2 b/man2/process_madvise.2
>> index a6c8724d4..caa8bc0b3 100644
>> --- a/man2/process_madvise.2
>> +++ b/man2/process_madvise.2
>> @@ -112,6 +112,10 @@ See
>>   .BR MADV_PAGEOUT
>>   See
>>   .BR madvise (2).
>> +.TP
>> +.BR MADV_WILLNEED

This should have been:

.B MADV_WILLNEED

I fixed it myself, don't worry.
And also the surrounding cases, which led to this.

>> +See
>> +.BR madvise (2).
>>   .PP
>>   The
>>   .I flags
>> --
>> 2.25.1
>>
>> ________________________________
>> OPPO
>>
>> 本电子邮件及其附件含有OPPO公司的保密信息,仅限于邮件指明的收件人使用(包含个人及群组)。禁止任何人在未经授权的情况下以任何形式使用。如果您错收了本邮件,请立即以电子邮件通知发件人并删除本邮件及其附件。
>>
>> This e-mail and its attachments contain confidential information from OPPO, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-10 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05  4:44 [PATCH] process_madvise.2: Add MADV_WILLNEED to process_madvise() zhangkui
2021-08-09 17:31 ` Suren Baghdasaryan
2021-09-10 13:51   ` Alejandro Colomar (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).