Re: [PATCH v3 09/12] mm, swap: use the swap table to track the swap count
From: Kairui Song
Date: Mon May 11 2026 - 10:15:33 EST
On Mon, May 11, 2026 at 7:21 PM Breno Leitao <leitao@xxxxxxxxxx> wrote:
>
> Hello Kairui,
>
Hello Breno,
Thanks for the report.
This information is very helpful. I think I know the problem now, it
seems we might left a dangling `ci->extend_table` if
`swap_retry_table_alloc` is called during fork, and somehow the swap
count is decreased during that period. Fortunately, it's not a serious
issue and a self healing one. The `ci->extend_table` will be cleaned
up the next time the cluster is used, so it's not really a leak and
the higher-than-expected memory usage is quite undercontrol.
I'll verify this and post a fix later. Thanks again for the helpful feedback!