Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2680549rdb; Fri, 8 Dec 2023 16:10:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnwCscfYkJlenlbSvQcGzrlQzclgcdCVhrYEBqDgETc/GcOiugnHkYjx97UQIVrAJtdgTN X-Received: by 2002:a05:6870:3e09:b0:1fb:1480:b2a0 with SMTP id lk9-20020a0568703e0900b001fb1480b2a0mr1112599oab.8.1702080654042; Fri, 08 Dec 2023 16:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702080654; cv=none; d=google.com; s=arc-20160816; b=zKtXeSwLB4AkYQp2rDZepTXJUsNsJ5uOXRHx2er+MsxF+t3KCqf/lqMArU47dhw1nX 5vcVOdouJ63rAsNWHpXd0W0WAVUuKAtnUJycylxPhLMMY1h7x2LyWwg7AUMoKf0hoa08 SgZltyZuvf+MAKvv9mPAkkztJZUfYJsKdpX9xLhu0nb0UCE44Ffl7LeMPI6PulUaVOPw obQTCFevSoqr7nfWYQAXLkqpyo9RcQMmSzpmlvwjAtVDRX5REEvNSNdr2vdLX13cLm8R 9BETL295vt4miNGiNYcQGzMbMDwK3OCzpxvusxkrGpyaQbORYaGZS1LY4/2bekdpQkX/ oEJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/Qd28qU1g2yFEdsp9oZ9RTK5j/CkVtLWfnrYw6TNGj8=; fh=CEYZtqExmddGYm19BsCIc3eJHB8qm+zpfmP9Ta63oKQ=; b=pUiUcQPUl7kafzXHFbn9kX7QRJ4gxjule/yFjua9DtakF3NUGgRPZKk6RcXphp/+SO Mm4bLcDkQrs7tVtziVrKveu7EHRbiuOGoeb96XCescpf9OI7y3T1mLETLpKnlUOd0U6z F9Mtys2kZnApDW/We3xUF8c91p1JXPq77dq1wZ1YU7ntkjqtCRlT76/TlYpaw37cfPWl kgil7Pz3/3XN4rsFJpHB+lEHf6ZqZeqNcEi/OETNzGO/uumL/C3PkikQOe7j25cwt2mE wa6Hsle/bGcwN7mbVPpJKMiuWA899aEphBPKmKuqjSl2/Pcv9928Fba2+pGFTUr3Qdda GcHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=arQKWW0X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a25-20020a62e219000000b006ce6d0550c3si2160380pfi.395.2023.12.08.16.10.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 16:10:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=arQKWW0X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B607D8083B47; Fri, 8 Dec 2023 16:10:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574829AbjLIAKT (ORCPT + 99 others); Fri, 8 Dec 2023 19:10:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235946AbjLIAKS (ORCPT ); Fri, 8 Dec 2023 19:10:18 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDFB6172A for ; Fri, 8 Dec 2023 16:10:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77563C433CB for ; Sat, 9 Dec 2023 00:10:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702080624; bh=/Qd28qU1g2yFEdsp9oZ9RTK5j/CkVtLWfnrYw6TNGj8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=arQKWW0Xght4tVmWubvLmZ0/ug1w2OA6AOoxvtcZChqOQ40oE69Amlwx129XAtXXI YousS0uGwx2Qx5yIfciZjxIuqmYtqRqvPWeNL75CcV+/bPIlfh/5PmZWTSsnkC8TuD VZdYjptuGdnuTMYdpg3cio0Du2sL7tI5/ufJUrj7zBvGh8JgY4zUXYdSpOFswNNFt3 MlAB/nzi0mtk8ZsqCl5otmER1XnoP0idbx93zhaog/YVMoAgKTznaAxIBroiqU++MP AS46vr1/rTLIWyzpaoo72j1x2ehWSdLgNB3HvoD0i9112wsNO5eaHIhy8/JQqoJGUj PCPeUHKJtTgUw== Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-58d18c224c7so1371812eaf.2 for ; Fri, 08 Dec 2023 16:10:24 -0800 (PST) X-Gm-Message-State: AOJu0Yy2Xionp4tsskZzL7Q38KRyl6CqtXsoFia2D6sFJfIwWpGMZGsl 0FfayNlnJ/yyAhN3XNU4RGHu9R6B1skroFXdDhNuSg== X-Received: by 2002:a17:90b:1c11:b0:288:4719:75c3 with SMTP id oc17-20020a17090b1c1100b00288471975c3mr676015pjb.45.1702080602635; Fri, 08 Dec 2023 16:10:02 -0800 (PST) MIME-Version: 1.0 References: <20231207192406.3809579-1-nphamcs@gmail.com> In-Reply-To: From: Chris Li Date: Fri, 8 Dec 2023 16:09:51 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6] zswap: memcontrol: implement zswap writeback disabling To: Yosry Ahmed Cc: Nhat Pham , akpm@linux-foundation.org, tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, cerasuolodomenico@gmail.com, sjenning@redhat.com, ddstreet@ieee.org, vitaly.wool@konsulko.com, mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, muchun.song@linux.dev, hughd@google.com, corbet@lwn.net, konrad.wilk@oracle.com, senozhatsky@chromium.org, rppt@kernel.org, linux-mm@kvack.org, kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, david@ixit.cz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 16:10:37 -0800 (PST) Hi Yosry, On Thu, Dec 7, 2023 at 5:12=E2=80=AFPM Yosry Ahmed = wrote: > > I briefly summarized my recent discussion with Johannes here: > > > > https://lore.kernel.org/all/CAKEwX=3DNwGGRAtXoNPfq63YnNLBCF0ZDOdLVRsvzU= mYhK4jxzHA@mail.gmail.com/ > > > > TL;DR is we acknowledge the potential usefulness of swap.tiers > > interface, but the use case is not quite there yet, so it does not > > make too much sense to build up that heavy machinery now. > > zswap.writeback is a more urgent need, and does not prevent swap.tiers > > if we do decide to implement it. > > I am honestly not convinced by this. There is no heavy machinery here. > The interface is more generic and extensible, but the implementation > is roughly the same. Unless we have a reason to think a swap.tiers > interface may make it difficult to extend this later or will not > support some use cases, I think we should go ahead with it. If we are > worried that "tiers" may not accurately describe future use cases, we > can be more generic and call it swap.types or something. > +100. Chris