From patchwork Fri Jan 6 22:00:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nhat Pham X-Patchwork-Id: 13091867 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 BAE38C61DB3 for ; Fri, 6 Jan 2023 22:00:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EEA648E0002; Fri, 6 Jan 2023 17:00:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E996C8E0001; Fri, 6 Jan 2023 17:00:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D60DB8E0002; Fri, 6 Jan 2023 17:00:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C9C4B8E0001 for ; Fri, 6 Jan 2023 17:00:20 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id A1E6B80ECD for ; Fri, 6 Jan 2023 22:00:20 +0000 (UTC) X-FDA: 80325743400.28.A94EA4A Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by imf01.hostedemail.com (Postfix) with ESMTP id ECC0140002 for ; Fri, 6 Jan 2023 22:00:18 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UrM6ujdk; spf=pass (imf01.hostedemail.com: domain of nphamcs@gmail.com designates 209.85.219.53 as permitted sender) smtp.mailfrom=nphamcs@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=1673042419; 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=g6DgrH0Sk4KsUxnwXEKBG8ESnSK8kFufSNig1ESrwiI=; b=3yrK9LF3u4eTK73wtzdd5dphfAo8GxBNSOc6MI9gn/pexr30KIJE3lAJvAFE5CFnf8OyaF +59gaJPqkUQlffbshFZ7PRYwOU0vOFgd7VeYMK1UBlDWae1qStPtnvz1mimZd991cO3Xvq Dfiv57ni5unBkhqGBdJ2FobHwHrQe8U= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UrM6ujdk; spf=pass (imf01.hostedemail.com: domain of nphamcs@gmail.com designates 209.85.219.53 as permitted sender) smtp.mailfrom=nphamcs@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673042419; a=rsa-sha256; cv=none; b=aiG1bdGdkowmykkBcCo00azFMKwy9nrGRDseIyte08uL1LcZPmq2Ox60g2+P07SsOJxKuE oN1BzDEq/FKRYcMDUkeE8t3xVcrXVMzB8ICD36vvmL0aDLcadKgA5BGFL5oT52QkrQL0WS UsaU4Y+whi9tSD12k5Ul76rMURHTg50= Received: by mail-qv1-f53.google.com with SMTP id d13so1884253qvj.8 for ; Fri, 06 Jan 2023 14:00:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g6DgrH0Sk4KsUxnwXEKBG8ESnSK8kFufSNig1ESrwiI=; b=UrM6ujdkaWodaW0zftdlr+Sk8JdskA/LGrsqC+Ci4a2cmyshvXB0PLKPP31DLrNOCK RPu4QQC1GxPFOrn05qkxzEoOmRXK8TXobDT29PGtUOvf6Rpn9V8IMODIeA+YN39JxS1c 7rfwhWP5boSSNl7OKw26l4TPMB4WgQ+nTS/kOV3w2GpeqH9BAdktkap26TQcOaLvQTbl GnMIQ45eSQD1/VWmW/3aPkvSvXn/o6rsVIDCl8L1ClPOV91T9+WelSiweMpnGO6rotgh xHlj+qQDpUi9FXldYbPezRUcShQGesD/glEneRWxaaied7h7K2CJVaDdR1nPuPCutvmH seRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=g6DgrH0Sk4KsUxnwXEKBG8ESnSK8kFufSNig1ESrwiI=; b=b0jMlmByiZEhmpobB0uBd7a0NiUlRMplea7RXlQqCalXoaDJ89Im6Va/3HdugHvtam lebIiHQnzV3xvF6Q4JD5qDQ7AwcjgF0yA/nzLXxc4PI83eu/SOZxIq6VmlrDs0SACu2i YxG9zEU/cMb+kA8A6BKRtkjHfvDB2Xt1gcFYH37yphKqjeLwEX2dQtYB0Tr05D3XB9DF tK8Q888VzKXI4XbF/Plhzrx+dhEvwT+UdDKkUWZxMz9MaKT1e0cdPxl1VrUAc8pvFIxD IwKYVdwIAODE/Crqa+IhfgkvNijQu/sGM4Rw/SiJGcmWJ120U7FDy+bq94S2Wf8vyLlO MkCw== X-Gm-Message-State: AFqh2kol7MVEhZTwYH3AZwkuxwdGEtMX8z5yGb77mZl8bLTZ1xOCS8dV 9oN58XrrQi2Av7O38PoSr1s= X-Google-Smtp-Source: AMrXdXtxtyTe7T1goD59WwRliwzvvtUp/pYQxl+gVZnkdrZ3UrwWOeczyYQJ6N68vi/MpSKeNy3U7w== X-Received: by 2002:a05:6214:b32:b0:531:b260:dc62 with SMTP id w18-20020a0562140b3200b00531b260dc62mr39043722qvj.13.1673042418031; Fri, 06 Jan 2023 14:00:18 -0800 (PST) Received: from localhost (fwdproxy-nao-007.fbsv.net. [2a03:2880:23ff:7::face:b00c]) by smtp.gmail.com with ESMTPSA id h10-20020a05620a284a00b006feea093006sm1172952qkp.124.2023.01.06.14.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 14:00:17 -0800 (PST) From: Nhat Pham To: corbet@lwn.net Cc: hannes@cmpxchg.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@meta.com, akpm@linux-foundation.org Subject: [PATCH] Docs/admin-guide/mm/zswap: remove zsmalloc's lack of writeback warning Date: Fri, 6 Jan 2023 14:00:16 -0800 Message-Id: <20230106220016.172303-1-nphamcs@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: ECC0140002 X-Rspam-User: X-Stat-Signature: b8qcpaxcmtpmhifepa4g33tppuh4wcnr X-HE-Tag: 1673042418-811387 X-HE-Meta: U2FsdGVkX1/AHU5X1cPPOB5uJS9V18mMGPFDlYU5WukmUj7oW+g7lV3fH/u7cRfxTI4R1blwHEqODYESNdq5vg46FGPrw+QY2opjo3tU68Fz2U/2nH4ItU+BX5iZbrK4EHk4+/jeIHSGMd9NnInYQP1Tn9TYnRp6eDtuTCCwE/IiO7E7gm1Z0Qmt5W/lCra/CNDIPJnHaCWwN7QzXrxYWOP0j+WfyoZRP77/2saMZq3ZJN9Bpx7fXYSpc+CpvNqLZBOU2+ABa6zCjEAYbhZChe5SjhMPH79FsI+ZiClZPBk7RKsMdBYX6ezZ74i9Qd4frPVqD20x1LbH/K7KrxnBqncZ/+GbWBXWzUEMruREZEuhZ+/BiTBQGcM+0t/llVRE/ZO/ITJjJAke2Yb7saJC1whXDkO9fAx1w5kWUItk800aP0upzj7KJ9zMPw/M/NjfdkHnkEjey30ajfKBwBORp4cmKhQrZ/kR+G/xaHA4AUXHNUb8A2KzzZV5QryTACubLjEmuwBJrRqQdrbQJ6m/iwFc/SHo+snraOTROE5mgOEGB1Vs8U6Lc+8+yx29LXfgTMVY3hnvtpQeXAsG/LrcUvl7cn5pJQXW0EnaawL+9oufKExYv1NvyNfDH5mtUDOfnTCzYkBEprN2CyVjSWMg/a2NMJkUjLob0NZYllbyOuUEOHVFGtzbQukxvVNyBWRTgLJP6nUKXaaeyvIa/ru8s5LIxdbuhmRi7Wz+j9uKYuOB1+fwPj67/TdGvAXexhAMEa6DSm+ktsmK4zOb3+Ir6q/ciFMJvSBOgaxP857lmVJ5+C3Qol9yjE2vXL6SNUVRUgZtjnqTt0KgYM7j+DSLiQCe+pmkB5bERIdN+BLGi4dodpf2XSujLneatBJbw9M5JVp1gL4i1n/ZCGuUBpsul0J5//O2LN8BwZPSwWJ0qCD0mrJRj9zpoyuw/COOVaIlCY9/OS0NvcCW2shphMu m/11MD3i vltCIdTI4D5rKbpjbeA8WUruCFBAv085MaB5aVEOiZ4AytFJ4zXrsLQEgPEu8iX7Q1RKMmUAZyHD15ZY/SjK6mInraw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000033, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Writeback has been implemented for zsmalloc, so this warning no longer holds. Suggested-by: Thomas Weißschuh Signed-off-by: Nhat Pham --- Documentation/admin-guide/mm/zswap.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/admin-guide/mm/zswap.rst b/Documentation/admin-guide/mm/zswap.rst index f67de481c7f6..6dd74a18268b 100644 --- a/Documentation/admin-guide/mm/zswap.rst +++ b/Documentation/admin-guide/mm/zswap.rst @@ -70,9 +70,7 @@ e.g. ``zswap.zpool=zbud``. It can also be changed at runtime using the sysfs The zbud type zpool allocates exactly 1 page to store 2 compressed pages, which means the compression ratio will always be 2:1 or worse (because of half-full zbud pages). The zsmalloc type zpool has a more complex compressed page -storage method, and it can achieve greater storage densities. However, -zsmalloc does not implement compressed page eviction, so once zswap fills it -cannot evict the oldest page, it can only reject new pages. +storage method, and it can achieve greater storage densities. When a swap page is passed from frontswap to zswap, zswap maintains a mapping of the swap entry, a combination of the swap type and swap offset, to the zpool