summaryrefslogtreecommitdiff
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorYang Yang <yang.yang29@zte.com.cn>2022-06-23 02:08:34 +0000
committerakpm <akpm@linux-foundation.org>2022-07-03 18:08:50 -0700
commitade63b419c4e8d27f0642804b6c8c7a76ffc18ac (patch)
treeeb6d24fdc04c955c626a1b4f6cc0c8cc33390eb7 /mm/rmap.c
parentdc89997264de565999a1cb55db3f295d3a8e457b (diff)
downloadlwn-ade63b419c4e8d27f0642804b6c8c7a76ffc18ac.tar.gz
lwn-ade63b419c4e8d27f0642804b6c8c7a76ffc18ac.zip
mm/page_alloc: make the annotations of available memory more accurate
Not all systems use swap, so estimating available memory would help to prevent swapping or OOM of system that not use swap. And we need to reserve some page cache to prevent swapping or thrashing. If somebody is accessing the pages in pagecache, and if too much would be freed, most accesses might mean reading data from disk, i.e. thrashing. Link: https://lkml.kernel.org/r/20220623020833.972979-1-yang.yang29@zte.com.cn Signed-off-by: Yang Yang <yang.yang29@zte.com.cn> Signed-off-by: CGEL ZTE <cgel.zte@gmail.com> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions