diff options
author | 2024-12-30 21:35:35 -0700 | |
---|---|---|
committer | 2025-01-25 20:22:38 -0800 | |
commit | 37a260870f2ce41a649b14f74f10224046bcaeb1 (patch) | |
tree | ee80d72d3f589e5eb1597d4c69f4a0f9887b9f02 /scripts/gcc-plugins/structleak_plugin.c | |
parent | mm/mglru: rework aging feedback (diff) | |
download | wireguard-linux-37a260870f2ce41a649b14f74f10224046bcaeb1.tar.xz wireguard-linux-37a260870f2ce41a649b14f74f10224046bcaeb1.zip |
mm/mglru: rework type selection
With anon and file min_seq being able to move independently, rework type
selection so that it is based on the total refaults from all tiers of each
type. Also allow a type to be selected until that type reaches
MIN_NR_GENS, regardless of whether that type has a larger min_seq or not,
to accommodate extreme swappiness.
Since some tiers of a selected type can have higher refaults than the
first tier of the other type, use a less larger gain factor 2:3 instead of
1:2, in order for those tiers in the selected type to be better protected.
As an intermediate step to the final optimization, this change by itself
should not have userspace-visiable effects beyond performance.
Link: https://lkml.kernel.org/r/20241231043538.4075764-5-yuzhao@google.com
Signed-off-by: Yu Zhao <yuzhao@google.com>
Reported-by: David Stevens <stevensd@chromium.org>
Tested-by: Kalesh Singh <kaleshsingh@google.com>
Cc: Barry Song <v-songbaohua@oppo.com>
Cc: Bharata B Rao <bharata@amd.com>
Cc: Kairui Song <kasong@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions