Yu Zhao
fed6bd41a1
mm/mglru: fix PTE-mapped large folios
...
Count the accessed bits from PTEs mapping the same large folio as one
access rather than multiple accesses.
The last patch changed how folios accessed through page tables are
promoted: rather than getting promoted after the accessed bit is cleared
for the first time, a folio only gets promoted thereafter. Counting the
accessed bits from the same large folio as multiple accesses can cause
that folio to be promoted prematurely, which in turn can cause
overprotection of single-use large folios.
This patch reduced the sys time of the kernel compilation by 95% CI [2,
5]% on Altra M128-30 with 3GB DRAM, 12GB zram, 16KB THPs and -j32.
Link: https://lkml.kernel.org/r/20241231043538.4075764-8-yuzhao@google.com
Signed-off-by: Yu Zhao <yuzhao@google.com>
Reported-by: Barry Song <v-songbaohua@oppo.com>
Tested-by: Kalesh Singh <kaleshsingh@google.com>
Cc: Bharata B Rao <bharata@amd.com>
Cc: David Stevens <stevensd@chromium.org>
Cc: Kairui Song <kasong@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-01-11 23:19:25 -08:00
..
2025-01-11 23:18:46 -08:00
2025-01-11 23:18:35 -08:00
2024-11-14 22:49:19 -08:00
2025-01-11 23:19:23 -08:00
2024-05-05 17:53:51 -07:00
2024-07-03 19:30:00 -07:00
2024-11-07 14:38:07 -08:00
2022-09-11 20:25:50 -07:00
2024-02-22 10:24:57 -08:00
2024-11-14 22:49:19 -08:00
2025-01-11 23:18:28 -08:00
2025-01-11 23:18:23 -08:00
2024-04-25 20:56:04 -07:00
2024-09-17 01:07:01 -07:00
2025-01-11 23:19:12 -08:00
2024-07-03 19:29:58 -07:00
2023-12-05 11:17:58 +01:00
2025-01-11 23:18:56 -08:00
2024-11-07 14:25:16 -08:00
2024-11-03 01:28:06 -05:00
2024-09-01 20:43:33 -07:00
2024-09-01 20:43:33 -07:00
2025-01-11 23:18:31 -08:00
2024-11-05 11:14:32 +01:00
2023-06-23 16:58:19 -07:00
2022-11-08 17:37:15 -08:00
2025-01-11 23:18:47 -08:00
2024-07-03 19:30:06 -07:00
2024-07-12 15:52:15 -07:00
2025-01-11 23:19:00 -08:00
2025-01-11 23:18:27 -08:00
2024-09-01 20:25:45 -07:00
2023-10-25 16:47:14 -07:00
2025-01-11 23:19:03 -08:00
2024-07-03 19:29:58 -07:00
2025-01-11 23:19:12 -08:00
2025-01-11 23:18:47 -08:00
2023-08-18 10:12:36 -07:00
2025-01-11 23:19:04 -08:00
2024-08-27 14:12:51 +02:00
2025-01-11 23:18:40 -08:00
2025-01-11 23:17:25 -08:00
2024-11-23 09:58:07 -08:00
2024-12-30 17:59:10 -08:00
2024-11-11 00:26:44 -08:00
2025-01-11 23:18:42 -08:00
2025-01-11 23:18:42 -08:00
2023-08-24 16:20:30 -07:00
2025-01-11 23:19:23 -08:00
2025-01-11 23:18:33 -08:00
2024-12-05 19:54:46 -08:00
2025-01-11 23:19:18 -08:00
2025-01-11 23:18:46 -08:00
2025-01-11 23:19:04 -08:00
2024-11-11 00:26:46 -08:00
2024-09-26 14:01:44 -07:00
2025-01-11 23:19:13 -08:00
2025-01-11 23:18:26 -08:00
2024-06-05 19:19:26 -07:00
2024-05-05 17:53:49 -07:00
2024-03-13 12:12:21 -07:00
2024-09-09 16:39:03 -07:00
2025-01-11 23:18:59 -08:00
2024-07-12 15:52:15 -07:00
2024-11-07 14:14:58 -08:00
2024-11-27 11:13:25 -08:00
2022-10-03 14:02:43 -07:00
2025-01-11 23:18:26 -08:00
2025-01-11 23:19:23 -08:00
2025-01-11 23:19:09 -08:00
2024-09-01 20:25:54 -07:00
2024-09-01 20:25:55 -07:00
2024-11-11 00:26:44 -08:00
2025-01-11 23:17:29 -08:00
2025-01-11 23:18:47 -08:00
2022-09-26 19:46:25 -07:00
2024-11-11 17:20:23 -08:00
2024-09-03 21:15:31 -07:00
2024-10-28 21:40:40 -07:00
2025-01-11 23:19:23 -08:00
2025-01-11 23:19:18 -08:00
2025-01-11 23:19:03 -08:00
2024-09-01 20:25:53 -07:00
2024-08-15 22:16:14 -07:00
2025-01-11 23:18:23 -08:00
2025-01-11 23:19:00 -08:00
2025-01-11 23:19:20 -08:00
2025-01-11 23:18:38 -08:00
2024-05-19 14:40:44 -07:00
2023-12-10 16:51:50 -08:00
2024-01-08 15:27:15 -08:00
2024-06-15 10:43:04 -07:00
2024-11-07 14:38:07 -08:00
2025-01-11 23:18:27 -08:00
2024-11-11 00:26:44 -08:00
2024-07-10 12:14:54 -07:00
2022-03-08 09:30:46 -05:00
2024-04-25 20:55:49 -07:00
2025-01-11 23:19:23 -08:00
2024-12-18 19:04:43 -08:00
2024-11-05 16:56:23 -08:00
2025-01-11 23:18:42 -08:00
2024-02-22 10:24:47 -08:00
2025-01-11 23:18:39 -08:00
2024-11-07 14:38:07 -08:00
2025-01-11 23:18:30 -08:00
2024-10-09 12:47:19 -07:00
2024-09-01 20:25:45 -07:00
2025-01-11 23:18:46 -08:00
2024-11-07 14:38:08 -08:00
2024-09-03 21:15:40 -07:00
2024-10-31 20:27:04 -07:00
2022-10-03 14:03:07 -07:00
2024-01-08 15:27:15 -08:00
2024-11-25 16:51:24 -08:00
2024-11-16 21:19:39 +01:00
2025-01-11 23:18:54 -08:00
2024-11-11 17:22:27 -08:00
2025-01-11 23:19:23 -08:00
2025-01-11 23:19:02 -08:00
2025-01-11 23:19:22 -08:00
2025-01-11 23:19:05 -08:00
2025-01-11 23:19:25 -08:00
2024-09-17 01:07:01 -07:00
2025-01-11 23:19:22 -08:00
2024-11-23 09:58:07 -08:00
2023-04-12 17:36:23 -07:00
2025-01-11 23:19:11 -08:00
2025-01-11 23:18:56 -08:00
2025-01-11 23:18:36 -08:00
2025-01-11 23:19:23 -08:00
2025-01-11 23:19:23 -08:00
2024-12-18 19:04:45 -08:00
2023-11-28 14:08:38 +01:00
2025-01-11 23:19:25 -08:00
2025-01-11 23:17:30 -08:00
2025-01-11 23:19:25 -08:00
2024-09-01 20:25:56 -07:00
2024-04-25 20:55:48 -07:00
2025-01-11 23:19:18 -08:00
2024-04-25 20:55:48 -07:00
2025-01-11 23:19:18 -08:00
2025-01-11 23:18:22 -08:00