Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp617669rdf; Tue, 21 Nov 2023 11:16:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKMGghK8RSLOi2tfRDgN0v6IGBsWGh0JCUyi0sLFs0KwjF0Qb4qOWTcYG+17k3bnJSG2QA X-Received: by 2002:a05:6a21:a5a2:b0:187:9460:b653 with SMTP id gd34-20020a056a21a5a200b001879460b653mr15298669pzc.2.1700594190306; Tue, 21 Nov 2023 11:16:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700594190; cv=none; d=google.com; s=arc-20160816; b=JPVt/xsWLNShXjEfcL+wbUDZfj/jv7EOR5lKGNJL5V1Djr9Ks58afkruo+0n/JTc+/ KR9E5WmyDEsy8z1ZEq8Vw+T9cRd5hpw7dbIDzql5XGUYaM6tfHPmZAoG9/9Y8AHgB1Pe 3WC+HAXNkbQPAVuhwnYAgJOjjOiJQa2wYbHU/CKXNgefzsYJfLoMAafYdGSo4mwWwbIS e5jJYyDJFDKEfedioofGmjgc7C0Zu2u0sDtzFiJ6e2JzTJpKMsZBLCN8IAvOy5VhQ7v3 VisWWQzW7/+VqNRUTc0fxOxWE5ygW0ufaBnPdX0H2yy2IL8Vs4bTdOV4Nde5g2YPB1xg mz7Q== 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=wQqDKRQjn6844OW3n/w7wb8sy0SLbW225b2srtOadSo=; fh=L983Jft7l6PMve0D1cxmqJuY+PwvHUgVl9dlWgZCd10=; b=EGk7GF1hb3gfGzV/JP6VfqBtvKreSUMF30bNMLQEwVCjgO2/XZpVPWX3BiU6uTq4Lr rL7LZpn7IaA9gI+U7Xswn3DcJaaeeA6sfpBp9hvfnecmWb0hVxrbFlCTRGXGvJwMALv1 HwKWyXRRUIUDGpFh4hE6MQCCY1lOEpeUKUK8Oeju/jD07c9uui/TniOn+cQNT5APZhab rijf7xdnX8YS7FEsYJX2+4kxnuDDAaMOKHDoOZTXTb+bzLbGGK9rBNnBb5qeeX7odLAv fiWS5rLRi32GUMgS6qs+cG6pc2pGOXOD7TTz6XCSUbhlTaxME5fuAcX95/EmO+0d4pSs EfGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ccc0iYNA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ch6-20020a056a0208c600b005be01a390b5si12076449pgb.472.2023.11.21.11.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 11:16:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ccc0iYNA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id BDC3E802F666; Tue, 21 Nov 2023 11:16:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbjKUTJg (ORCPT + 99 others); Tue, 21 Nov 2023 14:09:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjKUTJf (ORCPT ); Tue, 21 Nov 2023 14:09:35 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5742110C for ; Tue, 21 Nov 2023 11:09:32 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8B9FC433CA for ; Tue, 21 Nov 2023 19:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700593771; bh=wQqDKRQjn6844OW3n/w7wb8sy0SLbW225b2srtOadSo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ccc0iYNA+ruXpCZTeJMcDBc51/1dKabUqQNxc1hQCOJOE0SuqptNQJe1wJv5Q510b q2XMuR7kafI97/r18kF9PbcfVbEEVblgXkOXCFftu56SAtex33D+ruTxY7Qc+pQncP InGXMnq10VNG4SuRP/P9CBrOm7J4gWpOeDKGgZIcDJhilKFxlftzF2I4I4ROwa0FxL djc/+3iPXe6UHcCU8SlbCvB3klXvFSIxt8myvJtJDFKKNSKRLZUlNzjOS+3X5RfqXp LS/dsD8to3j15y9frxouKwUbNVBxG64IXomRxa1+yzO0Nrtp/yzo+Mr/y7125FPS6f VvP252hKUHCgw== Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-41cd8bd5727so34392511cf.3 for ; Tue, 21 Nov 2023 11:09:31 -0800 (PST) X-Gm-Message-State: AOJu0YxE36Qko7ByTy20QV6FIx4M8dGNN22aROvJFnccO5g+BiQURhst 75zgaiGw0fSlU454bzlWonIhcizeZJMHarJn11NpZg== X-Received: by 2002:a17:90b:1d92:b0:27d:5964:4ee6 with SMTP id pf18-20020a17090b1d9200b0027d59644ee6mr163589pjb.2.1700593750122; Tue, 21 Nov 2023 11:09:10 -0800 (PST) MIME-Version: 1.0 References: <20231115172344.4155593-1-nphamcs@gmail.com> In-Reply-To: From: Chris Li Date: Tue, 21 Nov 2023 11:08:59 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5] zswap: memcontrol: implement zswap writeback disabling To: Nhat Pham Cc: Yosry Ahmed , Andrew Morton , tj@kernel.org, lizefan.x@bytedance.com, Johannes Weiner , Domenico Cerasuolo , Seth Jennings , Dan Streetman , Vitaly Wool , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Hugh Dickins , corbet@lwn.net, Konrad Rzeszutek Wilk , senozhatsky@chromium.org, rppt@kernel.org, linux-mm , kernel-team@meta.com, LKML , linux-doc@vger.kernel.org, david@ixit.cz, Minchan Kim , Kairui Song , Zhongkun He 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 11:16:27 -0800 (PST) On Tue, Nov 21, 2023 at 10:13=E2=80=AFAM Nhat Pham wrot= e: > > Hi Chris! > > Thanks for the patch. Would you mind if I spend some time staring > at the suggestion again and testing it some more? Of course, by all means. That is just the minimal version to be functional compatible with your zswap.writeback. I might consider a follow up patch to add "no_zswap" and "none" to convert the SSD only swapfile, which can't be expressed by zswap.writeback. That should cover all 4 combinations of zswap and swap files without creating a custom swap tiers list. "all": zswap + swapfile "zswap": zswap only "no_zswap": swapfile only. "none": no swap. All keyword names are open to suggestions. > > If everything is good, I'll squash this patch with the original version, > (keeping you as a co-developer of the final patch of course), and > update the documentation before re-sending everything as v6. Great! > > Anyway, have a nice Thanksgiving break everyone! Thanks for > taking the time to review my patch and discuss the API with me! My pleasure to discuss the swap with you. We should do the online "swap meet" and invite other developers who are interested in the swap area as well. Chris