Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1348739lqz; Mon, 1 Apr 2024 03:38:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE2yPNQx8MtMBhh6jo5dsvQiODFOG+kM+5kNsb1bSJVrZXzRZ+FHhDdnEfcTMkRFJBexxr+iocmaDKJNvUSp6/e1HpH/FTMZ0KkKP3uQ== X-Google-Smtp-Source: AGHT+IH0+0zd+RRQKpteZpobl5oWARlxv/kDDueFCoCoy3mjDLTRD1VNdRVvmOfql0XotUu7in+j X-Received: by 2002:ac8:584f:0:b0:432:c8b7:da6c with SMTP id h15-20020ac8584f000000b00432c8b7da6cmr9492835qth.38.1711967922033; Mon, 01 Apr 2024 03:38:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711967922; cv=pass; d=google.com; s=arc-20160816; b=kveE3QkgqfOhCM2/rPzmV1AX4iFLIzqTvkzZzo68dnmoGGbldWSflXo4PowvU+79tG qlrKW4+eYzpbw6zsAKXVRVfggFptYuUULDmWA9M+1qnsh+R1CuUwzc8wIwG+l88VSvRd 3C5sPsuAWeGBvojsMq7s6E6taruxBjcotnZOwCgCZAneSkH6J5fJnbUuAHnAuwUhXLfG TxzQCPnfzGvlbQh0kSUBaeh6kwE84qMHbBiMpuqc4fQo/GRArHcRjyXWByBcFan6M7kV EGPreQlw4R4sglQ7FXQD923nmaP/cSGGjPBbFL+bDZPbJ4MOuOfmtMv2yNlCKyvGr/hx 5FZA== 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:content-language:references:cc:to:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id; bh=QgwwRdFyFA1XQLi56vaeMF+Glmn5VFfZuxMmpwi/gWU=; fh=TLalkvVsdiX9pOqOO4epbSFcxGxvkBq8DxZDNfTjbEg=; b=jWvVcCu/8PWsugZBGNkx2X1UYWiYvOQEa8QVKzUTsWy2P3aN3B1y8R8ss6SwsCndn8 F0go2IgvQMDAdsGRZ5GDgKf1Elk294+tXVTnpq9+xsc3RdkIq1vEZcYZILIYRt24xQOL nd69YotElo98WUNBvg0mgl5uMCVyQGZRpej9ZvYImkE4vwvik3iiMI71VAJC3RHTu6Dc l2XVm3G5aQsAB6sGo2rj6L3p61mk4L32iJZBIoQQAGlGD/3azAKqg8aPhQBFp8s70Xl4 rGTK2PpObN/UH4o3XJ894UwJDD7haoE2jiqj3whh0lBfWMPjGi5nWaIRHZR0zaV85CAz Zzog==; 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-126600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126600-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p21-20020a05622a00d500b00432b95b06d6si8701873qtw.649.2024.04.01.03.38.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 03:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=maciej.szmigiero.name); spf=pass (google.com: domain of linux-kernel+bounces-126600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126600-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B1F981C20F21 for ; Mon, 1 Apr 2024 10:38:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C70EE20DDC; Mon, 1 Apr 2024 10:38:28 +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 05238200A6 for ; Mon, 1 Apr 2024 10:38:23 +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=1711967908; cv=none; b=ZlMfu84iagMCBpqTz3h3hK7ItxRAel+yDd/7+YnMukXd/GX6ORHFnmDklGA2jfBDlggNCW97qzcPwmt6sbk1y5o3BZs3QF2aJaNGEzcsR0HxDF+r1En0hA+ui+5FBlnCG7ED2zIXxlZyK+6MFYgrwMBSUvjP3xoSfWWQhshlcrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711967908; c=relaxed/simple; bh=xALpn2xp66RFV4OxE/ZnsPAvZ5zAuLADDlRfGuPxKiU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=br44KBeRoTxJEOS9LZ1ZcrmnlJ7EIB2DOy7GhCzDPikt7EkV8ImxN7UjDdHrK7HxXRzB4cUKeIq8fMK/OThFCAkGEH69zu0oL1l1G1EnSyuw7nYmSAzdrhMDsloAS49LZC/h2PIzfMt8akZSW71DX7PDKYpey+g5lD7a12uRAFk= 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 1rrF3C-0000cd-Fg; Mon, 01 Apr 2024 12:38:02 +0200 Message-ID: Date: Mon, 1 Apr 2024 12:37:56 +0200 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 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> <19d5cdee-2868-41bd-83d5-6da75d72e940@maciej.szmigiero.name> <20240329174457.GJ7597@cmpxchg.org> Content-Language: en-US, pl-PL 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/b4VLtlZzERAraxHd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4FEIjILjwF71ZKY/dlTWDEwDl5AJR7bhy HXomkWae2nBTzmWgIf9fJ2ghuCIjdKKwOFkDbFUkSs8HjrWymvMM22PHLTTGFx+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 19:22, Yosry Ahmed wrote: > On Fri, Mar 29, 2024 at 10:45 AM Johannes Weiner wrote: >> >> On Fri, Mar 29, 2024 at 03:02:10PM +0100, Maciej S. Szmigiero wrote: >>> 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. >> >> But all the pages it rejects go to disk swap instead, which is much >> slower than compression... >> >>> 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. >> >> Ok, that makes sense! A container fairness measure, rather than a >> performance optimization. >> >> Fair enough, but that's moot then with cgroup accounting of the >> backing memory, f4840ccfca25 ("zswap: memcg accounting"). > > Right, this should no longer be needed with the zswap charging. > > Maciej, is this still being used on kernels with f4840ccfca25 (5.19+)? > Any objections to removing it now? I don't object to its removal as long as stable kernel trees aren't affected. Thanks, Maciej