[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAmzW4O53eW9n=N0F31tG4im=+uiA_gGq5RA0u8UGos12hRvvA@mail.gmail.com>
Date: Wed, 14 Sep 2022 23:37:02 +0900
From: Joonsoo Kim <js1304@...il.com>
To: cgel.zte@...il.com
Cc: bsingharora@...il.com, akpm@...ux-foundation.org,
iamjoonsoo.kim@....com, mingo@...hat.com, bristot@...hat.com,
vschneid@...hat.com, willy@...radead.org,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-mm@...ck.org, Yang Yang <yang.yang29@....com.cn>,
Ran Xiaokai <ran.xiaokai@....com.cn>,
wangyong <wang.yong12@....com.cn>
Subject: Re: [PATCH v2 1/2] delayacct: support re-entrance detection of
thrashing accounting
2022년 8월 15일 (월) 오후 4:14, <cgel.zte@...il.com>님이 작성:
>
> From: Yang Yang <yang.yang29@....com.cn>
>
> Once upon a time, we only support accounting thrashing of page cache.
> Then Joonsoo introduced workingset detection for anonymous pages and
> we gained the ability to account thrashing of them[1].
>
> For page cache thrashing accounting, there is no suitable place to do
> it in fs level likes swap_readpage(). So we have to do it in
> folio_wait_bit_common().
>
> Then for anonymous pages thrashing accounting, we have to do it in
> both swap_readpage() and folio_wait_bit_common(). This likes PSI,
> so we should let thrashing accounting supports re-entrance detection.
>
> This patch is to prepare complete thrashing accounting, and is based
> on patch "filemap: make the accounting of thrashing more consistent".
>
> [1] commit aae466b0052e ("mm/swap: implement workingset detection for anonymous LRU")
>
> Signed-off-by: Yang Yang <yang.yang29@....com.cn>
> Signed-off-by: CGEL ZTE <cgel.zte@...il.com>
> Reviewed-by: Andrew Morton <akpm@...ux-foundation.org>
> Reviewed-by: Ran Xiaokai <ran.xiaokai@....com.cn>
> Reviewed-by: wangyong <wang.yong12@....com.cn>
> Cc: Joonsoo Kim <iamjoonsoo.kim@....com>
Acked-by: Joonsoo Kim <iamjoonsoo.kim@....com>
Powered by blists - more mailing lists