From patchwork Fri Aug 23 16:27:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Yuan X-Patchwork-Id: 13775539 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 D6A87C5321D for ; Fri, 23 Aug 2024 16:27:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 69781800B3; Fri, 23 Aug 2024 12:27:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 646C1800A4; Fri, 23 Aug 2024 12:27:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 535E7800B3; Fri, 23 Aug 2024 12:27:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 280E6800A4 for ; Fri, 23 Aug 2024 12:27:22 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D8295A113E for ; Fri, 23 Aug 2024 16:27:21 +0000 (UTC) X-FDA: 82484040282.29.FF7264B Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by imf19.hostedemail.com (Postfix) with ESMTP id ED04D1A001A for ; Fri, 23 Aug 2024 16:27:19 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=yhndnzj.com header.s=protonmail header.b=DQHbWinR; spf=pass (imf19.hostedemail.com: domain of me@yhndnzj.com designates 185.70.40.136 as permitted sender) smtp.mailfrom=me@yhndnzj.com; dmarc=pass (policy=quarantine) header.from=yhndnzj.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724430357; 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=q54uHymsuuCJEUwRG3OoSXXb4G9nERztgFbdZCGsU1k=; b=l2lJMP12jcWH73AbhpasTJiX59W8SuQLVpHIrEQqXmLHiXoBuo4lCstH3hkwenFcotwJUd +v8qzobKueq66n0I8x7T+dWN3/WGrpfnMm6myiejTuq09o5inLFKPFzKqO1jcifcYEYM9G hGb7LojWJ30YM1k/Pn6VOFFYxSzgaqI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724430357; a=rsa-sha256; cv=none; b=ZBhsXSCjLwyXiGckJzCSw7YD9DxOW5npELWAuEW75ErCPSLkELj/1zoPT6Hr91tABH5opn LEVjFsyHqJncDxa9cMgIClQibIZokTA7SHydKNoOOG/BOK7zaqGVP4hjj2b3YrxdlE45n7 7OV5dHOze7fPrifY88df686esMWjMlQ= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=yhndnzj.com header.s=protonmail header.b=DQHbWinR; spf=pass (imf19.hostedemail.com: domain of me@yhndnzj.com designates 185.70.40.136 as permitted sender) smtp.mailfrom=me@yhndnzj.com; dmarc=pass (policy=quarantine) header.from=yhndnzj.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yhndnzj.com; s=protonmail; t=1724430435; x=1724689635; bh=q54uHymsuuCJEUwRG3OoSXXb4G9nERztgFbdZCGsU1k=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=DQHbWinRSf8CSE01rY0HlqkE38LF2s/U/brRHorICuBLyeylZpqxeaAgxSWjFF4Bk GzMcMuahFDfIY90587qr4QwIu0Qm/PZOnlvDfWMJporXBGgkzG+Xn0mA8PKjAu+9Us x0ppn3sJfYmNs9baC0DW+jm11o3S2HdS9wyH2hSj4qaR/vmJsHf9E0WCaQCDrVD9Jv elGMu0jSg3pn3KrMGO2UfyWmE0jaHb/To++mf7eX5rMWiOTW6qliZCz7uYCZvwz1o3 /G/RmNPfP8a2wZOx5w38D+DH27NBNp1caftLqeDNqnE4hPFJU/YSsQD1cPhDrecrH2 gv8yWTiimiHTQ== Date: Fri, 23 Aug 2024 16:27:11 +0000 To: linux-kernel@vger.kernel.org From: Mike Yuan Cc: Mike Yuan , linux-mm@kvack.org, cgroups@vger.kernel.org, Nhat Pham , Yosry Ahmed , Johannes Weiner , Andrew Morton , Muchun Song , Shakeel Butt , Roman Gushchin , Michal Hocko Subject: [PATCH v3 3/3] Documentation/cgroup-v2: clarify that zswap.writeback is ignored if zswap is disabled Message-ID: <20240823162506.12117-3-me@yhndnzj.com> In-Reply-To: <20240823162506.12117-1-me@yhndnzj.com> References: <20240823162506.12117-1-me@yhndnzj.com> Feedback-ID: 102487535:user:proton X-Pm-Message-ID: 9391cbe5faffb78cda607cff6563b688bbb16fc0 MIME-Version: 1.0 X-Stat-Signature: tcz6gcppq68ppk7w7aj6mdbkzqu76cc1 X-Rspamd-Queue-Id: ED04D1A001A X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1724430439-698287 X-HE-Meta: U2FsdGVkX1/LzCeXJ2DaDLWNA5uRHbkXIbADfkfq1Gzx/M+jSh3ud5xWs980NyVdH+iEE+eRYxjQe0FGkvWpWSA1u8ITw5iSw3UMQSdMhoayTq8iYwwaEHz/kc6rc8apLAESaJmhdwMtRqee+NLJqbP/kTuKtDxjPWSp2I55KRBEKef8eNJVEaDOqhUUu/FQ0cCInUSpo+cjENnRNTBshHN7dU7zDa4lkJeNRz3zR9mzE3UpQPzMWaWqqa7OV6nnkSOe8rQGNQzbzrAnBL3GqrF1KHRphTG5uIujQPjoILcKrkIjLhbZdE5oax/WO03pvPm+qweG23/l4BO73HGrHvX1OzLt6tk69ZXmRd75fShytslJpKiMJmv8UiZVXsVhpCPjg9x7RqCmpesJQ+qlVcnb6aOlFVINp8KFUZnyXnEAs6WK/PWsruB7QwREa27jKlwF8TnmpsHM6jSI1EszIvBKrTgXe9Cc94639iKpRxBMyZo7eZ84gEZZyA0WSVhcJDvND0A5onaIEroKOgC+xh2EzutdQpdv/o7G5MJmpr+ijtNXz+wijAJJo15wLOqNbHs3BucMkYjFukOeePtxP6BujCUFlacW717UeknQF3465uyLP/zCKoaAxXp7VPVzaDcfL1hO4K/VHJEcfYmhKxoLPk0Vu2YYAdy6LwNdZbN/ITN4XPNsUIk+SiSSCAInDKmPFMUbotBfXKnHBB1LrHejoDe9e7/6uvgwP4Nq15LPNk/oyk+PhY4KTjBTqwb9xSNqUmOxjbW6JsWgMq+3B9dY2rxsV6j2/hiRJEVFIs8JJyaNyh51473SFOHQFpUnAwRi2q8Id6OT04J9ZzRvgSZkmhQUUjANLly3WyYtQNG6aCnDT+AgvYVGyYSrzHOF/lCqbBqxqH7S6NmLZQkrPFzCsC1GGh4s3SBZ5DhdvmBlYhid3NsDZzOhIDkhNNKCHvS/agPYUPqYk7TZavZ eihysK6q sX3Pg6+jf2eHEO2nrEXHbkqeRT96zqDlCLlhpa9BpTtyDsC+yYOixong04h1PvKPegff8QOk4zHn6gqK6tGkURrWHmSz4An/iTz4Hd+Rig1UnPUvqQPsbfAkPvi1s8HRpSgw74k9KDIUti+b0TIlsh5eBsQTRqgFbmHPeBu7F5INk5ydazP1kmBE6rHOPUrozKjOKMUnuSDvPKlFj5Ycn0r5SGWZIK7HTArU/0AL2g4awcB9F7ra/l9gQjE+dtDSY6m/km/gCPTEnmeKKrtdFRIUM27yiQn3unQx2rcrzyTKYAuSag1XlXPFTcYGYTTlrfZfr 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: As discussed in [1], zswap-related settings natually lose their effect when zswap is disabled, specifically zswap.writeback here. Be explicit about this behavior. [1] https://lore.kernel.org/linux-kernel/CAKEwX=Mhbwhh-=xxCU-RjMXS_n=RpV3Gtznb2m_3JgL+jzz++g@mail.gmail.com/ Cc: Nhat Pham Cc: Yosry Ahmed Signed-off-by: Mike Yuan --- Documentation/admin-guide/cgroup-v2.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index 95c18bc17083..a1723e402596 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1731,6 +1731,8 @@ The following nested keys are defined. Note that this is subtly different from setting memory.swap.max to 0, as it still allows for pages to be written to the zswap pool. + This setting has no effect if zswap is disabled, and swapping + would be allowed unless memory.swap.max is set to 0. memory.pressure A read-only nested-keyed file.