Re: [PATCH 3/9] mm/workingset: extend the workingset detection for anon LRU
From: Joonsoo Kim
Date: Thu Feb 13 2020 - 23:08:06 EST
2020ë 2ì 11ì (í) ìí 3:20, <js1304@xxxxxxxxx>ëì ìì:
>
> From: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx>
>
> In the following patch, workingset detection will be applied to
> anonymous LRU. To prepare it, this patch adds some code to
> distinguish/handle the both LRUs.
>
> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx>
> ---
> include/linux/mmzone.h | 14 +++++++++-----
> mm/memcontrol.c | 12 ++++++++----
> mm/vmscan.c | 15 ++++++++++-----
> mm/vmstat.c | 6 ++++--
> mm/workingset.c | 35 ++++++++++++++++++++++-------------
> 5 files changed, 53 insertions(+), 29 deletions(-)
This patch should be changed as following.
- enum lru_list active_lru = page_lru_base_type(page) + LRU_ACTIVE_FILE;
+ enum lru_list active_lru = page_lru_base_type(page) + LRU_ACTIVE;
Whole fixed patch is as following.
--------------------->8----------------------