Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp912891ybh; Mon, 13 Jul 2020 04:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMh8L9t61kuhv5XDWxn1fd7Nefmt8Qp1rmikeR83a3mQVf8L1ThknmB37FMQI7r+UfBU/1 X-Received: by 2002:aa7:dc46:: with SMTP id g6mr85150905edu.194.1594640584172; Mon, 13 Jul 2020 04:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594640584; cv=none; d=google.com; s=arc-20160816; b=hzMSNCiimv0qu3o1J56uzQso8wF5Bi1Z2GfqjJlI2vgnCqZJvAx8nCI7Fx2NsO4Tb3 bWc7RlZUw54cfKiiG5zDy+J+E5Qo6fU8BiCk7U8nlMJidsAJgDe1mLx1mUGaQPfrHtZh +mv2rDsVgplk3FhdM23gsAuGzSv2KBLig24ziEn59bIpFdP1YGh6NYDS/6E/zLCdR+XI n4KoV80d/bAz19vPugZHk36ZlaTkBN78HOnV9aQzxLBc9KJcO3uwtEQlJEMsb6YNBUBA wc0eJiPHJqa0JMwTW10WooXjeREl5m2jPT98iIt70qT3wQ2gSL+rvlagZxBhIiaPomIY Un/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=TvJxYzvOgzlC3BuPyn0KYnjcr7/OFk0QNHyHHZoEtGc=; b=Nus+0U8BiHBj4AciLP4+o6UZuJ+kwWDhQiQToWFzo4YF8zubSCqhtKm3ceGsYyXcZQ UmZ35dR7xwLkQOeeqwDMIcZPlTG/EV5AnYszmlXjZVVvKqTq4RuyEicSYFSjB/A49M8y bihHi6+do0NpwEHdf/l9AXAWlRbIewyiRnVEGoo0by3Rfl82XZ9CLkYZ+BzHK/BqSbgU S+bffCeJpHca+3YWuhdxDwdRPMuH0reqNic6khIasVMmCmpO3rEGXv81LVxLW6n2uLYt U9gaL23D00MQK6/fUVkP0YMRXIZCBM+b6geqf/CQNt6Qf2Fs0Xk367YyqXluwLOkMqS8 plqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=rO39pjE0; 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 bu19si8891208edb.468.2020.07.13.04.42.40; Mon, 13 Jul 2020 04:43: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=@chrisdown.name header.s=google header.b=rO39pjE0; 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 S1729390AbgGMLmQ (ORCPT + 99 others); Mon, 13 Jul 2020 07:42:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgGMLmP (ORCPT ); Mon, 13 Jul 2020 07:42:15 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767D1C061755 for ; Mon, 13 Jul 2020 04:42:15 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id p20so16631294ejd.13 for ; Mon, 13 Jul 2020 04:42:15 -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:mime-version:content-disposition :user-agent; bh=TvJxYzvOgzlC3BuPyn0KYnjcr7/OFk0QNHyHHZoEtGc=; b=rO39pjE0Wei+6nLZvaupuo2Ex4KuQD2qZ+3t6eBYQNcRJtvYdxAC8ONfkblcinlcJO CsVJ3UHvyqauDlk9iXmWwHEWUAv6UaIhcERBX4YfcmGPRVnAF+ubSh8IYXCZ3iIBZhvT yOhcnmyjlTvVR4JTTXRQsTb9HRlMgpn7BBmrM= 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:mime-version :content-disposition:user-agent; bh=TvJxYzvOgzlC3BuPyn0KYnjcr7/OFk0QNHyHHZoEtGc=; b=FQS3NIFUwQtVo/S7YLBCH9ucc/D16JLfqhRDapjAP50dtJnWFQ4rEHoKtgQNb7JdQS RDOJ/1xOtZ7py32gEYK/bv5nafoxkw67q8+4MzAVUMSzjrVyuow/F1QXNy6OaX8cnSjZ 6DBDVOZZZs6jOlytdVW86p0239x9spi4mBpxYNOY+pQYL6N9W6XpmhOMcwuNJHWJ5z1H UHfGFTWaodupem9AcuBpkZ591sSLlcbvK8wsiYoK1St9ECkNYBmO7KeZMFFY4jBKvRla d5T/NVMvl6QL1U6XkNQ2Mh5hW6ei7eoOjzn9E0To9bkzK6GjZzVOdQCcbF49fmyMTjeb v50A== X-Gm-Message-State: AOAM533GkcF30mT8lgCRBzWG2twNdPdKU2h+96eBXylrZwyEjmbiurzC FHs4rzKFJDUpQivRkFp41oKuRw== X-Received: by 2002:a17:906:c142:: with SMTP id dp2mr76749291ejc.541.1594640534092; Mon, 13 Jul 2020 04:42:14 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:ef88]) by smtp.gmail.com with ESMTPSA id bz14sm5377849ejc.88.2020.07.13.04.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 04:42:13 -0700 (PDT) Date: Mon, 13 Jul 2020 12:42:13 +0100 From: Chris Down To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH v2 0/2] mm, memcg: reclaim harder before high throttling Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.14.5 (2020-06-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1: - Reclaim only SWAP_CLUSTER_MAX pages on reclaim retries, and add comment explaining why. Thanks Johannes for the suggestion. - Unify into series. Chris Down (2): mm, memcg: reclaim more aggressively before high allocator throttling mm, memcg: unify reclaim retry limits with page allocator mm/memcontrol.c | 53 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 12 deletions(-) -- 2.27.0