Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp314851ybm; Fri, 29 May 2020 00:27:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJZBKaapaPTu3KzjvebjlAMEvB8m6E2PInD11PCjnWG6dUOXV1HV+dFRzx6sMHWYCRzGaJ X-Received: by 2002:a17:906:8402:: with SMTP id n2mr6241347ejx.26.1590737258190; Fri, 29 May 2020 00:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590737258; cv=none; d=google.com; s=arc-20160816; b=ZviIctlYcL2ze0foEz7bWjVXY1ZmodroeFoC4xbH3RGBMYPyjadMll3g/jvV5Q+9S2 760CF08tbpcHkqlSa7kF+hoFLgBKIjg2ngXfpbzWhnae9yVilNy3aGL2grBRnrZgtLII EXaBj56YPe3MPompwh5qrf9i3JCOVl6fd25QO8L/Cf16Q4Vjg2V6U/+wlS8Et2KFq9A1 cDYOypHGgKfH3Up9Oa2NR8MGmk1v0oIMlFmxQS3zt8j0bH0+HKIUuqtyMBVWCq3odcWG K7CZkxopfbfCACJ+7qvEXtOCt1eOJkeCABvO535UXiOcLfALEKoqe/eBjTtd9iU67aPJ njqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Cu9vzNZYc7Xw8z9bCnT/mNbRyFHSEb5aY4LsyXQDvtk=; b=R/5RHBcJ+/MERP200dLxcXt/Hk7JPDwRq/2boqrNSn384KE9oWvDLszAOayAnMxEOm d2mR1FhXtgGwIDMvKMm7PkA9raz6aM+l2CVBSSWw0i9oupizbw5fu67msR0SNd1RfI06 F35EGEvW7OvHKMlVkLFPDZJIcMH0naF+HHbOtTGIFa881PtnEpb00bvnMWVpywp42aQf UnOsPjls8Adx85GjHPJzW0fS93ezTQ4XYb4ciVp4zbv3ojqh3Z3nGTjKyNUuCdZVa6LL I1P0kbvmvpEjWoG6prtqlGey7pvk2P3p5hlCY395L74qI3zLOZFvNGAmoIWcQJ1GWaOW yjfQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o59si5103291eda.39.2020.05.29.00.27.14; Fri, 29 May 2020 00:27:38 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725808AbgE2HZZ (ORCPT + 99 others); Fri, 29 May 2020 03:25:25 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37756 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgE2HZY (ORCPT ); Fri, 29 May 2020 03:25:24 -0400 Received: by mail-wr1-f66.google.com with SMTP id x13so2247575wrv.4; Fri, 29 May 2020 00:25:23 -0700 (PDT) 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; bh=Cu9vzNZYc7Xw8z9bCnT/mNbRyFHSEb5aY4LsyXQDvtk=; b=YrPWLBXp6/zcPwAl433ddMJ7NYhVyXgL7hx7q2+PkQyJcEjIwykx0J5O0wKQiMsWzz Z9OBa2x8MopgAzXShlHXiGvdDJ9iIOU5tsWPvO/GtTmO7FW0fwVaFbLekwZdNjLWhuv7 vxRCrKfCYxDt4VS8OsTrVfUCYGYXRxlT7WtxtMn10gldf9mY6tuwNrFlgTNXhJwIOmut Q0C8e0oEWmiJAPANZyr078oBooM9JjILHph2j2xTh6wu9qoTgkwInzgbtyIMd+Q5w6N4 Gn7ddi4jB+F97uHtSVlEVe0AYDfLY9eTKToAQPXkSMguUrDUEpTdAqP+PWujnvFbm2I2 essw== X-Gm-Message-State: AOAM531cY6wp2Cty1FqNSLPSGrR0fO9jb+tWB2qcAAkmm/71qtnYZoo2 X8iKfD6Rh0Z5ar3GrC1/7tw= X-Received: by 2002:a5d:4484:: with SMTP id j4mr7133757wrq.325.1590737122925; Fri, 29 May 2020 00:25:22 -0700 (PDT) Received: from localhost (ip-37-188-185-40.eurotel.cz. [37.188.185.40]) by smtp.gmail.com with ESMTPSA id b9sm8810619wrt.39.2020.05.29.00.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 00:25:21 -0700 (PDT) Date: Fri, 29 May 2020 09:25:20 +0200 From: Michal Hocko To: Johannes Weiner Cc: Chris Down , Shakeel Butt , Andrew Morton , Tejun Heo , Linux MM , Cgroups , LKML , Kernel Team Subject: Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling Message-ID: <20200529072445.GD4406@dhcp22.suse.cz> References: <20200520143712.GA749486@chrisdown.name> <20200528194831.GA2017@chrisdown.name> <20200528202944.GA76514@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528202944.GA76514@cmpxchg.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 28-05-20 16:29:44, Johannes Weiner wrote: [...] > How about this: > > Reclaim memcg_nr_pages_over_high in the first iteration, then switch > to SWAP_CLUSTER_MAX in the retries. Yes, that makes much more sense to me. -- Michal Hocko SUSE Labs