[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <10168f82-6656-dbef-5a58-7b2aafb4ebee@oppo.com>
Date: Thu, 5 Aug 2021 02:58:21 +0000
From: 张魁(Kyler) <zhangkui@...o.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: "linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mm/madvise: add MADV_WILLNEED to process_madvise()
在 8/5/2021 10:00, Andrew Morton 写道:
> On Wed, 4 Aug 2021 16:20:10 +0800 zhangkui <zhangkui@...o.com> wrote:
>
>> There is a usecase in Android that an app process's memory is swapped out
>> by process_madvise() with MADV_PAGEOUT, such as the memory is swapped to
>> zram or a backing device. When the process is scheduled to running, like
>> switch to foreground, multiple page faults may cause the app dropped
>> frames.
>> To reduce the problem, SMS can read-ahead memory of the process immediately
>> when the app switches to forground.
>> Calling process_madvise() with MADV_WILLNEED can meet this need.
>>
>
> What is SMS?
>
SMS is the abbreviation of System Management Software.
For more information, please refer to the commit
ecb8ac8b1f146915aa6b96449b66dd48984caacc.
________________________________
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!
Powered by blists - more mailing lists