From patchwork Mon Jul 13 11:42:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Down X-Patchwork-Id: 11659537 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 57CE460D for ; Mon, 13 Jul 2020 11:42:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2403D2082E for ; Mon, 13 Jul 2020 11:42:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.b="rO39pjE0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2403D2082E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chrisdown.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 210ED8D0002; Mon, 13 Jul 2020 07:42:24 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1C1C08D0001; Mon, 13 Jul 2020 07:42:24 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B2CB8D0002; Mon, 13 Jul 2020 07:42:24 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0234.hostedemail.com [216.40.44.234]) by kanga.kvack.org (Postfix) with ESMTP id E74A88D0001 for ; Mon, 13 Jul 2020 07:42:23 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 8D0E61DFA for ; Mon, 13 Jul 2020 11:42:23 +0000 (UTC) X-FDA: 77032864566.15.coal96_1909db726ee8 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id E19141814B0C1 for ; Mon, 13 Jul 2020 11:42:15 +0000 (UTC) X-Spam-Summary: 1,0,0,fda0a0c179b5c1ae,d41d8cd98f00b204,chris@chrisdown.name,,RULES_HIT:41:69:355:379:973:988:989:1260:1277:1312:1313:1314:1345:1437:1516:1518:1519:1534:1538:1566:1593:1594:1595:1596:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3865:3868:5007:6261:6653:7875:10004:10400:10450:10455:11026:11232:11473:11658:11914:12043:12291:12297:12517:12519:12683:12895:13069:13311:13357:13439:13895:14095:14110:14394:19904:19999:21080:21444:21451:21627:30054,0,RBL:209.85.218.68:@chrisdown.name:.lbl8.mailshell.net-62.2.0.100 66.100.201.201;04yg3wwc1se1z91y33wx7jurjpnk8ocjiqe7osz7n6gawuw76a4nqsa5hkphp7t.c166xu9hr7nxq19t77qen4y4mejmbtbfjqyg7c4fzta7xoj8za8udc5881kyopp.1-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: coal96_1909db726ee8 X-Filterd-Recvd-Size: 3157 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by imf04.hostedemail.com (Postfix) with ESMTP for ; Mon, 13 Jul 2020 11:42:15 +0000 (UTC) Received: by mail-ej1-f68.google.com with SMTP id br7so2833788ejb.5 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=jJlKLV3R5H4ZPKiDVQaEAjrPct34FmFf+hXbfguvYd6JBCNuNXVyu/qAWOkNON0pSk itJaoXcduahtrgm9qFGC27o30qaMcrLuzxbnS9nXsnoHYWaSPgB8an4134zLQuOmmGtQ 5jVfdO83lfY4jJQuHngEKlok1dvpNO+hfvMxD1iDZA+zJA0vMfkt84Ixji95ZfqFngnX SVCNygyHYs4iAIpuAM1tTuyNQSOVbkF5GywRMVRzcMdGIqC+8pGpmrbe+lH45K19EVmG pURtMdaaEgMpduPDlswXRV/PhX9gt7GzyVS0OEn0x2jCt5CEzLwxyishHg50I/E4JgRe ntPg== X-Gm-Message-State: AOAM532FTxpdwlE5bI8wrFg9DG6lms/2R9hPAnZjm6uWENGVmTlB5B6H TpoxfQkZDByujltw4Zg8N6yh7w== X-Google-Smtp-Source: ABdhPJzGgq6RGP3XIbwumibrODkGvKT1MpPv2MlO3N6NK25YXE3CCow3QCIXO8inZ0byPzPoTPrA+Q== 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-Disposition: inline User-Agent: Mutt/1.14.5 (2020-06-23) X-Rspamd-Queue-Id: E19141814B0C1 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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(-)