Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2654346pxa; Mon, 17 Aug 2020 15:37:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu8vmbDf9We2JWhntxqRKfhITEfToFVIIw30r9wGK74ipqjyTvFB7MD3BxPiceACSWcJCh X-Received: by 2002:a17:906:4094:: with SMTP id u20mr16917751ejj.553.1597703853697; Mon, 17 Aug 2020 15:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597703853; cv=none; d=google.com; s=arc-20160816; b=dGGRuqUphtVbflA9LXp6V0mi7Zd1YAKWqJVg5DEBj/ZuH2IdJdQsa4ez6uKzs6eWyu V0ehFNeRJwdsdTu/UXpb778XetuVp4IctYWjS335/hmAHlgp0Q4F6sgI66nQ1sqrEQAi MZw5d6ZURA62tDvFFJgzoOB8IxhU+uQGrd3cyfIMu3qt+X6r2lMWZY1Vh4Tv+o8NbC/l lNoFL8xtrtXMPWUlbpbWzwERYAeTnYc/Qz46ouHjZZPNA8ytvmQc9d9IOYJXk1FtdRlK LgTW7O5OZ/07aqKZ60WfBD2Jn2hLLCD9F1f6dsOQeokjbIKNNZsD8+VpAn4Lc4roDCgI Rfhg== 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=Sre2n1Pi8KkTqGTv1s6yeby+p8079BRqjBOJcwiSLww=; b=ux2MIXzIzsj2Tsobok0qW6nQSiRKWXmyI+Cg96ZajUiLNy6Awt+OLsG/GBb2FnxVPc nNPdj+tpr+iy2Zw6AyjpvmUUwh9zJARnaccwk4/OyzV+ALZ1kN2r9Bk3GjTenxiHzxFH BoX9ev+xi8A2fxVvur9UflRzQfR7H4gRBG9SUqK+TPhYMUW2HgcaQDvrA7E61CV8bs/S fACLK9qJ23xHD2x6I+z+BSusA636TjBklTv0Wr0t/CroMF4/ATDQuAfN5+BcAbJUh8D3 PRUut3uY8K3uWgub1AJQRfwDNXIOmnjqZud0YjRC3AG7ihxiJwVsF4i3a04XsMYXV30o EfRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=e0lnhMNX; 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 cb14si12577534edb.325.2020.08.17.15.37.09; Mon, 17 Aug 2020 15:37:33 -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=e0lnhMNX; 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 S2389895AbgHQRXQ (ORCPT + 99 others); Mon, 17 Aug 2020 13:23:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389197AbgHQQ4M (ORCPT ); Mon, 17 Aug 2020 12:56:12 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE47C061344 for ; Mon, 17 Aug 2020 09:56:11 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id i20so1354356qkk.8 for ; Mon, 17 Aug 2020 09:56:11 -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=Sre2n1Pi8KkTqGTv1s6yeby+p8079BRqjBOJcwiSLww=; b=e0lnhMNX4rbCpfxhO+gQeYAWXdMT9zu80lFA0njs6xwsW1qMBlgAAwdV2fB0ZrDmbI DJwU3H9e/x24KArsI3bcQm9YF2fnooWNYRP2u0lBlOJpfLosNy8hnAKjfFXmNtk1tfH5 iHxLc3XXadcqboQN3EKUpEvNmXTEMAqp2DHM4= 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=Sre2n1Pi8KkTqGTv1s6yeby+p8079BRqjBOJcwiSLww=; b=VWIuqotNYaY5ADFqiKG+H2Qxj2BLEdVygwtBz3oS1TnkOW3FMQejR5sDTkdYKfg76M B70hGsXn8uFEUQfUdU+m88TJVkRxdNH0iNJAiCg/Yk0E2HXHMW/gVCjsknsJDi0db/qB AQ0gX3OWZkKIOg4lwmeoMe/znC8+b1+8i2fOx2HkzlQEdP9avSVCfdJdC4Zw2dz6VSPM Ew4Ub/W40daZl3BSa+Kxxe1dwzFQl3BtfE0aL8nCWMGQzTaStZ/GFpXyIeSGFvHKOe85 QtZmseWeSFElsGWm756vdUAFdNqYjGrK6yLYwpqhJ3Do6xobPgbP9nWE9jj3Q5b18ILI iSmg== X-Gm-Message-State: AOAM531z+JrxcEsDirJXNvKRoAmkNJrwRfq4BasUVHgMyMmufHZthtFO iG0PtTlvodcRFCGJ/B/Odua5Kg== X-Received: by 2002:a37:4144:: with SMTP id o65mr13531902qka.32.1597683370402; Mon, 17 Aug 2020 09:56:10 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:47cc]) by smtp.gmail.com with ESMTPSA id n184sm17781669qkn.49.2020.08.17.09.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 09:56:09 -0700 (PDT) Date: Mon, 17 Aug 2020 17:56:08 +0100 From: Chris Down To: Shakeel Butt Cc: Waiman Long , Andrew Morton , Johannes Weiner , Michal Hocko , Vladimir Davydov , Jonathan Corbet , Alexey Dobriyan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , LKML , linux-doc@vger.kernel.org, linux-fsdevel , Cgroups , Linux MM Subject: Re: [RFC PATCH 1/8] memcg: Enable fine-grained control of over memory.high action Message-ID: <20200817165608.GA58383@chrisdown.name> References: <20200817140831.30260-1-longman@redhat.com> <20200817140831.30260-2-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: 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 Shakeel Butt writes: >> Sometimes, memory reclaim may not be able to recover memory in a rate >> that can catch up to the physical memory allocation rate especially >> when rotating disks are used for swapping or writing dirty pages. In >> this case, the physical memory consumption will keep on increasing. > >Isn't this the real underlying issue? Why not make the guarantees of >memory.high more strict instead of adding more interfaces and >complexity? Oh, thanks Shakeel for bringing this up. I missed this in the original changelog and I'm surprised that it's mentioned, since we do have protections against that. Waiman, we already added artificial throttling if memory reclaim is not sufficiently achieved in 0e4b01df8659 ("mm, memcg: throttle allocators when failing reclaim over memory.high"), which has been present since v5.4. This should significantly inhibit physical memory consumption from increasing. What problems are you having with that? :-)