From patchwork Wed Jun 21 02:30:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yosry Ahmed X-Patchwork-Id: 13286563 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4B0AEB64D8 for ; Wed, 21 Jun 2023 02:30:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 07E5B8D0002; Tue, 20 Jun 2023 22:30:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 006EC8D0001; Tue, 20 Jun 2023 22:30:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DEAF68D0002; Tue, 20 Jun 2023 22:30:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id CF0068D0001 for ; Tue, 20 Jun 2023 22:30:39 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A63451A0690 for ; Wed, 21 Jun 2023 02:30:39 +0000 (UTC) X-FDA: 80925176598.04.A7EC862 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf01.hostedemail.com (Postfix) with ESMTP id 0676640011 for ; Wed, 21 Jun 2023 02:30:37 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=HoGEDJNu; spf=pass (imf01.hostedemail.com: domain of 3zWCSZAoKCAQ2swv2elqihksskpi.gsqpmry1-qqozego.svk@flex--yosryahmed.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3zWCSZAoKCAQ2swv2elqihksskpi.gsqpmry1-qqozego.svk@flex--yosryahmed.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687314638; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=VSoisqprkMitd+xVsai6RZ6ObdS1Rg95P89VE+p+UtY=; b=YMCih3k0eBHxnVlbkvOtC8SH3ppyNe2bBZpek2hco8XGriV8bjjBxkjrzK+aIJsjizWLTY xuLu/BC22x0TeiNPRFG4nwkdIeq8B3Trt4+oALO4DkOgqKL49VRLOg592kWCyVwfL5L1TB IyLy4eWj2yn9DMWHQTnPvsVABMdQNuk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687314638; a=rsa-sha256; cv=none; b=ENjB/fxGNqHZus3rj3Yib5nTbDJq770smMGFKiLeW2V2K8b0EF0JIMeAUpivKFOM0swuA/ p4XI/LOa7IseRDxmKj+bS++ATFT1cl/kUGEjBWbiDW/dJz22pU8B/0QAU1nJlG4spAOhQi C2QXK1XflzvSszcbUityWsxXFfdd95M= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=HoGEDJNu; spf=pass (imf01.hostedemail.com: domain of 3zWCSZAoKCAQ2swv2elqihksskpi.gsqpmry1-qqozego.svk@flex--yosryahmed.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3zWCSZAoKCAQ2swv2elqihksskpi.gsqpmry1-qqozego.svk@flex--yosryahmed.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-bc77a2d3841so5491036276.3 for ; Tue, 20 Jun 2023 19:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687314637; x=1689906637; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=VSoisqprkMitd+xVsai6RZ6ObdS1Rg95P89VE+p+UtY=; b=HoGEDJNuH1S6XZ7O1VHvt+thQ09ho4OWJgXvwTchJRKY8pdO2VwgrKK/bXrEJR50PN 4s16ZdlWm8G3esFAcOwVQZqwkkWCxMFjADbgSs8g98QnnNHnKpQ4Vxo2b0L1N0G7WNoe OJeBdwjB5/npVOnfsPb+8Ip1JwUYinUU5GtR1RL2ZRAu0MN8xasKrhp4GJqdMYRXdLx2 3rdeoKs4khijAS3tQD4J6p/aHYc0UloSf5seAik+XSu4Y7uO5gN3rMwZqn2jZOquL6fS 2QxcReI2cuDOeg9/7Qd4DYGRCXNOv5CTpK/6fFg9u95mXx4uCq/pD3Sd2GhQV2dElxRp ngfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687314637; x=1689906637; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VSoisqprkMitd+xVsai6RZ6ObdS1Rg95P89VE+p+UtY=; b=GxrEN06wSGcoPqcYjP1mjITS30yV2OAJdcibj/AUTK/MuOZlvZ8CKkR0k7QBpM13cl SsMamAQMk9ZUoE7cEYLLGkfc4nNLBcH5W3gZSjVbYSdyJCKqFgvas4mHRj5FGdcsRA0N ofPa+AZjUY/RooWaJ64/8Sh9+CSh2r0fekco0AdspBO3/2znV+j4Ev6joHDxvEP9eEqA rzE+dY92Kuvj/TDLs2pOvauUJdo4Ify+EaJFrW6yGr9g35BODtuxEUb1n4d3EeGxrhzs P07HGKBrZTuPnjbPsgUnPnUybGPghPJTtkoXMlXAvZxAnRGbGjOckkPcEaQwD9hWcPhr gV4Q== X-Gm-Message-State: AC+VfDzpGBM8U74Yu0VZlpJRDugdzM7As223G+BjkeUQVmVbo/5s1xyH d6mAxF9K2xXWFMv9kllc440etHqLhBL+9tT9 X-Google-Smtp-Source: ACHHUZ4cGtZIWGCSOfqk64IUkQ1VaAR+gAvtNKd+7LexG8Vxe6vkohlCKB7/9eKUj2PwgRW/GfUVsN56uHKH5gHP X-Received: from yosry.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2327]) (user=yosryahmed job=sendgmr) by 2002:a05:6902:1363:b0:bea:918f:2ef6 with SMTP id bt3-20020a056902136300b00bea918f2ef6mr1472872ybb.0.1687314637032; Tue, 20 Jun 2023 19:30:37 -0700 (PDT) Date: Wed, 21 Jun 2023 02:30:34 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230621023034.431962-1-yosryahmed@google.com> Subject: [PATCH 0/2] memory.reclaim fixes for root cgroup From: Yosry Ahmed To: Andrew Morton Cc: Yu Zhao , Johannes Weiner , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yosry Ahmed X-Stat-Signature: ncsq13f7ptj3xi1ub8gqf9urn1omn8hw X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 0676640011 X-Rspam-User: X-HE-Tag: 1687314637-577148 X-HE-Meta: U2FsdGVkX19rSOUhmPL4LQARZXY9xQrDdwwfQaUBneW2f10nuG47yhOYF5nr1TVJHScvwXQ/x/qJzct0Ewb3I+6HBErTo28AO2oRdgIuIMEVc1ypC21tibdEUs5WVYYxoObgKzK5+FbuddM8J3ADNgWpcOk/sZlrqrjHtXJArcJQQ/Lk2egRm3RXy2vP0tlSDiHjlmQM7ZA7MoVRvi1IIkMvXe8pSz9YgdsF3Cl4LLz81FDyRteCZb8hDWDBN1XT7oRTbMuQ8KjoQjVor3ecULXMH+B65l/K/3SchUz2H4B8MlLSGLOPTGZoGQH/fD7Led6Omg1dX/6Cgw+/3lmrtCFPDLn1rMNxU7zRjYdC+OhgpfHPGP9cDM2Hzkk7uaMoKL7OmyPhpc+1Vy6ThoDQka81q+ykiY0/LoS2FZcAczKJb3+kXaRo+JQkwuKjczUtWKxlGbqJBGYOz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WlF17+suD1u1uW1ETHwFbhTB8Hw8l/hMEj5v3q3/9dzutLBUdLiSzeCXkrUmMB+nelX6+kFb8Kj5K13xfSrweHUHJHIS7A/+ofkuAzbQEHOVuC0Y8MZaoLANgA70KcCugJ/D9MX4Bso+LwppbPfnzhSJcz8IQ0vKRBMmSKt+D1y4r33Icp23iSc4TWNn2BaTiGjjpw7jBIzL+2AV15ax18yo= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This mini series includes fixes to the semantics of memory.reclaim on the root memcg, as reported by Johannes Weiner in [1]. [1]https://lore.kernel.org/lkml/20230405200150.GA35884@cmpxchg.org/ Yosry Ahmed (2): mm: memcg: rename and document global_reclaim() mm/vmscan: fix root proactive reclaim unthrottling unbalanced node include/linux/mmzone.h | 18 +++++++++++++++--- mm/vmscan.c | 40 +++++++++++++++++++++++++--------------- 2 files changed, 40 insertions(+), 18 deletions(-)