From patchwork Sat Sep 28 02:16:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sridhar, Kanchana P" X-Patchwork-Id: 13814603 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 90734CF6493 for ; Sat, 28 Sep 2024 02:16:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 536F46B016A; Fri, 27 Sep 2024 22:16:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 322536B016C; Fri, 27 Sep 2024 22:16:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 14CFB6B016D; Fri, 27 Sep 2024 22:16:34 -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 DD45E6B016B for ; Fri, 27 Sep 2024 22:16:33 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 9FFE81C75BA for ; Sat, 28 Sep 2024 02:16:33 +0000 (UTC) X-FDA: 82612533066.23.264C9EC Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by imf30.hostedemail.com (Postfix) with ESMTP id 7B2B480008 for ; Sat, 28 Sep 2024 02:16:31 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OJB75IY5; spf=pass (imf30.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727489628; 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=L8jR7tSPEHVdmc5CyEIJ5dlIVKtxIw4w4VIXD+XVKsA=; b=jTbKOERd471f4BIAnnlPTCLV8nNchUZagcUMz9TfNGDs29pE9KMSDiDHctXa/8Wa5DFBDJ ZxPEK3P8jWl9FlNmLFUsb+hn7kSUv2yO/Fjqbog81Mx2JoqfsoOKQQBlOZjdc7VzB1b3IU R6hXZobA4Y2mQSt5Rgp0zYRXvuXsLj4= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OJB75IY5; spf=pass (imf30.hostedemail.com: domain of kanchana.p.sridhar@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=kanchana.p.sridhar@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727489628; a=rsa-sha256; cv=none; b=b/j7qlbzKG6YJuoGg+stboQXpXMpLGpW57tGTC52XFo4kRPO9/E4q/98jxAIzqlJcrXdtg 0N8UEfadjhyn/1NOjxfmZCLKCCUz1RpQP3Wy75MAf7z++b6AF+YskgU/DwKqJeh8EbskRH PxhOBxDYCGWQgoO7c2LOBvu+T1AuMh8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727489791; x=1759025791; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jeCu3iqu/2EXy9IfjtlKEtm4q6TnkB4czmIDU7q2LAY=; b=OJB75IY5NAzShbSfPcUu4QL/avDSgm2HxPutF1gr7cxTA8kAboaI6hCo GMaDNDM4sgg2P5/ZwvCCnOaXhesGaAms5K+eZan2IA10K/teODc6tw2Dk eAoUQC6U9+Rp2QlkxRhkH04DGFZM+6YsrKmPi6dqwSdH0jwqyzW2p5vbm ajBMr5HA2Mx6T8OkBHNkI3tVMI0Fdxoebf3e/1wvlLWpJf7px7uVsprsv kVPV/78lQ4ZKoJ3IxjM7lIbtRladmiTgVavO59H+++GYyWO8FZPpNLg7A yAmS/Vpif8qrtv3DEaS7n5E7H61XRhbj1jIuElKxWE6/ocbAXNUg8HZVw w==; X-CSE-ConnectionGUID: fahv+hQfSpGz7eIC10RoqA== X-CSE-MsgGUID: v2A1+4ToRjy0GKsMiZHaDQ== X-IronPort-AV: E=McAfee;i="6700,10204,11208"; a="29526920" X-IronPort-AV: E=Sophos;i="6.11,160,1725346800"; d="scan'208";a="29526920" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2024 19:16:21 -0700 X-CSE-ConnectionGUID: cRQ5tnNWR5CUGZgxe6qXrg== X-CSE-MsgGUID: qgNMbP/jRMKqlKVlPbychw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,160,1725346800"; d="scan'208";a="73507136" Received: from jf5300-b11a338t.jf.intel.com ([10.242.51.6]) by orviesa008.jf.intel.com with ESMTP; 27 Sep 2024 19:16:22 -0700 From: Kanchana P Sridhar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, hannes@cmpxchg.org, yosryahmed@google.com, nphamcs@gmail.com, chengming.zhou@linux.dev, usamaarif642@gmail.com, shakeel.butt@linux.dev, ryan.roberts@arm.com, ying.huang@intel.com, 21cnbao@gmail.com, akpm@linux-foundation.org Cc: nanhai.zou@intel.com, wajdi.k.feghali@intel.com, vinodh.gopal@intel.com, kanchana.p.sridhar@intel.com Subject: [PATCH v8 8/8] mm: Document the newly added sysfs large folios zswpout stats. Date: Fri, 27 Sep 2024 19:16:20 -0700 Message-Id: <20240928021620.8369-9-kanchana.p.sridhar@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240928021620.8369-1-kanchana.p.sridhar@intel.com> References: <20240928021620.8369-1-kanchana.p.sridhar@intel.com> MIME-Version: 1.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 7B2B480008 X-Stat-Signature: ijn177ptyd7rf715gjhjjgiqhqfqudyh X-Rspam-User: X-HE-Tag: 1727489791-6474 X-HE-Meta: U2FsdGVkX1/VbLNMCOH31mDQVRsN57MTj8gZtVerIUD39QPyJHvaV+bazMLffyiHZPkK+wmdRhiAjKjdHrJAi9f2N5E196eaLz0DbY8qXi0FRAklRdVWFsopS18Zqw05HjUczbyoW24/wmqMJKsGbPa+zqaKVG6xRUJBRlemmU6QSJrQMjT/rHJSm0z72nC9YpEbolF/r5dhT5l6myhScUxAYHKwsH7QMeN6WarOlahR/002e2JbnkaZY1I4afHxnwFTRbFYvCHtxks2+1OAhkHAboXn9+0Efcgowdl47nJCUJ9p5UyLpbUjeFWuce3aF3b1XR6Jo3qJrkwLdNfuc/pfuEOPw5rSwEnCPdiBg0CeZVgKrHBbjrywUSpbDObuh9xXQw/3nHW2J35FIeu+8C3Pkw/DiTKrHmk2W2K8hZYmzqHVgHIb0zGccgbUZUiuHCOlXIFVkL/fyp8Yx00bzP23BcMGsYNY0UhsU/4Ij2yOUusp27CazXqNYkaMfijTCFWxC92+pnC8ha6K9ABEAtHIysUbe8ygbaEqCOrQsDsQYtndXhzvV/mhiZM73PXMJflBeOzZ/b43fjhh+UCq97lK0Id4QeMtn7qP0vFE1b/esxV+bcVP4/3b5ySxg7lnZ3qvtCsETGxU+vSQ1e5nswOoIrGsnO11z9QT8eGoxGu8a0iHcD6gnJ6FCenuRNnpxyRx0jikAAMg8b3mQhKcUEuS7nAbsTqgfVqR+x536mKy5baBeu/thb558Tc0nuPS5iIJD15ZTGlTeQDl3VcYXrtNtSoFVd0z8xdTAxAqnkKrXnqeDwhTbVoMlcFAMGTGxhI/PyZRUkYUBRCVAFLlKlim5jEpH4xGty8N7+cm6QpZRQFpgQ9qFhDcV16fKOPIexK93l2ZOxvgEL5g0H0XFjIQJnQNOmGVCwWK5VNxKeiTgAFAtULDdHGJGhnRzApX0YvA6Z/JPgOfa5KXxQX agqMJi94 /vnQ+S4RbOgNdiWRco1z5/nWkgoyLnEw3PP3SE+0NzWJzAXfkFTQZc7bcePupwcQeymp5kFcLTbvrD7+0BJtegOclCXcFjcto2SlseH3XRDZ3Jh2oWdiDY1bmr2cRj7aqTrtppgAtFak/lryXV2wVGN/X5QmD/tl7cycqaeZJMjaaxiLh+wgVWdYoxA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Added documentation for the newly added sysfs per-order hugepage "zswpout" stats. Clarified that only non-zswap swapouts will be accounted in the existing "swpout" stats. Signed-off-by: Kanchana P Sridhar Reviewed-by: Nhat Pham --- Documentation/admin-guide/mm/transhuge.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/mm/transhuge.rst b/Documentation/admin-guide/mm/transhuge.rst index cfdd16a52e39..2a171ed5206e 100644 --- a/Documentation/admin-guide/mm/transhuge.rst +++ b/Documentation/admin-guide/mm/transhuge.rst @@ -530,10 +530,14 @@ anon_fault_fallback_charge instead falls back to using huge pages with lower orders or small pages even though the allocation was successful. -swpout - is incremented every time a huge page is swapped out in one +zswpout + is incremented every time a huge page is swapped out to zswap in one piece without splitting. +swpout + is incremented every time a huge page is swapped out to a non-zswap + swap device in one piece without splitting. + swpout_fallback is incremented if a huge page has to be split before swapout. Usually because failed to allocate some continuous swap space