From patchwork Thu Aug 1 18:22:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaiyang Zhao X-Patchwork-Id: 13750844 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 75162C3DA64 for ; Thu, 1 Aug 2024 18:22:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0BE866B007B; Thu, 1 Aug 2024 14:22:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 06F216B0082; Thu, 1 Aug 2024 14:22:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E9F2F6B0083; Thu, 1 Aug 2024 14:22:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id CB9B86B007B for ; Thu, 1 Aug 2024 14:22:45 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 5A431140BF9 for ; Thu, 1 Aug 2024 18:22:45 +0000 (UTC) X-FDA: 82404497490.14.03F360F Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by imf28.hostedemail.com (Postfix) with ESMTP id A3986C0015 for ; Thu, 1 Aug 2024 18:22:43 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=cs.cmu.edu header.s=google-2021 header.b=SCWJaqzD; spf=pass (imf28.hostedemail.com: domain of kaiyang2@andrew.cmu.edu designates 209.85.161.48 as permitted sender) smtp.mailfrom=kaiyang2@andrew.cmu.edu; dmarc=pass (policy=none) header.from=cs.cmu.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722536507; 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:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=V8hi5Oxc6nQglE6UFQNvzqLFPNyui+qts8s7PO0KnWY=; b=tgJKISIYozHOZ1hb+2m8n5YnjLHHca+3XXAiF6GhrBW1MAtZQhkZu8gls8b9q3+wsSBMLO e0bObXdMIGM64WVUAts8zeUkJ8K6i0E1p9Jh0OevLooBBsC3T8TIxUu5q2O6fi15cvEY4g lCMr/P+kWfLu+nMSvfKKgSDzVYGvqBg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722536507; a=rsa-sha256; cv=none; b=O/q1tuvRpC22rSMmyMqfR7w52R+1BzIjClHeWWP+mQJpjz5A5pHkQrisz32F8F6i4f3nf2 E2fS6OBIpudNJt3lPOaMZhgaKvoVhTeL7Hr5qGH9RP9Sklio4TvNBfHhOopN+Voqvz/fwH CCi2UcTw0Iml2leVQHaYs/hOhMmlAWA= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=cs.cmu.edu header.s=google-2021 header.b=SCWJaqzD; spf=pass (imf28.hostedemail.com: domain of kaiyang2@andrew.cmu.edu designates 209.85.161.48 as permitted sender) smtp.mailfrom=kaiyang2@andrew.cmu.edu; dmarc=pass (policy=none) header.from=cs.cmu.edu Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5d5d4d07babso3465057eaf.3 for ; Thu, 01 Aug 2024 11:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.cmu.edu; s=google-2021; t=1722536562; x=1723141362; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V8hi5Oxc6nQglE6UFQNvzqLFPNyui+qts8s7PO0KnWY=; b=SCWJaqzDOQNWtWt/lU1a1/doIE+aBjWU9sHyoMU/z1TZJA/uWsko88o1S8wOQKLDku T3VsAl2mByMK+Nu95zd9stoCnmRoTLdutslucWT3SChO7kNac4KEktZi0lKpFuI0Daon YbZA418bRRDEcsKV4DydeFZq/4+kl2H+rfL+tYDPF9YQbESs5tCWmp6ubvQkxAC8/wJh Ld6Ei4hjy5UCChQhJwV6Yix5wf31/zxap++lAsSRPNtf+5ztFWPHZISic+MM7SULOM0p t7cC4lk40wDmosv2Yge24e+RzPhEF37WLSqINbVKmK2TmHzy2FR/HRUN4sjWljJXQAS0 iDxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722536562; x=1723141362; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V8hi5Oxc6nQglE6UFQNvzqLFPNyui+qts8s7PO0KnWY=; b=El8QoTS0AncDToB306z1wcybVzDg/tcCJCcS/U6CwHCFKwsP/Urha+il8k1dh50Aab 7f6GpqbFTLGMe+1K84P8kDRv6dJ1PFoB87hEGMxydVKReU2WqYDMBnyIOoKXUts+K2z9 Zi09PoaIeauyYVY3LEjgE7kddL1MJceQEaObVYi18wo2SCLV8S86y4tnplf/yYuL/Izb nVy8LzZaW1spIiGdm0IAHvSxkTrpKvAa7x57Yry8V+g4pR/Mi3p+S8T82+xOWTlt1fRj w0myelqGz8NDsEWTEbkCTV6NMrLEnwuCAcryK/91jtPqUDg0pUaip+PQ3Rwp66y/M9wL cVvg== X-Gm-Message-State: AOJu0YzEPlJ5OXuenkj0hxFmWUWpJTfK4ZPA6Q89bk7T1BP2z7NrrDFE PDrXBvWCWjM11ed5mEau7Bz0T/bqQG7hIPqkH8qwZTSLHyxO/06KCQxr+MXicVkjQSsNfku1YYd Lyi/+TyH/hYldLPWqzikO2UzBCuv8l672b5ZXzC8kT3svw9FVh7z1Eu41GNmrZrFcLw2sIweE1v c+r05B4LlZ5SQti51HYdw7SX2LhTVaGxql X-Google-Smtp-Source: AGHT+IE0KnSNeC7uOKvSP6cycjxwEPVUgNqI8jv64a8aIoEVTkzybBe8N73hkWs6tO3gFCB0Qdt+3w== X-Received: by 2002:a05:6358:6483:b0:1ac:f3df:3be1 with SMTP id e5c5f4694b2df-1af3ba885a9mr126588755d.4.1722536562457; Thu, 01 Aug 2024 11:22:42 -0700 (PDT) Received: from localhost (pool-74-98-231-160.pitbpa.fios.verizon.net. [74.98.231.160]) by smtp.gmail.com with UTF8SMTPSA id 6a1803df08f44-6bb99adeabasm1176546d6.77.2024.08.01.11.22.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Aug 2024 11:22:42 -0700 (PDT) From: kaiyang2@cs.cmu.edu To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, Kaiyang Zhao Subject: [PATCH] mm: print the promo watermark in zoneinfo Date: Thu, 1 Aug 2024 18:22:03 +0000 Message-ID: <20240801182203.27848-1-kaiyang2@cs.cmu.edu> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: A3986C0015 X-Stat-Signature: qfazwz9yegxtgfw9asgwumybfi8ofc5b X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1722536563-413560 X-HE-Meta: U2FsdGVkX1+t9sjSKQzdT4jeuph3uY0rtyQxnddnHqDSCJceU7+4QREJlRu0DuxQaAqIxZf7E1fMQhsbI/79TJAuL+vi0JwL1wkGQfT60ViL/RUxrGCrAK1F7sFPJsKlyHrdmi3XhlYu6VzDwyx0HcQYvnQhqWyjGy/aFHvmpSw6z7HinvazU39XTtyZm00JK3MKOGqqmPa93vOOPY8xPdr1d67bYkR5m+TTCmvefl4scMKYqGL2HDnFKZjcvXe/qJ83ytD5SAF3VF3wldMmDC3aVXZyiYajJjuiEyiIL/60HZVbOZbpN8KonYxc/XcoWLTSj99DWRkedldXOzL+h+94tBwl9fDD6p82MbEbtuSm9jtNFOElV2dZj0fuFu8kDdTyQLg06p0s3neEi9a+MUZVhcterRKczI4KW06R2tglAoIxfu20+/oDYF8SFfOb8jMoHT5SCsf5ltlfvFiIrch7VzzX/dAlYV9YenzcB/dPeKkWuYWok1QbgbF8S+hGcMjencljiirQq9AMwCmJA9WndymoQJRTrQU3SrQiQqm8jrYRkhERTH6Azc6/ryI/SWZf/ASxTqxytvDMcIT/b+MRNBRiDx1avIBit26/dilcBdrcFY1dc9hbw5xkJFQPTp8AcmmY4tW7hmKiGBexIdvDZr4AVwBEziH3DZFMxkiNSUIRAvWwOJ36KxFGMOSK1aUgxLtYukRG6NBqcF+mYwUW8SYhtIdGTiPG2FLQsNBgZvvZYauc7bLcAe5H99iNYaFmEypTDHQt8EfO5yfiabWyH6yHz28/v0clklEJtZsafvLLqX5GwaWfUWETbwlJYA2EcuhwjrB5ymd1plALJsPJjiq7z9/k7jLthMZ60lWlN0Jl61Eog4TTnS9z391muZc2dq1COiQs47UIcXEtO4QwoOoutMv6oYhmhhwGDigZ9VsW7VD3Z3uScsATe48iPH18FPQr2Yk9DBTLeR/ P3Cd4mQu QhlNT+0bZU75doAFTjwOPTSOG9xNHkP0StbNE5496eInofWrjoNiEyfh+561O3er04fE4P22NasLaosWuVQ0ebDkhseCUNWOUoJXtO7lrXvZAYxBTuAWWnX0wlS9KZlL2D1tvTQSFPmHzU9apHtialj8vx0+pptWSGd2SVx5599DGA/v2RWLm1MIAhFTpGZFeI5afLv6329POP983iKI/FbcEnj1sXWMAYSQMqp+WfzU4AWxt8FCL7sOOWz9bNdlVXedlPDU0+OSA6LJcPgiBxf+Lx2JIteZJZr6VNY37dlJXHMXpAKx3nK0cgRFhUnQawua1s/ryjQ30Illv4GkqVavvgYEjCWmjIRDt1HrhB0t+I7I= X-Bogosity: Ham, tests=bogofilter, spamicity=0.172180, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Kaiyang Zhao Printing the promo watermark in zoneinfo just like other watermarks. This helps users check and verify all the watermarks are appropriate. Signed-off-by: Kaiyang Zhao --- mm/vmstat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/vmstat.c b/mm/vmstat.c index 5082431dad28..2bf95b00489f 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1725,6 +1725,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, "\n min %lu" "\n low %lu" "\n high %lu" + "\n promo %lu" "\n spanned %lu" "\n present %lu" "\n managed %lu" @@ -1734,6 +1735,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, min_wmark_pages(zone), low_wmark_pages(zone), high_wmark_pages(zone), + wmark_pages(zone, WMARK_PROMO), zone->spanned_pages, zone->present_pages, zone_managed_pages(zone),