Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1183478ybz; Wed, 22 Apr 2020 15:22:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLoJH2hPQ/clEe5sxUTOyZsuYCTQoYXMBHlv7IKb9U+A4bwZHFsdmSVWmhyul5BwJPC80zg X-Received: by 2002:a17:906:7750:: with SMTP id o16mr430748ejn.12.1587594124756; Wed, 22 Apr 2020 15:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587594124; cv=none; d=google.com; s=arc-20160816; b=U7ag/Ya+ZL+WOAQlfQdtWQjf2BRvAA4V5WGKsZIGkYD7cW5R98HRC8P74X6hMa42oK bBsWvVJbzAn/VqAnjs4HurUMh6NUr9fcLID5OWE/HlqDlkQyoR0Fj4yNH9iJgUOjvtZx 6YBymc+eCZDqO3esJw8LR/IemPwCEFCQa1VOqLzYS/U7IIswsKcUNW2y3LseeB+oVgbI mbhiYqzbCvGG4znXQ4LgsdBTG5Sl+2gPx4HmFzWDwBnLyRWqcu57tF2ixodPekMTwKYd KYcbQQIRYa5GIuKY0qMkl8x8eW1G/GKoDVzx79J9KzOHUb0bO0eWGP/zkReEkSpv2Qvu r6jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7RkYliGFMdqXvO717N2pm4NnCZwapAsCgxwoREIwOrQ=; b=xzNLFuyqmCSqC2sBnoFimLmLpXhqEYXHTMYmc4N9likGK5tqhzb9kqGzno/S1yvN5d Ndwoj/D83f+rL46tQ5JuFJ3sEsX1J4IC/ysYJJ6XZKW8D5CFqC+PYi1C7IoIUSrCUDhx ORaVGwkAtVrtGTIiCnglYRAXfioB6zdx26c6ScxRU5DsfXKpuFxuxxpuqmYKutAwy6Cp L3lEz5Q2xU2BTof4TF7PcLe9BR6/cQrGfWRYGVCfsjFkJGyGLpHkITn5hrpyM0lpsj0D 0kVFiA+exxKJejc/85ubmvmNnAVloLtdsT3HhaQiFU8seLbf/+sDzFnpWotliL1goppJ M0gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CLGEo+u6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si275801ejk.126.2020.04.22.15.21.42; Wed, 22 Apr 2020 15:22:04 -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=@google.com header.s=20161025 header.b=CLGEo+u6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726030AbgDVWU3 (ORCPT + 99 others); Wed, 22 Apr 2020 18:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725846AbgDVWU2 (ORCPT ); Wed, 22 Apr 2020 18:20:28 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C4C1C03C1AA for ; Wed, 22 Apr 2020 15:20:28 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id g10so3055295lfj.13 for ; Wed, 22 Apr 2020 15:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7RkYliGFMdqXvO717N2pm4NnCZwapAsCgxwoREIwOrQ=; b=CLGEo+u6Ol6OoAJw6QXk0qHvTJvCNzFarr5oZ0N0OMVK0XtleuSdVK7pspDWG+k8jZ Fm6/J0Sa0R+dGQWLaH2Zbx07U2d3gIJZb/HPrE7IkZdmhaPk23GjxGZsP3sxqcHhkuVA JFsolmPT4jwkqogLz/cwAuqgpFa1+OvRlp9T/mP0vAcqFi9KKYNHf8q8DT6m0kVrJ82t ETNo6nwSIlWJd3Fqek4NNLkYj1sNQgBMjr3ocYfmpru/Jzn4futMt2nX5p4XBcZb4SMq bxL7eaGouhPxxZIK/cYUP5Ge4aZsfSmKI5MYbgEpRXPj6Idx+OiBwCRD++V/dck67C/g FrlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7RkYliGFMdqXvO717N2pm4NnCZwapAsCgxwoREIwOrQ=; b=IeaQy4XP3r2LuLukNG4u54wCrcfX69GVsoRlPMQ7RJPP+HETbUXfoFUCLWdFYQOxzy E3IEdO1DzO0fY5Ob4qzGNjfgnnSXmpGQP6nxNWlPxo7VVGieR27tHnJ4M2e9A8rLdU94 CzSUl0doXhV2dnz1i/L599T9EY1cAHKpA4gfRNCzBQAs4ogiXxQNbvmkHtoYKlpsgBxS OdA7EEcXmwMILoYRlXOBVU+aMNiRLAj08ooo2QLzRzfBXXS1XYUhWMZ7TXhbE66ClPpd bfgXyZl/IUIPZmBi9UoHhX76AUlpCXS1cm/vJSQvIWRvuVMhVKBfP2sDoq75pbWKjDGQ 1/ow== X-Gm-Message-State: AGi0PubhCg4HRs5/s5zBgKYSCYlbMDfUPgesK37+CQVKdI1OBQtrAIBi V8mDzabX0wIuY1rDJySCe/mcDyOIyXjG76fyswmBwQ== X-Received: by 2002:ac2:5e65:: with SMTP id a5mr424101lfr.189.1587594026577; Wed, 22 Apr 2020 15:20:26 -0700 (PDT) MIME-Version: 1.0 References: <20200420221126.341272-1-hannes@cmpxchg.org> <20200420221126.341272-5-hannes@cmpxchg.org> In-Reply-To: <20200420221126.341272-5-hannes@cmpxchg.org> From: Shakeel Butt Date: Wed, 22 Apr 2020 15:20:15 -0700 Message-ID: Subject: Re: [PATCH 04/18] mm: memcontrol: move out cgroup swaprate throttling To: Johannes Weiner Cc: Joonsoo Kim , Alex Shi , Hugh Dickins , Michal Hocko , "Kirill A. Shutemov" , Roman Gushchin , Linux MM , Cgroups , LKML , Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 20, 2020 at 3:11 PM Johannes Weiner wrote: > > The cgroup swaprate throttling is about matching new anon allocations > to the rate of available IO when that is being throttled. It's the io > controller hooking into the VM, rather than a memory controller thing. > > Rename mem_cgroup_throttle_swaprate() to cgroup_throttle_swaprate(), > and drop the @memcg argument which is only used to check whether the > preceding page charge has succeeded and the fault is proceeding. > > We could decouple the call from mem_cgroup_try_charge() here as well, > but that would cause unnecessary churn: the following patches convert > all callsites to a new charge API and we'll decouple as we go along. > > Signed-off-by: Johannes Weiner Reviewed-by: Shakeel Butt