Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp385793ybz; Tue, 21 Apr 2020 23:39:24 -0700 (PDT) X-Google-Smtp-Source: APiQypLWgKyjKeletTnQl/jnC+o7i7oaomY5SEx5aHMvQ/wdISlVTAert8q/1bdduCvs/SPU0qTS X-Received: by 2002:a17:906:cf8a:: with SMTP id um10mr24072731ejb.60.1587537564140; Tue, 21 Apr 2020 23:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587537564; cv=none; d=google.com; s=arc-20160816; b=QxaxUNVwPnua0K6Qsh3eohniE3OxD49V2pASpsb45FE1r+92XYfZkRoHlv3bsiaOQR FzOPzm9LjUXsfZ1nRve2N8mYRuE7mAndFzCaL+fop4TDYzZN34txPTvQ+Q6Vr3pCezGz wjxaDy19oDZ3tFGwurvMZVJwNXhKuf9IRas9Pbb3l1/onqqpxl07lcXwo31mztAZHwVD sXrvNUxF3k2GqGUdu+XczFjZF9dRm52J6FwNsCAN67V92YlxzPP0DKo/107EjED7/h4M ZnsERjdXF1IbUKq3tYuv0H3Kb70IpgIA/90wM+boOFLPk/JQJr8gPjsD+d27Lll87Dxo cm/A== 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=M3V1L8dUG+LHRmYCPUTMgmjn7UaZHh+VkReKQj/vaHo=; b=DkqSKWN89Ho+L+eSpb/B6xq7ZIxF3I2lzwJlj3zI61vpYHFAZh7XtF4B4OgAfX9040 XsD+fynwbDNUnTyuwUBpEHrcqOmTJ52AzfrJKdhlJlH4W2PsjYZwxJ9Ii0q2cQOHMPl8 XBDl8TQu4XGgQkQA0lrsiYN4P5cjFdrGISQ0ongNKaoUfHyJI+2G9A5ue2OHYwuSmcld SJQpH83LRG2fCpRPBWrXGffoCGst4g8/VAd3uPAQCw710KWQ+rEjFdYFr7kK5/NtFYu+ hvpucUtbVL7YJFZcZO6oCes/t8BrSLr54ysof20hY82lvUDkF/D+7rJhDUobEurMs8eE MDVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VLLZvjTy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si2775174eds.63.2020.04.21.23.39.01; Tue, 21 Apr 2020 23:39:24 -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=@gmail.com header.s=20161025 header.b=VLLZvjTy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbgDVGhk (ORCPT + 99 others); Wed, 22 Apr 2020 02:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgDVGhj (ORCPT ); Wed, 22 Apr 2020 02:37:39 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5DF3C03C1A6; Tue, 21 Apr 2020 23:37:39 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id a7so504935pju.2; Tue, 21 Apr 2020 23:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=M3V1L8dUG+LHRmYCPUTMgmjn7UaZHh+VkReKQj/vaHo=; b=VLLZvjTyPjUgrOmfVUzEK98z+a3DuIJzk8YklsxG4duu/ZaQG/OxRt8VGQQoJk5rSq w7PDHAUR5t3p6G6E5k1yyL2g/BJnmWDAzsogEl/KU5MclGkgNEPL4u+ymQ9CzV86Qwsy 0DVS6CS9PA+EgKfrysJ1Pol0cTsJA5+L+3fv7IzvAL6fh+PoJ5JNVu+S5fnmoOHeQWDX TAZTS4f/IqI97thaP3pnigLg89b/Gvu1vz/7gT1qkKSgpX1SMizwilKhgqrKOYye0583 aM9l8fc9I5Wdv0p0yXEAD0AxRoj9ohgIbIzLiNGTYouJqv4OA1f8sX7e9qzwcHgN+PWS 17bA== 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=M3V1L8dUG+LHRmYCPUTMgmjn7UaZHh+VkReKQj/vaHo=; b=I2GPHhwX/P8+eNBjwwMTqKWSeIM4cJeB+f6MlPIE6vpqvilpSxCoC5/6ai8ibnAS3/ zjiRPmTpEw+m741+MLxGCL3DAWUIhVv0kpKwvNCHw+8sAsqph/atR6IXGuLveQmNffWm S3aRIcrNICTKmGMMU0L4PaHAxvTPBCKzK2T97R6CqcGJIgteJZ7vn6C50w5BbXlyMlzv D4CzFIkH+Kr5aa5u/u5qYnp25WFmmItOfFNohYJOTwExG+t4j1Cl1QyUYpO1hmtgCOFY ES2IupRbEUkT71kpJzeFDq0Lc+iItZATkRFcFuQMP+z66BNshWNZhVF0QmsXU7PBUc3w aagA== X-Gm-Message-State: AGi0Pua+HPA5MerrDPP6fzCCPIll4OuVqwXwd8VNivz/QNGJnZZnOdvm /9MozTYXyv46DULCHls90d8= X-Received: by 2002:a17:902:d693:: with SMTP id v19mr26122013ply.9.1587537459292; Tue, 21 Apr 2020 23:37:39 -0700 (PDT) Received: from js1304-desktop ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id n17sm4387026pff.81.2020.04.21.23.37.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2020 23:37:38 -0700 (PDT) Date: Wed, 22 Apr 2020 15:37:33 +0900 From: Joonsoo Kim To: Johannes Weiner Cc: Alex Shi , Shakeel Butt , Hugh Dickins , Michal Hocko , "Kirill A. Shutemov" , Roman Gushchin , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 04/18] mm: memcontrol: move out cgroup swaprate throttling Message-ID: <20200422063732.GD6780@js1304-desktop> References: <20200420221126.341272-1-hannes@cmpxchg.org> <20200420221126.341272-5-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200420221126.341272-5-hannes@cmpxchg.org> User-Agent: Mutt/1.5.24 (2015-08-30) 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 06:11:12PM -0400, 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: Joonsoo Kim