Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp53319lqz; Fri, 29 Mar 2024 08:18:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMVnzI8RSVU6gxkgOd51Dzi+CjZ6pX6bqX7WP3W0cai2m6JjCH+EjP/YOjzU4n+20YmUf/TtHy4WigsEyG+soA1+NHq+IiR3GZkBIVSA== X-Google-Smtp-Source: AGHT+IHzp8dYM8X1vZtFUH8CCREClV3WLH6savXx8b6IL2KcADPkwmzp5mGLUTUK4dwKyhpKUWI0 X-Received: by 2002:a05:6512:314a:b0:515:d31f:ce2b with SMTP id s10-20020a056512314a00b00515d31fce2bmr961649lfi.15.1711725507784; Fri, 29 Mar 2024 08:18:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711725507; cv=pass; d=google.com; s=arc-20160816; b=vgSZlEfNALe7NJp1f/lc26YoFbsl0pBnVrbNSxOz0CkCakPwUvJ13Lf36JohFttoI4 53S7l0bWzw0HwPOvdmbiE6ZsYC2S4thTNdBBlJbpmDof4DaQxtQbJPSnioW4ZP5BiAmP CB+BiuRqp2/ijwFYwQkHsrig9+BDLDxhzaomjPI00N54l9cuP1XyFD7yOm6GjlaGSfOA 9hV4GBoYZoRhlxNJR3RDHbkjN5nSdHiaO/m2K3MC5wcrpZLoPpdXBFLCSv7CCwiICxIv qyFaiE30bMmOSSV8eM6QbbK9XZHvF2WChg5QGOIAzjtAQReLTBGHZ7PJU7OI/j4xJ+TX /ZxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:disposition-notification-to :autocrypt:from:references:cc:to:content-language:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id; bh=Ligwf66XswEarubM00FNDudkzKRWb7LvEuEtiJxUKDc=; fh=TLalkvVsdiX9pOqOO4epbSFcxGxvkBq8DxZDNfTjbEg=; b=SpP6I07r2y8in4rBoHcBryVvlEGkAql+mNeYQslLOIea5HWxX3OyZNmlHEu6td1ewK w4qhNAU6AP9XLFLPiWW0v3dwo6ty58o3oiBqn+JFAIvkuz3x43CH6ovcSG3V7SNaNE3t 5YwnibaNau1r2g8RgNoU8NO5RAS9Z+HI0Hapk57a9YFV+w8Iwt6J6w784In5cysz8G/f B0xCN1sCYIcGXNcXsCb7YelmNtjFg2Ggxik0Ef5paTxba/1u7BOTdp8326HHQebPUlA1 oUGSaQbJ7jEdQJsQiZ/Pu/EAeosgWaE5L7LQtETw/ps6pIr7jxdAmsgPZmm+yg1abCwE hLxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=maciej.szmigiero.name); spf=pass (google.com: domain of linux-kernel+bounces-125080-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125080-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gb30-20020a170907961e00b00a4e21a5033asi1965925ejc.367.2024.03.29.08.18.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 08:18:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125080-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; arc=pass (i=1 spf=pass spfdomain=maciej.szmigiero.name); spf=pass (google.com: domain of linux-kernel+bounces-125080-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125080-linux.lists.archive=gmail.com@vger.kernel.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 1E6291F2E315 for ; Fri, 29 Mar 2024 15:10:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FF28146D5E; Fri, 29 Mar 2024 14:02:41 +0000 (UTC) Received: from vps-vb.mhejs.net (vps-vb.mhejs.net [37.28.154.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07D2785942 for ; Fri, 29 Mar 2024 14:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.28.154.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711720960; cv=none; b=ThVrW8B66K8QDEUkcAJWFu6hTk3flQ84LW7taaObC4S87jbWgNnXyUkJuBlTeWKe+IbPmfBi5rnvRdjOhcdnUggvd2Whthp2dOlgOzfDcLun4EG4LdXDmbBid/sfAv4SEN58AGxy+qg4o8KZzrlfGywvQntHP+gv0grBDv8VUng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711720960; c=relaxed/simple; bh=moXcSLyP5l9QfuQYhnXB+leG+4/MbUWOYV17F9rm3zA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jhD9M7fb41MR+AWM4F5l5m5v0K1L9YtXvhXxDRy8V9Cdmj/HvEDxlH3ADwCm7QLzwOUPucE9xCNoVYQlMMhpBjy+1J6/g71HIQasO539EpNh6lkQ52IYNcTypvO90pNUTJDsWn+DpxvE0dcOR6+7jSYdnJ6SVgbTRFMzp+qqRVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name; spf=pass smtp.mailfrom=maciej.szmigiero.name; arc=none smtp.client-ip=37.28.154.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=maciej.szmigiero.name Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rqCoC-0007uh-9w; Fri, 29 Mar 2024 15:02:16 +0100 Message-ID: <19d5cdee-2868-41bd-83d5-6da75d72e940@maciej.szmigiero.name> Date: Fri, 29 Mar 2024 15:02:10 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 5/9] mm: zswap: remove zswap_same_filled_pages_enabled Content-Language: en-US, pl-PL To: Yosry Ahmed Cc: Andrew Morton , Nhat Pham , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner References: <20240325235018.2028408-1-yosryahmed@google.com> <20240325235018.2028408-6-yosryahmed@google.com> <20240328191109.GE7597@cmpxchg.org> From: "Maciej S. Szmigiero" Autocrypt: addr=mail@maciej.szmigiero.name; keydata= xsFNBFpGusUBEADXUMM2t7y9sHhI79+2QUnDdpauIBjZDukPZArwD+sDlx5P+jxaZ13XjUQc 6oJdk+jpvKiyzlbKqlDtw/Y2Ob24tg1g/zvkHn8AVUwX+ZWWewSZ0vcwp7u/LvA+w2nJbIL1 N0/QUUdmxfkWTHhNqgkNX5hEmYqhwUPozFR0zblfD/6+XFR7VM9yT0fZPLqYLNOmGfqAXlxY m8nWmi+lxkd/PYqQQwOq6GQwxjRFEvSc09m/YPYo9hxh7a6s8hAP88YOf2PD8oBB1r5E7KGb Fv10Qss4CU/3zaiyRTExWwOJnTQdzSbtnM3S8/ZO/sL0FY/b4VLtlZzERAraxHdnPn8GgxYk oPtAqoyf52RkCabL9dsXPWYQjkwG8WEUPScHDy8Uoo6imQujshG23A99iPuXcWc/5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bFUkSs8HjrWymvMM22PHLTTGFx+0QbjOstEh 9i56FZj3DoOEfVKvoyurU86/4sxjIbyhqL6ZiTzuZAmB0RICOIGilm5x03ESkDztiuCtQL2u xNT833IQSNqyuEnxG9/M82yYa+9ClBiRKM2JyvgnBEbiWA15rAQkOqZGJfFJ3bmTFePx4R/I ZVehUxCRY5IS1FLe16tymf9lCASrPXnkO2+hkHpBCwt75wnccS3DwtIGqwagVVmciCxAFg9E WZ4dI5B0IUziKtBxgwJG4xY5rp7WbzywjCeaaKubtcLQ9bSBkkK4U8Fu58g6Hg== Disposition-Notification-To: "Maciej S. Szmigiero" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 29.03.2024 03:14, Yosry Ahmed wrote: > On Thu, Mar 28, 2024 at 1:06 PM Yosry Ahmed wrote: >> >> On Thu, Mar 28, 2024 at 12:11 PM Johannes Weiner wrote: >>> >>> On Mon, Mar 25, 2024 at 11:50:13PM +0000, Yosry Ahmed wrote: >>>> There is no logical reason to refuse storing same-filled pages more >>>> efficiently and opt for compression. Remove the userspace knob. >>>> >>>> Signed-off-by: Yosry Ahmed >>> >>> Acked-by: Johannes Weiner >>> >>> I also think the non_same_filled_pages_enabled option should go >>> away. Both of these tunables are pretty bizarre. >> >> Happy to remove both in the next version :) > > I thought non_same_filled_pages_enabled was introduced with the > initial support for same-filled pages, but it was introduced > separately (and much more recently): > https://lore.kernel.org/all/7dbafa963e8bab43608189abbe2067f4b9287831.1641247624.git.maciej.szmigiero@oracle.com/ > > I am CCing Maciej to hear more about the use case for this. Thanks for CCing me. I introduced "non_same_filled_pages_enabled" a few years ago to enable using zswap in a lightweight mode where it is only used for its ability to store same-filled pages effectively. As far as I remember, there were some interactions between full zswap and the cgroup memory controller - like, it made it easier for an aggressive workload to exceed its cgroup memory.high limits. On the other hand, "same_filled_pages_enabled" sounds like some kind of a debugging option since I don't see any real reason to disable it either. Thanks, Maciej