From patchwork Thu Dec 16 12:46:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 12680999 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 5AC49C433F5 for ; Thu, 16 Dec 2021 12:47:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 924C76B0071; Thu, 16 Dec 2021 07:47:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D53F6B0073; Thu, 16 Dec 2021 07:47:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 79D226B0074; Thu, 16 Dec 2021 07:47:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0227.hostedemail.com [216.40.44.227]) by kanga.kvack.org (Postfix) with ESMTP id 6D1326B0071 for ; Thu, 16 Dec 2021 07:47:26 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 21C6D8249980 for ; Thu, 16 Dec 2021 12:47:16 +0000 (UTC) X-FDA: 78923632872.20.126A664 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by imf03.hostedemail.com (Postfix) with ESMTP id 5017420011 for ; Thu, 16 Dec 2021 12:47:14 +0000 (UTC) Received: by mail-pl1-f178.google.com with SMTP id n8so19361838plf.4 for ; Thu, 16 Dec 2021 04:47:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yBoygTa9ppwscbYcEQLWH8s3/BY3g0COlZ3ADPgKGvo=; b=lNJttLeyMLF+OaPanMDpzbGz9+2Cqd9Ass9aQlbYntoydW3WRuW4NcYugOg4+5pej2 REexNq1FlOfcGGOuGuLkXN7hnLWE0CebXFEHAQaHVaqKchQrzlAdF4sTeXoi5mXbExvf AHctvOKA+X9/uiGqM2am3QJjc7ZK7ILxJvsb0Omt34Ju3hH9HBE67vVQiG4axrdPbV+k ZOORy6q0hPJHMwHTNxIlMwgxj5ut0Ao+d9T+9DOkMSDcJeV15pj4qo7cTVYrN/LNU8MM qrfur9oq4DGC9/QNO2A7Lbki0OMWx40ngBxhXb8NS8aSRIn8TBItg1UNyNgbt4rRL/os NR2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yBoygTa9ppwscbYcEQLWH8s3/BY3g0COlZ3ADPgKGvo=; b=3BRUKqxJQ4063tgHZu4KD9wMhLbajgorpbZMPhIUsU+h6m2kxH7KzAhkK/4fygqm0s aLIkAX4O9av70AtKISxezqt+a20oy7ITkvghscVXWTxugUTDX4M0wZYHYXCHbhCFsqvs gtsxPWsdNefEiJQb9xaJGAXqsCZD72p+d1YqnR2K+ZaWu41xBohWiLjlHCrfJPsQ5JKR JuiqKbYIMO9QYOeeAs0GeWoFDZjy/MprFY78AhsdpVB2lBwPNeWupI6rvwqdJXhYrysx +iXf2fCizW6Kh0kZJ6OX/iuc1U3aowUm8iDZQMcXyIXLpgC/xoLqFO3uAXiZlpScvgJr O4cQ== X-Gm-Message-State: AOAM532m5kdcj/gel0F4TdpTx2/13KW/aSb+92ZWVAZ40fgXHJogwZX1 5hEuon3za9tIBu/YGeq1085ulQ== X-Google-Smtp-Source: ABdhPJzPCpxDFFpCAqwOXBWbLaCdKjszL0hQkZ6ydk8xbz35uU6aSSFaomhdVNHstYQoJQmRn/7tuA== X-Received: by 2002:a17:90b:224f:: with SMTP id hk15mr5915749pjb.173.1639658832742; Thu, 16 Dec 2021 04:47:12 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.243]) by smtp.gmail.com with ESMTPSA id h5sm6154309pfi.46.2021.12.16.04.47.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Dec 2021 04:47:12 -0800 (PST) From: Qi Zheng To: akpm@linux-foundation.org, gregkh@linuxfoundation.org, rafael@kernel.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com, Qi Zheng Subject: [PATCH 0/2] add MemAvailable to per-node meminfo Date: Thu, 16 Dec 2021 20:46:53 +0800 Message-Id: <20211216124655.32247-1-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5017420011 X-Stat-Signature: fpo4yj5n38894g6q6piduojftfddcc3j Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=lNJttLey; dmarc=pass (policy=none) header.from=bytedance.com; spf=pass (imf03.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.214.178 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com X-HE-Tag: 1639658834-116143 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000017, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, This patch series aims to add "MemAvailable" to per-node meminfo. This series is based on next-20211215. Comments and suggestions are welcome. Thanks, Qi Qi Zheng (2): mm: add MemAvailable to per-node meminfo mm: reimplement si_mem_available() drivers/base/node.c | 4 ++++ include/linux/mm.h | 1 + include/linux/mmzone.h | 5 +++++ mm/page_alloc.c | 44 +++++++++++++++++++++++++++++++------------- 4 files changed, 41 insertions(+), 13 deletions(-)