From mboxrd@z Thu Jan 1 00:00:00 1970 From: Waiman Long Subject: Re: [PATCH] mm/memcontrol: Don't increase effective low/min if no protection needed Date: Tue, 11 Oct 2022 13:14:59 -0400 Message-ID: References: <20221011143015.1152968-1-longman@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665508504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MnvCQgz6H0YpLOGZ3RFU26i2x7EAPQhf8onHHyzectI=; b=OqcpOaijhtf4UMDVEYBCIrc0/XMa75pUroAcSrrVHb0rpgJnkbglmUB2Saa7hf/d2buAFX ttBFDhfNTX8k6S+z4nkG3ufN4BgjC7mw5AFFwJTobgBeXgUcjexx1HARe9eE5hV1sqFxe/ KgiWzJFD68nSoI11gaa6+Gsmvp88/u8= Content-Language: en-US In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Tejun Heo Cc: Michal Hocko , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Chris Down On 10/11/22 13:04, Tejun Heo wrote: > On Tue, Oct 11, 2022 at 01:00:22PM -0400, Waiman Long wrote: >> You are right about that. An alternative way to address this issue is to >> disable memory low event when memory.low isn't set. An user who want to >> track memory.low event has to set it to a non-zero value. Would that be >> acceptable? > Wouldn't it make sense to fix the test? With recursive_prot on, the cgroup > actually is under low protection and it seems like the correct behavior is > to report the low events accordingly. Yes, that is another possible way of looking at that problem. Will talk to our QE people of doing that. Thanks, Longman