From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Yang Subject: Re: [PATCH 3/3] mm/memcg: add next_mz back if not reclaimed yet Date: Thu, 10 Mar 2022 23:57:29 +0000 Message-ID: <20220310235729.txnjuhcptsp2sc2a@master> References: <20220308012047.26638-1-richard.weiyang@gmail.com> <20220308012047.26638-3-richard.weiyang@gmail.com> <20220309004620.fgotfh4wsquscbfn@master> <20220310011350.2b6fxa66it5nugcy@master> Reply-To: Wei Yang Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OkAryEzutT6iAK7gGQZ0EX71N3D+2tmBltCJ6yrSjxw=; b=IZ7jNCsyI1YiomKE/iwIDgeEEkJXqEWgThkJSlbsnONKYJQVuGgW0mVeMkdfA+jZRH dNX+J5WhKU9aDgLZozigkohOsN23JbVUrVCEbKkIyM/HmVWPmsCDo+ve/OmcMY/R4L46 wc+Lpbkm0irrf4LPBje32HvD7opm/vcqBJyRTGLFpMx/D1zcb1xYMpYJhf0+HgrDPAp5 6tladH5AFii+KrgzJAR0ueHVwgFZUs3pXkyggWSMBbFFukQv65AhTfvyA0Ze4E0qEcDo PqrBduRvnl0lXJSkKKKVsmhC9wNqLAIbF2JT18xVIRI6ZIN+LUKgZZB2N2vgkv7hhx2T v1YA== Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Michal Hocko Cc: Wei Yang , hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, vdavydov.dev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Tim Chen On Thu, Mar 10, 2022 at 09:53:59AM +0100, Michal Hocko wrote: >On Thu 10-03-22 01:13:50, Wei Yang wrote: >> On Wed, Mar 09, 2022 at 02:48:45PM +0100, Michal Hocko wrote: >> >[Cc Tim - the patch is http://lkml.kernel.org/r/20220308012047.26638-3-richard.weiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] >> > >> >On Wed 09-03-22 00:46:20, Wei Yang wrote: >> >> On Tue, Mar 08, 2022 at 09:17:58AM +0100, Michal Hocko wrote: >> >> >On Tue 08-03-22 01:20:47, Wei Yang wrote: >> >> >> next_mz is removed from rb_tree, let's add it back if no reclaim has >> >> >> been tried. >> >> > >> >> >Could you elaborate more why we need/want this? >> >> > >> >> >> >> Per my understanding, we add back the right most node even reclaim makes no >> >> progress, so it is reasonable to add back a node if we didn't get a chance to >> >> do reclaim on it. >> > >> >Your patch sounded familiar and I can remember now. The same fix has >> >been posted by Tim last year >> >https://lore.kernel.org/linux-mm/8d35206601ccf0e1fe021d24405b2a0c2f4e052f.1613584277.git.tim.c.chen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org/ >> >It was posted with other changes to the soft limit code which I didn't >> >like but I have acked this particular one. Not sure what has happened >> >with it afterwards. >> >> Because of this ? >> 4f09feb8bf: vm-scalability.throughput -4.3% regression >> https://lore.kernel.org/linux-mm/20210302062521.GB23892@xsang-OptiPlex-9020/ > >That was a regression for a different patch in the series AFAICS: >: FYI, we noticed a -4.3% regression of vm-scalability.throughput due to commit: >: >: commit: 4f09feb8bf083be3834080ddf3782aee12a7c3f7 ("mm: Force update of mem cgroup soft limit tree on usage excess") > >That patch has played with how often memcg_check_events is called and >that can lead to a visible performance difference. Yes, I mean maybe because of this regression, the whole patch set is removed. >-- >Michal Hocko >SUSE Labs -- Wei Yang Help you, Help me