Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp686019lqh; Thu, 28 Mar 2024 13:07:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7YglFyPm5CD8OdHwM6xUJTaNQFwrgMRiYEvPOk0Deky0gv+0+SZ0iBdD8AQf8Ubl7Jwho5ssWr9E0qqedBomoM/89x1Wn+iUPNHKrHw== X-Google-Smtp-Source: AGHT+IGNRsFwMInQlUwi/B7JRShZr9JKHaCubSaaXYxDBH+1l4ZYrO4wEUA8kdoegcDqrLBNyYFX X-Received: by 2002:a17:902:9691:b0:1e0:e85b:b9ca with SMTP id n17-20020a170902969100b001e0e85bb9camr509658plp.21.1711656422339; Thu, 28 Mar 2024 13:07:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711656422; cv=pass; d=google.com; s=arc-20160816; b=NJdL8abeGPRgATo9NddvzDIt7khGz5bleE4LA/K+uEYqHi4w0wWXB4DRiROuOfHQrH tl93Qwy6PUuPOPSyAB9ufNnHRH2x+6v3qFZiwlfcOywowb9Ad/YPwpUXTuCz9ygabeEV +Mv6xWPM1F7u8siWnuIMcHrXbtaCVV124KEgyQZwPCiUEdDyQihaedMr64aPgxgiLpeH E8weJOMlqAZgdKqXwooBdNZefPfKSSDabiulL4jmtvHZPyPdy23mXV8Ul2OHW2rBh72P b+16YhrFrSclKFm/RukYwekT2WmazqVZmq3y8p7Ua3y2KY4L+rMjWlYPyvJNFx6YUfZL Zx3A== 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=Ij7Ouf/ymUoifh8mgCvqV2Oc2Vgv7bDzjKVaIK67K1A=; fh=LdslumU1AGnwatMPZVttnx0pYZXs3PkYTObYa/F8gqU=; b=sJYFyesR391eOdVZIFVh7KoL6iDNAEtSCPhzWhkXi6bWxBNDwFt0s9T5TzCtRjFVAF /SokIg4DSolzq8Zax2tjpwPrLJ5FzjKHrKFxulVNLNQFKmhvaljwV0hqrSCLvJY40+EC RugnQNfRj5TN9pCOYkCUVAhekbKcRDU+1TQ84TEmBaDUQZG4jv3C5tWf3QG7YA5NMyQg 18eXO+zieTerAkCEaFWuteZ77Kt1psOUUzWirJbRKCHVaupWRd5Iiy3ZU2OCVOie2E1Q aCcbjA9T86EpXoLz3SJtBl4lZBDZMmLFoZCgi7/WzYPuzfot5iVdVYdcdR8DdjfIKowF HsSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Bkz2jjHI; 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-123544-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k10-20020a170902d58a00b001e0afc34ae1si2137367plh.40.2024.03.28.13.07.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123544-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Bkz2jjHI; 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-123544-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123544-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 062C02937A0 for ; Thu, 28 Mar 2024 20:07:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E04B137740; Thu, 28 Mar 2024 20:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Bkz2jjHI" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 429F94436D for ; Thu, 28 Mar 2024 20:06:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711656414; cv=none; b=XShGqsLmRElAogqf/S+v7QkfOcpAr2PALOl1JsWY5VA8nqMHngDWHkk8LDNvf4s6ivPG+1kSQZccOjUticfxyQurHw0lYvoCOlQTDWPsj42GPlrTQGK10PcLZmd9CjrdmFfqIbCeYaK8rlhiBF+OCXt9Bo13TPdKuZ0aLgDk9lM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711656414; c=relaxed/simple; bh=Ij7Ouf/ymUoifh8mgCvqV2Oc2Vgv7bDzjKVaIK67K1A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kPQeODDkkv4VSYJj5VA1BCkazT8nK39iDl6zintl+nI6os7BQfEJrFyFl2p3+LUKpnAYqoukXNb3KsKh+QIPCjEMtSuFT78Fx/P7nl+BJxjm+6RgH8AzuAZcQKW6tgfA2Jj1YtWU2Xb1+x3abCFaFcYeGqlSft2KD1lVPT69QNQ= 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=Bkz2jjHI; arc=none smtp.client-ip=209.85.218.52 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-ej1-f52.google.com with SMTP id a640c23a62f3a-a450bedffdfso160779366b.3 for ; Thu, 28 Mar 2024 13:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711656411; x=1712261211; 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=Ij7Ouf/ymUoifh8mgCvqV2Oc2Vgv7bDzjKVaIK67K1A=; b=Bkz2jjHIa0xkYo/qq6Unn/EXErXPDoHC/jP5uWlJPH3bVzxM9QdpNZVVf1VOPAvIde wr5iMXDfjRoItkNVTmExAqmXZzMHWEB9xyoQudz8ns1VCYDC4ET6FqNmR46QgAWtWOh2 pcCGD6A8aZOqhLgzzTWhLsGl7pK1kTVq1nzayALta/zd9lY6SLYa2Q0Iw2zSIhRnySBC AWuM1z3/DPwy8tX8Tbxa1TQDtwTJVPUvi9IeKft6s/TlR2Vo3NtxD0Y1Cqjyo5fKCRdr Vhf0Beq/aFf/UgzbIYk9yss24e9c05j4XX1A7yKALLyJWWUDeN5LGvn/NrPAsYzmUsfm IH+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711656411; x=1712261211; 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=Ij7Ouf/ymUoifh8mgCvqV2Oc2Vgv7bDzjKVaIK67K1A=; b=wWjOffSqxMQniafo7AESAyWT8DsRgVcMeJwS8OM5W523bWMvzTZTE+tv+BMQ6ewR4M bW/hshCWoyRnJ0yWOG94LCpqbKQu7FK1xofYKHBNHY5FnaWnXTgQeBFyXal2dLDv4rai Uv8y//jouQjulgrTNvgl0EnNVwYtqXESYpW/vA1Ejnn+c3yqjUjdSIUJ9gHKAKcjaaXV pUVmD/eeNxisLeBrs1S+QT/YefLlE7Uzn/OlyV2XYPLhD958fm38cuf6u3tqTJ4wXS/Z w26ep/5L1W+2oJlxv6TQANOkONB1tIgYIFFgCkEe4m5O41oqlr2prpqFpu/GXPw3HC6J RRCw== X-Forwarded-Encrypted: i=1; AJvYcCUZj1Jlp1n6yHFvuI3aKxPZzJfEisqe5KLJgmHCUUfHaxg58VMa14U7owDgZMpRqY1h7vL2rWn0FuErLhgucXIT57eLr2Ct8BQYilpS X-Gm-Message-State: AOJu0Yy/XQDSp5bqR4VwCLXe5WTnW00JCGs+iblT7RIZfQljJC+Dkh96 t9QeoPRm5rEhmEh82+81KslBuQjwCG1inzAgtFdSZRg3gNerbhKeqbx/K44L6O5VSVCoh0xtCXa bmzwSjmZDmM+quM5QDG4K3ZbOjwJka8uC1Kx9weEf/Dr+3G9eKQ== X-Received: by 2002:a17:906:c309:b0:a4e:f82:375e with SMTP id s9-20020a170906c30900b00a4e0f82375emr192488ejz.73.1711656410453; Thu, 28 Mar 2024 13:06:50 -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: <20240328191109.GE7597@cmpxchg.org> From: Yosry Ahmed Date: Thu, 28 Mar 2024 13:06:13 -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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 :) Thanks!