Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2953516pxa; Tue, 18 Aug 2020 02:29:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv6IrJyP+tOuo2kNqdlqjYrGMMMULsUibHfTJfSRzUMa/K0VeJWDibcshjuWWnr75EAEs1 X-Received: by 2002:a05:6402:2212:: with SMTP id cq18mr19227530edb.34.1597742955251; Tue, 18 Aug 2020 02:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597742955; cv=none; d=google.com; s=arc-20160816; b=GktQ5u12l6jiSDFY7nYfI5doKzt0l1O8TwAMSPiIPx+UluKuhgIeJCi3ZNDFphUN5y jL8kSomegdayiRcudGv9Va4EzyitjDSupuzEGOhntdcnqT99MKf3GmPyzlhGJiwcOins xKWOt2oKUataXE3TVrCgfTPimkzGCIFygIzCTgroPQYaqr7UktusVN4NM5aOc/wIW9MZ u9P7ceY8+IKd/c17GCY5IzToxi9DboHytR+6yQaEUwwF8qB1bs4dDo2JDGuDoovk/uA5 IaNYFPnxpWKIjyik3NAvXttzSpXDK8FtI5/uWGHJzqSAPMnlwh4XNg+xL6eUMtuPxDx1 A8YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=l1uRMktfRV5crgPVmS/xcdDcOHzetxlDlwwdgtJx5JA=; b=FjUpY0XNVbu3xgsG7dxtfAhwWDDdEXzqVOjB5q1ITh/meZXObccSlZOyiO0OwsIuxr Pu0ZiqAacZsbRKbyt/bV6ex/jO/dNm0+YbXPlMiS0ZcqK7zXiI91YSwkkU8U71/X5UDo q0evFcOiPTdKASa2XW5n1S4MVMg0QZywzXw6Cscd3FgjR6pFPCKHQtzSY92DAxCcQjlj 92TimXZ7porq016TDYN1INomxVP0v/1cuJuUVyJ1HmHg9he2RuJihCm/TqY0YFGKiWOq yxcTZxvmfUuBjZjimj6YD2fwp239YBpLWK/bozDOkvh5vBYiLAXEVWVSQjrjKEzMGq1w B4fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=aXZCsxwp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si8665866edx.532.2020.08.18.02.28.51; Tue, 18 Aug 2020 02:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=aXZCsxwp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbgHRJ1n (ORCPT + 99 others); Tue, 18 Aug 2020 05:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgHRJ1k (ORCPT ); Tue, 18 Aug 2020 05:27:40 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 389AFC061389 for ; Tue, 18 Aug 2020 02:27:40 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id 2so17576231qkf.10 for ; Tue, 18 Aug 2020 02:27:40 -0700 (PDT) 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=l1uRMktfRV5crgPVmS/xcdDcOHzetxlDlwwdgtJx5JA=; b=aXZCsxwprTxASQu2DNMwoUtCZ6t+hAn/5sw5abMV4tonMk0SgnkIntg7cbyYTZWblV 6aEwV7fV6oFYpxM4V71CUTNFU+ySLfcQw6a2IuXnzfyCU985kgho/mfmw+W4V4KlsDoV HACh+ZAEE3ZN9fLfhWnARV3NpdrsfiULbLeio= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=l1uRMktfRV5crgPVmS/xcdDcOHzetxlDlwwdgtJx5JA=; b=CTuPSF2Wc+5c8nJFE8kHIiYLu+2wX6obgRmDXO8PMvIhx6z6pI/oJVFX0SMjH1RL0z Q1BNJnVZPsgUbDR/pEIayYbRNvErlw7GlfM7Dq7wmfp/pIGQ7aTRyfrMxvL+LCuwfTuu DLu6IRxhWxOvh32Ufsz2PKv201/tQpChzRyKe/qthxeTMgBOoKrKlz/JPsrBeme0/uA8 bD0x7cMSb062wfVUhNIdjXr823FN7YIy/KzNNuDUUWCx+H3M8Wfwmmy5giY07qy90h7J +spedqUOf3IjOS5nsuPkyrnq2OSJCRzoqwMlvRqVoiIEqnG6b72DcUftNEIw80u+Tia+ Op7w== X-Gm-Message-State: AOAM533+Nvi3QqZsAciSV+c0fNR5nbVpFTepj8zay4ZXe2/6P+w6PCDI HjeX7Xuz7puoxEO6rz+2KkCY2A== X-Received: by 2002:a37:a104:: with SMTP id k4mr16018682qke.384.1597742859405; Tue, 18 Aug 2020 02:27:39 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:179c]) by smtp.gmail.com with ESMTPSA id d16sm19784856qkk.106.2020.08.18.02.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2020 02:27:39 -0700 (PDT) Date: Tue, 18 Aug 2020 10:27:37 +0100 From: Chris Down To: peterz@infradead.org Cc: Waiman Long , Andrew Morton , Johannes Weiner , Michal Hocko , Vladimir Davydov , Jonathan Corbet , Alexey Dobriyan , Ingo Molnar , Juri Lelli , Vincent Guittot , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 0/8] memcg: Enable fine-grained per process memory control Message-ID: <20200818092737.GA148695@chrisdown.name> References: <20200817140831.30260-1-longman@redhat.com> <20200818091453.GL2674@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200818091453.GL2674@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.14.6 (2020-07-11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org peterz@infradead.org writes: >On Mon, Aug 17, 2020 at 10:08:23AM -0400, Waiman Long wrote: >> Memory controller can be used to control and limit the amount of >> physical memory used by a task. When a limit is set in "memory.high" in >> a v2 non-root memory cgroup, the memory controller will try to reclaim >> memory if the limit has been exceeded. Normally, that will be enough >> to keep the physical memory consumption of tasks in the memory cgroup >> to be around or below the "memory.high" limit. >> >> Sometimes, memory reclaim may not be able to recover memory in a rate >> that can catch up to the physical memory allocation rate. In this case, >> the physical memory consumption will keep on increasing. > >Then slow down the allocator? That's what we do for dirty pages too, we >slow down the dirtier when we run against the limits. We already do that since v5.4. I'm wondering whether Waiman's customer is just running with a too-old kernel without 0e4b01df865 ("mm, memcg: throttle allocators when failing reclaim over memory.high") backported.