Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp826513lqh; Thu, 28 Mar 2024 19:15:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVuuX34JkT6D0sKplyoZ9kb3IfZlD9c8FwDAzhD8pt6gAQO2OJnkG3h7T8/wKIp81r8MUP2QfvACoaIoymcdVsukdY1u4d5NMZBxyOBqg== X-Google-Smtp-Source: AGHT+IEweQo9jVwr70UJYgBryNL7wXg7fe2d2NAdrXCri/Un95a1qF/ziTrGGk8904HnT7iTVbCM X-Received: by 2002:a17:907:76db:b0:a4d:fc15:4e36 with SMTP id kf27-20020a17090776db00b00a4dfc154e36mr542285ejc.16.1711678544261; Thu, 28 Mar 2024 19:15:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711678544; cv=pass; d=google.com; s=arc-20160816; b=0jPRFw+L58q0Al7DtX2DiGa0TVGzHZuTS8SfX83xy/dgMQQT5jeADsG+WBAyDFKfdo nK8TRPo4qtGkAhwmhuSu5l3G2m/N/KcDIRW1okNRnPqTrrdlN1A2p3PtnROF2hjiY4P4 4a4hyrMTFIZeaGr/4DxL9PRGxP1ZjXGcd7iyyEtZYcBHWYtcdzzdak2cwbcuB+xS+gLs Gmqq9W52Ejse3Nhl3aVOwvw7XA017FJXMGf4supcQ8BO4OCKDhURzg8G43uNHaQ9I6OL PSFJyS8cFHx/H+3/00HHcZKiyUrKM+h0Bp7+wBcvtey3rsIjPrjuVl/2Pu7xUjBoyLjz rrgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=2TJM3k1xxwLHj7rZQzcbRutzHAX/f/s1ZJB+wGTa34s=; fh=ONSJ5AdGFscI4f7mRQOf713ASW6N2eIa0eMI0vV5SLU=; b=jYPQGpTpEMhZBbsyTUwiH1rYZ3vvaVpq6xQmKoT4moBNTweVWdKItF/Z8AdNC3Cmun MiDIuXRN8HLGpMbmWSPQHXytt0a3f5ACK5Tpmxf46ErHA4RANbmGTAD6/5Rpa+drXzy8 dj1cDC9jOfTm+ERHx0LBSfTQ84Drckfh00rTy/9zY8hrDGpZn4ST7NiCl7TpVqhTJLNB Bf73uNueDewMuG+tW4E/lr6LKRJTbxH7wnH9y5BGHIOEHcphERdtlRtRehGSRczlMGsE VGMLvJmp5dfbpkgn4W0arvITr84UT6raCV2q8HeonOr7e2bCmprAjIsQaHtfpyLI+w4K FeYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NorheStb; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-124053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bq3-20020a170906d0c300b00a4733fc6f33si1267837ejb.1030.2024.03.28.19.15.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 19:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NorheStb; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-124053-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124053-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 063311F24F46 for ; Fri, 29 Mar 2024 02:15:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F3A339AC7; Fri, 29 Mar 2024 02:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="NorheStb" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1BAF39AC1 for ; Fri, 29 Mar 2024 02:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711678505; cv=none; b=qQri3A2RPcZjq+sAiFHHvYlaPJRIVT5B30vKBClywvmjBne5YSJ6FtbtTaH5nHhBIEIrhJZvvLFUn4HPem0OnIycv+lX4C9kAiVJn1FlGTAubrG4bDcDNZlbCQ6Gtyy6D5XjySmfWKq9mRIcFiWs7Da4cDSB09D1M7skLGzJzA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711678505; c=relaxed/simple; bh=2TJM3k1xxwLHj7rZQzcbRutzHAX/f/s1ZJB+wGTa34s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PaMcgQpkW4mPEBB1ZTCdlggflOHfm/59OIfORhBkF0A4MuzzUeGsFj3S567GZ+wfsD6dPQVUxmnAk/gPuE7qd9c4ChDWKIeVShlzBsiDfAmhiwmeDNM/ocYiqpjFZzD7BtHHLcrziyOZ876X3xGgD61eE6FqvCzsbjh+Y2/B4dc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=NorheStb; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5101cd91017so1928287e87.2 for ; Thu, 28 Mar 2024 19:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711678502; x=1712283302; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2TJM3k1xxwLHj7rZQzcbRutzHAX/f/s1ZJB+wGTa34s=; b=NorheStbNAyj9KCRvmGAJxf8gh0RENcdC3+iF+uXWCENBjgkcPlDCk7G4RJIxNXsl1 ICTghRxcs4aPdUH1XsDrTqD9vpZjl5RZHLz1AyxtOMwTEi/71TCrGe+yYz3AH5tZxfkH azwSa7GLW1PG+j7FMDHa8hqKjdhqQ3KS5gRCUeWrBMG3bT5EnnW7axN1ji7fHbQMoyhx isdM3RN/rVOYZUFP7k3b5XtqmGQhvi/iUOpVb4T3oc8EuUedckBKGg36RzKRnzs8wrFw G40zavpHWEpOUXgx1fOleWwY37PiPxSAEbyXSxREWAx/qpO3UzObhT9xYSTpfTuWtEMT IzhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711678502; x=1712283302; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2TJM3k1xxwLHj7rZQzcbRutzHAX/f/s1ZJB+wGTa34s=; b=Vc7y50ufRvyAgkUIxyjp5DfjyIbUOu2kkhnfYtrd89SldxxOns5FQp/MZoRcefe3yW 45jbHjjB7WyGbgqPpc+TlCgn10BsGkwZJq3qSDNOtjrJ/0QYBnYyNn+cl5IV+KbDkL6j f6S+j6eGi7Yj5UGR736RZcXc8MVcfODplM0qtDe0L74F7ByTsbwjq0SKwe0vZwB1XeVI 04GtaNeucGCJL4ZqakJXdcWKWNv4KKDge9V0Q/O9Nzht+cAQ+X2G00FgM2fwQSRH0iOv letfhd9uinyy4RumaVyTuiJK/D9v/2suFV5uNQOncz7S2d1keBPpJzMV+HK/oayoESZS 25mg== X-Forwarded-Encrypted: i=1; AJvYcCXhwOH05peBTlMnZTjnNGplzY01W2vDCmacMG2nKrsVNnBvlOW8ROyyqREYZ6pyHbTCGwLbN3gyrzUetW+F3U+fjbzqs88HFjI98r3B X-Gm-Message-State: AOJu0Yzf31BqdtEgZJiLSGvH2WhRCC1QHBeZtnSbiG2Hb1hCbUbRytwR qqPmBJXUt4TygP/oGgoQCONRQ/oT7mGzL8GQRduE9p1cxE4hczCk0N7S6wtrsTbzlCCje/m0gw8 F78iKXKCvgt3S1uWSP0hmusnK7Ojf6n9JUSQV X-Received: by 2002:a05:6512:15a6:b0:515:d1bf:2473 with SMTP id bp38-20020a05651215a600b00515d1bf2473mr47876lfb.25.1711678501958; Thu, 28 Mar 2024 19:15:01 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325235018.2028408-1-yosryahmed@google.com> <20240325235018.2028408-6-yosryahmed@google.com> <20240328191109.GE7597@cmpxchg.org> In-Reply-To: From: Yosry Ahmed Date: Thu, 28 Mar 2024 19:14:25 -0700 Message-ID: Subject: Re: [RFC PATCH 5/9] mm: zswap: remove zswap_same_filled_pages_enabled To: Johannes Weiner Cc: Andrew Morton , Nhat Pham , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Maciej S. Szmigiero" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2024 at 1:06=E2=80=AFPM Yosry Ahmed = wrote: > > On Thu, Mar 28, 2024 at 12:11=E2=80=AFPM 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.164124= 7624.git.maciej.szmigiero@oracle.com/ I am CCing Maciej to hear more about the use case for this. > > Thanks!