From patchwork Thu May 2 18:50:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Usama Arif X-Patchwork-Id: 13652003 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 BDEB1C25B10 for ; Thu, 2 May 2024 18:53:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4D2D36B0095; Thu, 2 May 2024 14:53:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4346F6B0098; Thu, 2 May 2024 14:53:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2602D6B0096; Thu, 2 May 2024 14:53:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id ECB946B008A for ; Thu, 2 May 2024 14:53:15 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9601DA1D7C for ; Thu, 2 May 2024 18:53:15 +0000 (UTC) X-FDA: 82074353550.09.A8E3DCF Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) by imf01.hostedemail.com (Postfix) with ESMTP id CB3BA40019 for ; Thu, 2 May 2024 18:53:13 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="fGjxzMn/"; spf=pass (imf01.hostedemail.com: domain of usamaarif642@gmail.com designates 209.85.160.50 as permitted sender) smtp.mailfrom=usamaarif642@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714675993; a=rsa-sha256; cv=none; b=5ehfnLR0AJUfsOiFTA6S1eqi7/L7hFj5ybZkFk8VPqp1lY57mfJOmMbMShw001h6jtWFcJ 5XiUxg4YukjY/2bC+msmtRa4+9RGmcjAMfnC1m9qeXlLIqUldvs3nhe6IvLA3crpPonZa1 eaQNydOxBs/RMR8p3jKzn1Xp6RwTEas= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="fGjxzMn/"; spf=pass (imf01.hostedemail.com: domain of usamaarif642@gmail.com designates 209.85.160.50 as permitted sender) smtp.mailfrom=usamaarif642@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714675993; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=EL9h0vU7ssp9YttMIiveDaZq+JG2HkazK/XWU9Wfp/4=; b=BmbJa01BAjlbYeWXl22o9SwFDM0mZarR8R71cvbWdhtZKf/IFjz0JXFZ+QNLFLZk/7K42g fbu2tlCcN3yUUhKcvoXbYHgwtS+RmgxxTsMrL5wf+Z6YD4/xyl+GWTnCoydcn3/33yur+0 f9CwUp//y+3z0/2bAB23VbMzE+3RdQA= Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-23d5df2d600so1148125fac.3 for ; Thu, 02 May 2024 11:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714675993; x=1715280793; 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=EL9h0vU7ssp9YttMIiveDaZq+JG2HkazK/XWU9Wfp/4=; b=fGjxzMn/ef5ktqFn3fcCog5POJyhUWLF8kHvGOuGwA0oUwjz4EPb56Qb1IhBYduOrZ uG8jx4itcW6fG4OO6UApfZYAIY4NXnrS1B7Kf2PbA2f9Gf8quq9geXyQLv6JRstJ44m9 2OvCHVp3HZt+skZBd8XRRKqYcOYXS5/LoyqPbo5GWYLPiJ2xdCsmW0Dawq0edsqjff5F 1ENFYU8gEbYVacfy2v4ksjcNjPFtfHl34zftKV/64J1nOBWDb59dy6t4WK5/sAn8llgE aCNwi6xPxIcjcE8Yju9V+BjsT4M0PIhJqyjoc5ejK9LwUJLW5KDEHmXo9bQsMlh7J9MY JYOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714675993; x=1715280793; 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=EL9h0vU7ssp9YttMIiveDaZq+JG2HkazK/XWU9Wfp/4=; b=IpXCW6AhUHiiKy/8QpSESgF8iwaDp6FinVeMXFDFjkrsCcomSOu3R9L0o+T36oxAKl o1Ty49TzFf9nh+2KKmUpAdNdH8AvuFGemMCWM6SDl05Tpn1WZ7zCOez1mVMRE+HMM1lE oN5Zb7OMbh7gPzZhA0hZx0BogYljBagre1S8yDhBq8p7sjI//ymGcMQ7tB4nYx4R0EKT kicr2mrL4LZX5Rkrt2A+mLKXKjQ3SwabREL7AeeYTVEjSFVTm2q8UQssZINRseeT6GcM NhEykn3r1vULwx+7DmspX5FVS6s9F8kn3EH/Mg2WrGYm/bpVWukc/8Yf6g/PAKHk8VYI 1oGA== X-Gm-Message-State: AOJu0YxuDKboC2Iher+sNMOZ61tfvsQc4OL/aP0c6Pa/isHiMpZ5fYH3 i3wQV6htTysL2AE35M7T9zW6Dt/B2WuLSkK4zMSQApn8yycRFfiF X-Google-Smtp-Source: AGHT+IGcPZp+Wk/lZM9YS9WRMUtyz7gUA3y6FKzoddlervdlWmo36fHDgNqsGInwDiQIqk9Qh2ww5Q== X-Received: by 2002:a05:6870:d0c4:b0:22e:e0c7:3d03 with SMTP id k4-20020a056870d0c400b0022ee0c73d03mr852288oaa.23.1714675992727; Thu, 02 May 2024 11:53:12 -0700 (PDT) Received: from localhost (fwdproxy-nao-119.fbsv.net. [2a03:2880:23ff:77::face:b00c]) by smtp.gmail.com with ESMTPSA id bp10-20020a05620a458a00b00790f7c28019sm576981qkb.83.2024.05.02.11.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 11:53:12 -0700 (PDT) From: Usama Arif To: hannes@cmpxchg.org, tj@kernel.org, lizefan.x@bytedance.com, nphamcs@gmail.com, corbet@lwn.net Cc: linux-mm@kvack.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, Usama Arif Subject: [PATCH v2 1/1] cgroup: Add documentation for missing zswap memory.stat Date: Thu, 2 May 2024 19:50:24 +0100 Message-ID: <20240502185307.3942173-2-usamaarif642@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240502185307.3942173-1-usamaarif642@gmail.com> References: <20240502185307.3942173-1-usamaarif642@gmail.com> MIME-Version: 1.0 X-Stat-Signature: sa7zcrjpxsj8xm59a645qt6dd5goa7ie X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: CB3BA40019 X-HE-Tag: 1714675993-943566 X-HE-Meta: U2FsdGVkX1+yRun+2+8oqlfDBwB6oTYc0iWWk6WP0qm38HOgM4bGHG+EJgZ4uIHXHrl4y3UygVht7WjPzIqF/Pd0jgpcGnLqJrqvTlH4wLzhRiIu76ObMawNVnX73zMfBBUY4XwjOU/W1nttpqmoxl3gpbkQDjME+yadPGIuoGwaXVCtqa4KLCFDz4L0MNUmcFrx/LCmW7Eb1ZR1cYe/i0RXza3zvj3ebYavG+SfGSIhwfy6TSTUv+w6B9jaq27DDpNsVtnVtnLk16zM0SJNpZ/vMI5C7MkjVswvxd2jPkNPITQnP7wyRlnnSE1iVEq226n9Y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X-Bogosity: Ham, tests=bogofilter, spamicity=0.000615, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This includes zswpin, zswpout and zswpwb. Signed-off-by: Usama Arif Acked-by: Nhat Pham Reviewed-by: Bagas Sanjaya Acked-by: Johannes Weiner --- Documentation/admin-guide/cgroup-v2.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index 17e6e9565156..eaf9e66e472a 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1572,6 +1572,15 @@ PAGE_SIZE multiple when read back. pglazyfreed (npn) Amount of reclaimed lazyfree pages + zswpin + Number of pages moved in to memory from zswap. + + zswpout + Number of pages moved out of memory to zswap. + + zswpwb + Number of pages written from zswap to swap. + thp_fault_alloc (npn) Number of transparent hugepages which were allocated to satisfy a page fault. This counter is not present when CONFIG_TRANSPARENT_HUGEPAGE