From a1cbff944cb5bfc41efcb57c728f6c9ee2ebe842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E4=B8=80=E9=B8=A3?= Date: Wed, 23 Apr 2025 05:32:19 +0000 Subject: [PATCH 1/2] update mm/zswapd_control.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 蔡一鸣 --- mm/zswapd_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zswapd_control.c b/mm/zswapd_control.c index 340b6830619a..b91512ebd039 100644 --- a/mm/zswapd_control.c +++ b/mm/zswapd_control.c @@ -703,7 +703,7 @@ void memcg_eswap_info_show(struct seq_file *m) zram = memcg_data_size(memcg, CACHE_SIZE) / SZ_1K; eswap = memcg_data_size(memcg, SWAP_SIZE) / SZ_1K; anon *= PAGE_SIZE / SZ_1K; - file *= PAGE_SIZE / SZ_1K; + file = 0; seq_printf(m, "Anon:\t%12lu kB\nFile:\t%12lu kB\nzram:\t%12lu kB\nEswap:\t%12lu kB\n", anon, file, zram, eswap); } -- Gitee From 13be216e8ad6a4c04d4c5353ead09a47b552df8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E4=B8=80=E9=B8=A3?= Date: Thu, 24 Apr 2025 03:28:03 +0000 Subject: [PATCH 2/2] update mm/zswapd_control.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 蔡一鸣 --- mm/zswapd_control.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/zswapd_control.c b/mm/zswapd_control.c index b91512ebd039..80f7bc340fb3 100644 --- a/mm/zswapd_control.c +++ b/mm/zswapd_control.c @@ -703,6 +703,7 @@ void memcg_eswap_info_show(struct seq_file *m) zram = memcg_data_size(memcg, CACHE_SIZE) / SZ_1K; eswap = memcg_data_size(memcg, SWAP_SIZE) / SZ_1K; anon *= PAGE_SIZE / SZ_1K; + /* Hyperhold only reclaims anonymous pages,no need file pages info. */ file = 0; seq_printf(m, "Anon:\t%12lu kB\nFile:\t%12lu kB\nzram:\t%12lu kB\nEswap:\t%12lu kB\n", anon, file, zram, eswap); -- Gitee