From mboxrd@z Thu Jan 1 00:00:00 1970 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 9A8D4C197BF for ; Thu, 27 Feb 2025 19:12:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1809D6B0088; Thu, 27 Feb 2025 14:12:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 107366B0089; Thu, 27 Feb 2025 14:12:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EC311280001; Thu, 27 Feb 2025 14:12:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id CA5786B0088 for ; Thu, 27 Feb 2025 14:12:57 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 764E4141C6C for ; Thu, 27 Feb 2025 19:12:57 +0000 (UTC) X-FDA: 83166671994.11.76862B3 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) by imf19.hostedemail.com (Postfix) with ESMTP id 98A081A0002 for ; Thu, 27 Feb 2025 19:12:55 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=a5AoxiIH; spf=pass (imf19.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.173 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740683575; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4GOHQJk3YUfcrqiLzuEZ20VE/FeleMmsKoRU8HGkVGo=; b=shoZEV7kzbq9GkowozHBnFknOJvOlXYk1+XW+SYLDsourhQGVnhCQap8BJfZSeSluEQpUT YoFhdeVfPH57ffeTCfPs63Ux73jGoUsJef0pV1YTsjefY/3S1q5WeTj429pxuLIVsaDEM0 lheK5Xfkb1mRPzls8ASOPmi4ot5AknA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740683575; a=rsa-sha256; cv=none; b=IXNeR77i5scPOKFMLszjDlHpZ9+15zM0+sd+GR1DBy1Pdjpl2rKjJYHEz48BkKYarkvfMa dyzOzyX38MeEOTUWAKibWMtSHvCjuZ6N1+Isp7UGOz1oeV30me4LLPXtH3uGYuf5NRdLsF VJ9e7ZFtGDjHYJHqcZyAHKVbo+x/5NA= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=a5AoxiIH; spf=pass (imf19.hostedemail.com: domain of shakeel.butt@linux.dev designates 95.215.58.173 as permitted sender) smtp.mailfrom=shakeel.butt@linux.dev; dmarc=pass (policy=none) header.from=linux.dev Date: Thu, 27 Feb 2025 11:12:50 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1740683573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4GOHQJk3YUfcrqiLzuEZ20VE/FeleMmsKoRU8HGkVGo=; b=a5AoxiIHHvuOHihCLev1Nj57wARcGYHOWa/1STY74zAUpgLnYSFO13r80jGDlpaSSHQlOZ JRHzkCYy1ifp5Tg5m83rM/y0YfhALiPNQ1GIvLX/5VV9Z6zoXy7KhDqZwfrQcjnSgYN6H8 CygQpjlJW9nblnIOCVos5QT3CgNGplo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: ying chen Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/vmscan: when the swappiness is set to 0, memory swapping should be prohibited during the global reclaim process Message-ID: <5u6rwht2mdwi3t4x3r5gtelruihtvfak24ci32moh2v7z52a3g@qkr2jcjgh4dw> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam02 X-Stat-Signature: udt47db4h9y1hdsbysonj7um8psb8ug8 X-Rspamd-Queue-Id: 98A081A0002 X-Rspam-User: X-HE-Tag: 1740683575-751209 X-HE-Meta: U2FsdGVkX1+dstKDCiC7wCrjvsHqhXKikHzrQJgBQaj8D/ppO+5llerNO5lrM5n87ybDn4QmLMlN6ZXcMd/Ix5lhncd9PqDWU9qg4m8qLukSqtandM9Hm5BQ9AXa6Yid4TEcrmzlEgT0gNApPXOViwurOZelZkK7uCosZvp8jjJNYhjZHHairSo3/oLcR4T3jVQwQin2UMajRGDzmeE478eVyTEIiKBsFAezEl/AnnnyFlkKNsnWquq2izX+J5gvgpHmOsxat+a3UfxZqSK1mpm8ST1TgFh3IFxifBtteKZ6o7JtKAptJGaRcsJPi7BnD/RHJdNxs+bbOvyKnV+xcGuHrvMHCHy7iIWVJG/Lb6QcevEwH76aJQmEf55XbZiAPBBVOXGMtBwEwa9xZIhUOUUIv+6PJlfvmd2y9aagSAXjACpyObEVxK9Oo8BwBqHYyyyXZEu7JP2Oqq9YZTwyoN+mBwQU2oiqC19xkajKLxYSr6BmB4rizjYVYQzKoB+bfUzwMtCnWIR4oZVBU6coh8WDzK1WGazZbb4xpV93/EF2vwj3OSIlktualvu6qmc8ARTE8swij9coFuGAjYOQlV79o5wV+58g0vx4fu3a118X+6IQgdq1RvF4cygQXr6gx11wj4I/UEGyyh0E2wEvbe6NrDOv9WdRy2RB4u9GiLZ64zEqVsu6siEs5PqVtJz63TMRBS9YkquaPVzYln0X+P9bC+Fs5q/o9WSLvILctdMdehRIx6Ahgnxb9KnT6jpd1hK01aQZQgdAih4lKCz9UwtK/C1MEwg8HIIMObPCPa2WjKCDi66TXjZoh1jFvAZm6Eirmp8JN1tlgJCc/1tm/4GddgjsQyMcqshmlDHgGL9wZqOiPrd4V2OEw9YcI+1K4uBXGGYI1e+7fMniPCAb0yuYqA9KkZjVfJP5TTjCUpohnVGjBZPcq6GRDfO1IRg9SyMl1zLGCB5xRL3pzdY fnP+zWJD tsmLbN0HzYh8HNVxeezP0Dt4OLncXdyiSVR0R1azZlX8E6Gzp2iq26aK1lVodFGay8Qc1a3FYMJ0IH7/iNoCc7tp8gpKNa5//sN95XQ5cjatZLTwjc52Vs8vmE4zVpPH+TBxm/lFS2I5YfFIeY4t+n3B9AxtdFwhHfpjx31VdDyenWjHfBQJ6LLG/YtdQwFLJcYe0M6qPzy+ybvy2BQvgaU4K1vgpCqxcWG2fSssuvLWyXoY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000095, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Thu, Feb 27, 2025 at 10:34:51PM +0800, ying chen wrote: > When we use zram as swap disks, global reclaim may cause the memory in some > cgroups with memory.swappiness set to 0 to be swapped into zram. This memory > won't be swapped back immediately after the free memory increases. Instead, > it will continue to occupy the zram space, which may result in no available > zram space for the cgroups with swapping enabled. Therefore, I think that > when the vm.swappiness is set to 0, global reclaim should also refrain > from memory swapping, just like these cgroups. > > Signed-off-by: yc1082463 It seems like you are still on memcg-v1. What is stopping you to move to memcg-v2 and use memory.swap.max = 0?