diff options
| author | Alexander Zhu <[email protected]> | 2024-08-30 10:03:37 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-09 23:39:03 +0000 |
| commit | 391e86971161906e720f5d3c110ca9124c14fb55 (patch) | |
| tree | 96c9df8daa62ca2fd7de6c476e0a04b66037704d /mm/vmalloc.c | |
| parent | mm: remap unused subpages to shared zeropage when splitting isolated thp (diff) | |
| download | kernel-391e86971161906e720f5d3c110ca9124c14fb55.tar.gz kernel-391e86971161906e720f5d3c110ca9124c14fb55.zip | |
mm: selftest to verify zero-filled pages are mapped to zeropage
When a THP is split, any subpage that is zero-filled will be mapped to the
shared zeropage, hence saving memory. Add selftest to verify this by
allocating zero-filled THP and comparing RssAnon before and after split.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexander Zhu <[email protected]>
Signed-off-by: Usama Arif <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Cc: Barry Song <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Domenico Cerasuolo <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Kairui Song <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Nico Pache <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Ryan Roberts <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Shuang Zhai <[email protected]>
Cc: Yu Zhao <[email protected]>
Cc: Shuang Zhai <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
