From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Down Subject: Re: [RFC 0/7] Introduce memory allocation speed throttle in memcg Date: Tue, 1 Jun 2021 15:45:26 +0100 Message-ID: References: Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=38OJXjf9apU3psNdgfiCp5ABcftQyKat/l3MsHmkX8Y=; b=UQ3kqRg6KLoUWQ3nlWkbFWXvc+pq1x7GyJUmyfTz8pzxAqM6/C+fUQCP4mpRpej3nc DVWQl8jdJXGSWCePj4rWYdSiLZTlgTiQedHeNTUEUAmWEoGZ/jSqfEWVeksFUMlvj99e 1Mpl/9WfbjTWMfyifeHRUjGknkITJjxkXmKY4= Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: yulei zhang Cc: Shakeel Butt , Tejun Heo , Zefan Li , Johannes Weiner , Christian Brauner , Cgroups , benbjiang-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org, Wanpeng Li , Yulei Zhang , Linux MM , Michal Hocko , Roman Gushchin yulei zhang writes: >Yep, dynamically adjust the memory.high limits can ease the memory pressure >and postpone the global reclaim, but it can easily trigger the oom in >the cgroups, To go further on Shakeel's point, which I agree with, memory.high should _never_ result in memcg OOM. Even if the limit is breached dramatically, we don't OOM the cgroup. If you have a demonstration of memory.high resulting in cgroup-level OOM kills in recent kernels, then that needs to be provided. :-)