From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14613C433DF for ; Tue, 18 Aug 2020 09:27:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C9CEB20639 for ; Tue, 18 Aug 2020 09:27:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.b="aXZCsxwp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9CEB20639 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chrisdown.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5F9B28D0001; Tue, 18 Aug 2020 05:27:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5A9686B0030; Tue, 18 Aug 2020 05:27:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 499D78D0001; Tue, 18 Aug 2020 05:27:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0067.hostedemail.com [216.40.44.67]) by kanga.kvack.org (Postfix) with ESMTP id 306E26B002F for ; Tue, 18 Aug 2020 05:27:41 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D6A73181AEF10 for ; Tue, 18 Aug 2020 09:27:40 +0000 (UTC) X-FDA: 77163161880.07.mice46_1603c872701e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id A87201803DCE3 for ; Tue, 18 Aug 2020 09:27:40 +0000 (UTC) X-HE-Tag: mice46_1603c872701e X-Filterd-Recvd-Size: 4365 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Tue, 18 Aug 2020 09:27:40 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id g26so17626236qka.3 for ; Tue, 18 Aug 2020 02:27:39 -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=L3N/XRxgi4/d+nT/H3Ru5MPDYeSlG1TCEqfb9FRIBl3goMjFzxWfD9NF4RSM+W8vbp x6sd5RRPenp0DDDMLdXLh3z8/xP7rIE+jj5HJBqQrvO6OlB/dbvDTnr+pSdhyXloyrXo 2PVEVSos46Z8N7boqioOwxAcLRXdp1/0BYGA8fWueR7Y5AibiOQmD1kdSJYwiJf0E2P7 wxDo9XSwS3dqlH2knuD4+RnenC7CPVoPz36pTOrTwgm6b7sX/iNLcM8CMt545eXLcb2X d2y5EFgqZv7OJZIPB0CMU3w6K3vCz1sbXqvkJZAiEgI1/qPQc/mZ5jJSjGKOEShk/HWm tjLQ== X-Gm-Message-State: AOAM531RpKPxNuZL9qpMRt2wbOeSA3+xG007dIM+k/MrNygz7RdzgGgc EufuYqRHqWq7xF5k0JNKBTtcNQ== X-Google-Smtp-Source: ABdhPJyjRbj82qo14ynmuKZgINBcTQu1SV2ro8jRAdmhpvPscAYrmOepaS8i23X7ke5WKJ6U1bhfGg== 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) X-Rspamd-Queue-Id: A87201803DCE3 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.