LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Rientjes <rientjes@google.com>
To: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Michal Hocko <mhocko@kernel.org>,
"Li,Rongqing" <lirongqing@baidu.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"cgroups@vger.kernel.org" <cgroups@vger.kernel.org>,
"hannes@cmpxchg.org" <hannes@cmpxchg.org>
Subject: Re: 答复: 答复: [PATCH] mm/memcontrol.c: speed up to force empty a memory cgroup
Date: Tue, 20 Mar 2018 15:45:27 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.20.1803201540290.45142@chino.kir.corp.google.com> (raw)
In-Reply-To: <e265c518-968b-8669-ad22-671c781ad96e@virtuozzo.com>
On Wed, 21 Mar 2018, Andrey Ryabinin wrote:
> > Is SWAP_CLUSTER_MAX the best answer if I'm lowering the limit by 1GB?
> >
>
> Absolutely not. I completely on your side here.
> I've tried to fix this recently - http://lkml.kernel.org/r/20180119132544.19569-2-aryabinin@virtuozzo.com
> I guess that Andrew decided to not take my patch, because Michal wasn't
> happy about it (see mail archives if you want more details).
>
I unfortunately didn't see this patch in January, it seems very similar to
what I was suggesting in this thread. You do a page_counter_read()
directly in mem_cgroup_resize_limit() where my suggestion was to have
page_counter_limit() return the difference, but there's nothing
significantly different about what you proposed and what I suggested.
Perhaps the patch would be better off as a compromise between what you, I,
and Li RongQing have proposed/suggested: have page_counter_limit() return
the difference, and clamp it to some value proportional to the new limit.
next prev parent reply other threads:[~2018-03-20 22:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-19 8:29 Li RongQing
2018-03-19 8:53 ` Michal Hocko
[not found] ` <2AD939572F25A448A3AE3CAEA61328C23745764B@BC-MAIL-M28.internal.baidu.com>
2018-03-19 10:37 ` 答复: " Michal Hocko
2018-03-19 10:51 ` 答复: " Li,Rongqing
2018-03-19 17:51 ` David Rientjes
2018-03-20 8:39 ` Michal Hocko
2018-03-20 20:29 ` David Rientjes
2018-03-20 22:08 ` Andrey Ryabinin
2018-03-20 22:15 ` David Rientjes
2018-03-20 22:35 ` Andrey Ryabinin
2018-03-20 22:45 ` David Rientjes [this message]
2018-03-21 9:59 ` Michal Hocko
2018-03-23 2:58 ` Li,Rongqing
2018-03-23 10:08 ` Michal Hocko
2018-03-23 12:04 ` 答复: " Li,Rongqing
2018-03-23 12:29 ` Michal Hocko
2018-03-23 10:34 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1803201540290.45142@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=aryabinin@virtuozzo.com \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lirongqing@baidu.com \
--cc=mhocko@kernel.org \
--subject='Re: 答复: 答复: [PATCH] mm/memcontrol.c: speed up to force empty a memory cgroup' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).