Thread (6 messages) 6 messages, 3 authors, 2021-08-05

Re: [PATCH] mm/madvise: add MADV_WILLNEED to process_madvise()

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2021-08-05 02:01:00
Also in: lkml

On Wed,  4 Aug 2021 16:20:10 +0800 zhangkui [off-list ref] 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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help