[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACSyD1P19kxERKPUAVChjy7AzV6h6RKTV8252ntoK5EUy8uC2A@mail.gmail.com>
Date: Thu, 15 Jun 2023 22:13:09 +0800
From: 贺中坤 <hezhongkun.hzk@...edance.com>
To: Michal Hocko <mhocko@...e.com>
Cc: minchan@...nel.org, senozhatsky@...omium.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [External] Re: [RFC PATCH 1/3] zram: charge the compressed RAM to
the page's memcgroup
>
> OK, also make sure that the zsmalloc support is implemented before zram
> depends on it.
>
OK. I got it.
>
> This is not really answering my question though. memcg under hard limit
> is not really my concern. This is a simpler case. I am not saying it
> doesn't need to get addresses but it is the memcg hard limited case that
> is much more interested. Because your charges are going to fail very
> likely and that would mean that swapout would fail AFAIU. If my
> understanding is wrong then it would really help to describe that case
> much more in the changelog.
>
OK, Got it. In many cases I have tested, it will not fail because we did
not charge the page directly,but the objects(like slab,compressed page),
for the zspage may be shared by any memcg.
> --
> Michal Hocko
> SUSE Labs
Powered by blists - more mailing lists