Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp417590lqm; Wed, 1 May 2024 05:02:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWjeQR8pZw4qBjBz+piV1d1TEVJXryUkOD9Cqsfi1N/ioXI8ddC/bR3nbby5pShZgZWUepL/tuxgDv52kSQxr/5ktweBK3ceSwEoolpA== X-Google-Smtp-Source: AGHT+IFIQxytozKOUIq+PgBk5BxAIH9I3QF69FnHQXUDHr1FKxaEUJ9LhSkw1h3Cq3PsBaPYyJfV X-Received: by 2002:a17:906:d18f:b0:a55:b021:c0b1 with SMTP id c15-20020a170906d18f00b00a55b021c0b1mr1533151ejz.9.1714564940708; Wed, 01 May 2024 05:02:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714564940; cv=pass; d=google.com; s=arc-20160816; b=ra3qRn1/H7pYB6R60PbryIjc9auGq+8SNuhgU9E15cwgEi5b1O8zXYSMpamsxHQ+yK V7STL2ljb2sND6ef5QuwMlvXzxDZ7OOgoJ7QKQvS5Oo2GCx+ar46ND/vl+ds52c7jZ9J sbp7EcsEHQArQb5vgqdGKJeW8rX48MdhLighAhCSvRIlAyZv1JiuapqdYT5gx9M6QP0C jUuSoRFs3KOHq1T4L6b7h1u0zs3onmwISMfvIAIQ9jEI9Cs0nKgnx5yFvCO4GzkrRASs QcxmUQX3Q8ym5gqr20mw8w8Cb9UHWe5u1Ns+MlTGg3s1BZaEW0RI5YZBQQA5d7R8DE8G G/Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bfLk7bGUufEMZraSml5jPutCQGtddj/TkwI16oNdBn8=; fh=Gc8BARvcd/dip8FXUxcfzofoym28rJkF8pLV9nLGVXo=; b=WyXEWE484EdIgd/DfoQlHrCyz9TdQWS+N1ipBes6fjruTjpTxjclYhfnN3i6zUaZT3 H5+i+pra0Yqvx4JENNblnWV7jzt/PRKFxklSGT92eyIQ0P4dHsryARxliOkgPp9zL9uX jtR1grzjFUju7W22T3hL5YE56Hs4ziNh+VHnqY4FrV63sF0AtcpIfnjztz3ckBI0/J0w bPPLUJAc9p8H4j2842BuI/vF5skWowcnWnabk1j+AoR+QZnqWC6WGqrg33enX67bnJxw YtxOv50bJxSRcN3k+uuZmQ7rhfSLGUZyqVdVYe2rkLl/AW+kcPDOe/vviTMqS6Kn60Kv txIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=3AXXAEBE; arc=pass (i=1 spf=pass spfdomain=cmpxchg.org dkim=pass dkdomain=cmpxchg-org.20230601.gappssmtp.com dmarc=pass fromdomain=cmpxchg.org); spf=pass (google.com: domain of linux-kernel+bounces-165208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h20-20020a170906591400b00a521be3afe4si17186284ejq.637.2024.05.01.05.02.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=3AXXAEBE; arc=pass (i=1 spf=pass spfdomain=cmpxchg.org dkim=pass dkdomain=cmpxchg-org.20230601.gappssmtp.com dmarc=pass fromdomain=cmpxchg.org); spf=pass (google.com: domain of linux-kernel+bounces-165208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 644DE1F23568 for ; Wed, 1 May 2024 12:02:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B79784D22; Wed, 1 May 2024 12:02:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20230601.gappssmtp.com header.i=@cmpxchg-org.20230601.gappssmtp.com header.b="3AXXAEBE" Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0E8282893 for ; Wed, 1 May 2024 12:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714564931; cv=none; b=YX39AEd2vTiAr24wpZ+/tva22Xl6/6fmd3OS94XKTkiskWN3r9aDIPAyi9R9JB0NlMIfAkulo2aSJ1wuXna0myPeGbjYPnkXIEHhfDtSow9iHbXp22x26cjn93ra2y3tmUu6AOJi6owdhGZDDHJQjYF4Un2QHFv2eT5al2hp1ZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714564931; c=relaxed/simple; bh=kPqVO4gkmQec2j/rZpF8HaGgeJQsy8uBuIEkqskjQSg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MiYVQlb8UEBBp8qIFZOVDeeqUJZzl8OQhHvTTejvgPiGueYQ11N1z0GuiyL/oObMB1mbPKz/nu+8+IYfJybt0KZnz5Xg73B382QxdteO93gfK+D6DmH/c8Kas8uIW0BHAa6BcS5REBW9lL9Yf5Dls8/pzkAXaH+mUHSbXZnDpx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org; spf=pass smtp.mailfrom=cmpxchg.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20230601.gappssmtp.com header.i=@cmpxchg-org.20230601.gappssmtp.com header.b=3AXXAEBE; arc=none smtp.client-ip=209.85.222.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmpxchg.org Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-790eedf44faso278680285a.3 for ; Wed, 01 May 2024 05:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1714564927; x=1715169727; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bfLk7bGUufEMZraSml5jPutCQGtddj/TkwI16oNdBn8=; b=3AXXAEBE5RM1yYhx5YRHTUJtG9CM3OtTD7VJXVZaZKKbbTtfndgirQjAxx1jf/OGKL fOlRq0afAS8k/zrAz1YlMkX/rzufhZMcer2iugUQ8uJkzxRctBWTbhYkTRn5lY2KzQR2 kHVhc+rZyCU2aKMJ5jsTtw/TXU3ZzINTKjFYzxGzB+7MOPn+C464sxOGFB4S551TiJYx zOMBvWBgPsB36dp9HHgZui2GvRYRFpWhnQuTrqt4gTZaiqRngxQ+PvW3CEFovkQ9K0RD wCXnbFRSvwnvSdxcVNbQDNzVK4XJY5ZL/ywJ3V02xpz/Z1isgAjH5I1i9smXaDo/4JEj 0Y2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714564927; x=1715169727; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bfLk7bGUufEMZraSml5jPutCQGtddj/TkwI16oNdBn8=; b=VliV3LRF1OCVHq2jAyF+5Pj8dtQVzBSoRW6IFjV/Rdme+hBP+LeU7VUA2CC19UQtVp ahoqSBxvcfcTTrRkNJOuq+LxBsE3O5qy/8XnmSyGUb6Qe/gQ7fZSR+glkpDe+j4kQfmd IRB2rN0wRRtxQDGTPnbePbinhC/mK6yxf9c2w9e+G1MSf1uMdhulrwnSRUsOj/OWWGwX w0OqYE145UdY3wRRsGNoc4CuD62cdQe/qn5WbRQjv7Z24SJ+Oa+0DUtg6KjF9adX5adl BTgF2cgb+1cdEeUsTNFmr4UjUDolPlQDp/Bh5URisNftoFwumElAvrGggtt18/krQTCp yKBA== X-Forwarded-Encrypted: i=1; AJvYcCULGEdceXR+OMsvVCAWuMz62EPgHevVMHzB6bOyDgqbfeB+N/v2wXRr/QEvzO6F8YHLjb+c/2iJ6GoK83A1p6TcgeQZ9xPTFw72yk6r X-Gm-Message-State: AOJu0YxBcDFERsft8YUmd4GaTHojoIQ1hqPZqFCELU+BOn+SW+xr5H8z NhYh2T6apthLbBgALitpnQFswrhxbeRVdkWU2XUJ3walwqjjoPL+cNV7jwebImE= X-Received: by 2002:a05:620a:2051:b0:78d:6649:4c79 with SMTP id d17-20020a05620a205100b0078d66494c79mr1958138qka.70.1714564926606; Wed, 01 May 2024 05:02:06 -0700 (PDT) Received: from localhost ([2603:7000:c01:2716:da5e:d3ff:fee7:26e7]) by smtp.gmail.com with ESMTPSA id wd40-20020a05620a72a800b00790f5a43245sm2627782qkn.37.2024.05.01.05.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:02:06 -0700 (PDT) Date: Wed, 1 May 2024 08:02:05 -0400 From: Johannes Weiner To: Usama Arif Cc: tj@kernel.org, lizefan.x@bytedance.com, nphamcs@gmail.com, corbet@lwn.net, linux-mm@kvack.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH] cgroup: Add documentation for missing zswap memory.stat Message-ID: <20240501120205.GB2538005@cmpxchg.org> References: <20240501095349.1407643-1-usamaarif642@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240501095349.1407643-1-usamaarif642@gmail.com> On Wed, May 01, 2024 at 10:53:49AM +0100, Usama Arif wrote: > This includes zswpin, zswpout and zswpwb. Good idea adding these! > Signed-off-by: Usama Arif > --- > 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..48ec54627814 100644 > --- a/Documentation/admin-guide/cgroup-v2.rst > +++ b/Documentation/admin-guide/cgroup-v2.rst > @@ -1454,6 +1454,15 @@ PAGE_SIZE multiple when read back. > zswapped > Amount of application memory swapped out to zswap. > > + 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. > + They should go between pglazyfreed and thp_fault_alloc to match the output ordering (they're event counters, not memory counters). > file_mapped > Amount of cached filesystem data mapped with mmap() >