From patchwork Thu Aug 1 23:25:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaiyang Zhao X-Patchwork-Id: 13750930 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 21FF9C3DA4A for ; Thu, 1 Aug 2024 23:26:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A9F076B0089; Thu, 1 Aug 2024 19:26:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A28526B008A; Thu, 1 Aug 2024 19:26:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8EFDE6B008C; Thu, 1 Aug 2024 19:26:16 -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 724356B0089 for ; Thu, 1 Aug 2024 19:26:16 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2631A40638 for ; Thu, 1 Aug 2024 23:26:16 +0000 (UTC) X-FDA: 82405262352.06.B7E6EB3 Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) by imf21.hostedemail.com (Postfix) with ESMTP id 358A21C0012 for ; Thu, 1 Aug 2024 23:26:14 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=cs.cmu.edu header.s=google-2021 header.b=ZznqGS0v; spf=pass (imf21.hostedemail.com: domain of kaiyang2@andrew.cmu.edu designates 209.85.219.41 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=1722554768; 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:in-reply-to:references:references:dkim-signature; bh=Vm7vJFFTAnvPDDJduBcEecAI1O9HIqVvzl3mHBStLMA=; b=NyiZkLGOa/JB2vdxfHyIjzkc3g8MRvfrKR4HGcQcrIixUy2H3Wi3c9kCAyM1OspUU0cpq/ LCsyYT0PuN2WhGzkt17qLs1l/fjn3bkWJErh5Ssw5YSoecyN6T1nI2eLPUlTVRDhTM8wtl nosoGmksEpYSOOKWmJEImf/Cw1wm+PA= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=cs.cmu.edu header.s=google-2021 header.b=ZznqGS0v; spf=pass (imf21.hostedemail.com: domain of kaiyang2@andrew.cmu.edu designates 209.85.219.41 as permitted sender) smtp.mailfrom=kaiyang2@andrew.cmu.edu; dmarc=pass (policy=none) header.from=cs.cmu.edu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722554768; a=rsa-sha256; cv=none; b=hYHPsuAx9EH33dXRLRHOcYR8DHQOrSPP0PGamNEwSFT4SoIXL5pFhPr2uNvOfRiGpzieTi 5qsm7uW8byXsWzCEG6KGxHg9ZlqsOm8N8F7c5yPWXIXtPsstFwQRoDgQWYAnbdgm1FuwpH kiw5oRtpgrxwUm+gJixoL/HDnCE/R6M= Received: by mail-qv1-f41.google.com with SMTP id 6a1803df08f44-6b6199ef089so43415526d6.3 for ; Thu, 01 Aug 2024 16:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.cmu.edu; s=google-2021; t=1722554773; x=1723159573; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vm7vJFFTAnvPDDJduBcEecAI1O9HIqVvzl3mHBStLMA=; b=ZznqGS0vh2mSHabyK/yQcklancXmlMLLucTJHK0NhGWvWH0G8yV7hEjRnJKdU6jN0a MTMfclGZ+C42hN3jOiVmdTzrNktMyXKVCTu45pJu5AwyeC28xsu3FCa/PfHW17OGir0q GAl3kAMNGtEfSVNs7aFSjPZmhvLbr4BIQCsQiNnFxgNB9l94X2xqubvcyOtQWZBJpVgK Uy4f9bTxvFgCmbV2hmm3yUQlhin8vqSjqSO8pygmpVCRyFsEPQ4CEUXVGwHyHsMss17J BpERs0duXk7oDKPtqe9EIrF5QhkXGpx6tnLRbHjCAv/CFxpInzXcbOLttOWb37OZsV23 i9yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722554773; x=1723159573; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vm7vJFFTAnvPDDJduBcEecAI1O9HIqVvzl3mHBStLMA=; b=dAlHAHT1n/8rS55mAAINd94mZoQx1nIRGpaLPRO2bw2ltGP09BwMzk/cdMWaFM1ZVO NyxyUT+H7LERn1E7C4tiAPPMgl50kdMEdn35iWwb7+H7jCEg5D2stv49iRsOVstTh15q n3Jz0d1lUmqhH+4a1CTYDbrADRgno6iNHloF5DFfaH4hrVa9pilFhnY7vhKjVpVavloR wa5Q7hfbF/eOv0G+R/6W0JLvu7kNDtUioaclf/h4jDmzHDfV3EBwNp6xbfwHrxJgyp3E zWU9WS3MqhTdQfr4sR3BMr9sY3XggcqoqSoTtOPqEQL2jNB5b0ZbiT/VdPgCqzmrbdGg lpvg== X-Gm-Message-State: AOJu0YzR6g3nabNgUu0d4w4vw0c1MAYHig1FdeIUr8W4gIKvLUjDRZBo /Yd/NIlR7Y2soU0qdL+Y6Og7gglGdhhZUe46wt8qtASbzKz2+A92W8lbL7fRZbKZ3JtuvD7iO6u o5kSiRlAhu2Zbo6YR25G4ntYeFA7+w6zR+0x0PVWuXHOukI6W7efE44t5TJNsQwdlBwqRe8r21i JW70GZhh6VOFpKEEGQxnh5ZqXa7fUiD15W X-Google-Smtp-Source: AGHT+IGHhygwN+wNz8vj5F5y7m52eGfYBqbJ8iOT22crhomoXLx/Uaw41uuWRQ8TL2pKshDp1zIqdg== X-Received: by 2002:a05:6214:4697:b0:6b4:dd2a:aa44 with SMTP id 6a1803df08f44-6bb983d697fmr22533296d6.37.1722554773166; Thu, 01 Aug 2024 16:26:13 -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-6bb9c79af64sm1488256d6.37.2024.08.01.16.26.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Aug 2024 16:26:12 -0700 (PDT) From: kaiyang2@cs.cmu.edu To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, Kaiyang Zhao Subject: [PATCH v2 2/2] mm: print the promo watermark in zoneinfo Date: Thu, 1 Aug 2024 23:25:48 +0000 Message-ID: <20240801232548.36604-3-kaiyang2@cs.cmu.edu> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240801232548.36604-1-kaiyang2@cs.cmu.edu> References: <20240801232548.36604-1-kaiyang2@cs.cmu.edu> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: 3cq1je8hm4gsodrn68ti8o4bp374bkuj X-Rspamd-Queue-Id: 358A21C0012 X-Rspamd-Server: rspam11 X-HE-Tag: 1722554774-60501 X-HE-Meta: U2FsdGVkX1+ztenboJyXab32Leg+gQkhbopKKSzOMxLd1QoylzhVHuJPN82qIV01A5BjtQsgXJOJCZC5LGk2MLOc6lz07i0mJvcuRijIFqwBa5+bzoqbtx7YEUNiG0vKz3FyEKG3ZAmBFMAHKJRJpi/hqqXoRXwhPMtUAs+MQ60MXh8cy1UHfhrkKLoKXhUxRFt8WXUppXYj4eAqHWH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NnaOi021k66xqQf77TnVn/h4YEwtNfuiBRj0ETt2rl9ANpJLB83sMqgisZ2eL5Ghipc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.005702, 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..4e2dc067a654 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), + promo_wmark_pages(zone), zone->spanned_pages, zone->present_pages, zone_managed_pages(zone),