Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1153101rdf; Wed, 22 Nov 2023 07:02:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGFbQtx/7iXRd200RbckNdTJOE4wEOw2UGyTO6wgC8GPfJpLE+XBGdq4GCuLyw8tFiXItUc X-Received: by 2002:a25:40d5:0:b0:d9a:5021:4f34 with SMTP id n204-20020a2540d5000000b00d9a50214f34mr2214813yba.15.1700665353770; Wed, 22 Nov 2023 07:02:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700665353; cv=none; d=google.com; s=arc-20160816; b=rTRVRyPyCkA5tBq4xtaJnd0cEnf3NfOIQtgq7abhWASqqrXkPspo9svFESl5yLUwzD z6H+csxDsOvGwmFh7ZfknngZ3GJuXmQRfWoZ8IEPrTLxbE80LD2vbgi8hYdbiMrHPWNa GzwhWxOG9nyUHdCkifOZqzd0yan66W6v7TiV74bW/A6uqq1G9Pzn09j0Psddlxypa0e6 mICrpAyJg+Hsn7yfN8G8tFnCSw9edssKWNHxrPz1nylFPan4mcyUuAskfa6A9yqOeMYh ukSoimCzgJEHxkVS7InY1AMcV2otdZuaKFnFghMawvDCDWuCa4+xgbHumdDeED6CrVJa i16g== 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=LiIbvvulZRsIj1q8knGqJrPb5dxlUZc/TGJW3Hvz9Uo=; fh=L983Jft7l6PMve0D1cxmqJuY+PwvHUgVl9dlWgZCd10=; b=sYMEN7fjzWCmwOb8Em04wx6tXY5UwZFsROWCPD/IPqyotB6rxlqGNrVW10sF6iNshv fEbkLoYP93G0A8stFJITZR0aNyau5qABTM4/zg19gvWQ19/b1wQmL4gJxSIfX7QWSlXS zDrhvwaVfPvd4Elqe5nxRq60SwHOxKsRRHepAiy8oxq4Ux2XVLCqBIw4MpDwowEg3Teg g51AaetkG3Ykqm0rxgu4xDRKMCHUh/E3s2j5VuuIVT9ocoB0WWduPZ3l32jcVIFi6LxT ivCi3pAv90wnxLLE0cimm5NzFwGvNDwqD7qDCJRNA3zLx0PgjbcNBM81okDLXYdyhyJ0 bpFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gBIaALKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 80-20020a250353000000b00da0ae1e6408si3050562ybd.584.2023.11.22.07.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 07:02:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gBIaALKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 80BDC81DE3A6; Wed, 22 Nov 2023 07:02:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344295AbjKVPCH (ORCPT + 99 others); Wed, 22 Nov 2023 10:02:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344284AbjKVPCG (ORCPT ); Wed, 22 Nov 2023 10:02:06 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D6B19D for ; Wed, 22 Nov 2023 07:02:02 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CC07C43397 for ; Wed, 22 Nov 2023 15:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700665322; bh=ITSc+8CASPasYP6znHkBBoTMN83PkY3DBR4mulSAaMA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gBIaALKo5PKhE+ei/4YB8j0v//Nut7Yo9/Wz+qI0bB8bnKEnDq51Vl8xudFniLYxk cEo+HrMxP8EbqJfSxdPdMJf9JWagxHRoOqYJr+h8NUjcoOAs0K2BG6sDcwEvu5O5TC nQyXK3dLDMVuHy4r/nPFkmNUWq4WFRpW1QSJakrNEjsk7WBQYO1MbBPitv3O2Q/htj U7pFOF6jA9wtUhfPi2uO9osF2vykKje3lxcKEaR0xGViSz93XVPaXHEPH7Sps2floJ 1jGiZlhxw5bz7lM4AqJTNpXj2WWT/qG/aIB9XwVXuvQYOQtNGTPO2xawPj9XUjOLgg ZLLu6CzRSkSGw== Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-77896da2118so443285385a.1 for ; Wed, 22 Nov 2023 07:02:02 -0800 (PST) X-Gm-Message-State: AOJu0YxO9ZbnIV7CGr8HhD6ltJEeJ5wfn8a1eWv7E9zDi6iHI7Oh8hC1 JMFgL/Ai6F1owWpGYn6xQgcWuv1J/v3uiKDyp5N5jg== X-Received: by 2002:a17:902:8c8c:b0:1ca:e491:f525 with SMTP id t12-20020a1709028c8c00b001cae491f525mr2640784plo.31.1700665299383; Wed, 22 Nov 2023 07:01:39 -0800 (PST) MIME-Version: 1.0 References: <20231115172344.4155593-1-nphamcs@gmail.com> In-Reply-To: From: Chris Li Date: Wed, 22 Nov 2023 07:01:28 -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.3 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 07:02:14 -0800 (PST) On Tue, Nov 21, 2023 at 5:19=E2=80=AFPM Nhat Pham wrote= : > > "all": zswap + swapfile > > "zswap": zswap only > > "no_zswap": swapfile only. > > "none": no swap. > > > > All keyword names are open to suggestions. > > SGTM! There might be some functionality duplication between > memory.swap.tiers =3D no_zswap and memory.zswap.max =3D 0, but > otherwise this seems reasonable to me. > > no_zswap sounds a bit awkward, but I can't come up with a better > name. I sleep on it a bit. I should apply my own suggestion of using the positive words rather than negative one to myself. I actually define it as a non RAM base swap device. How about "disk"? It will include SSD and HDD disk. The current 4 combination will be: "all": zswap + disk swap file "zswap": zswap only "disk": disk only (including SSD and HDD) "none": no swap for you. Chris