Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2174592rdh; Tue, 26 Sep 2023 15:10:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxShlfAGqp8ixokipqgV7T2B2rlrGIiD/kk3VUux9fTd+SY0iBA4eIkZ9n884EhJr0hNe+ X-Received: by 2002:a17:903:230d:b0:1c5:fea0:7f1c with SMTP id d13-20020a170903230d00b001c5fea07f1cmr45130plh.65.1695766248190; Tue, 26 Sep 2023 15:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695766248; cv=none; d=google.com; s=arc-20160816; b=y/mlq908dvHh0WxqDjPZFPc//EcG2qskszb5BjkPZy8v60rY+HbBz27/ftpMwXspRX byGCuglUbUv608+yKUv8wicH09ToiaDxHl6urIHaZGp1z2Gksr4BzyRVMc7FYGirCJbg MuV/pV0LvIodrFKWU9kY7HIPc+f+sHKMFGRrQv7XJdE1VrO836SHh927mkG5M+kgLLZT UVi2Zx4k/tzWtA34n3/JSglCurlrDF7/uu/AYeAPYv3PKVbYQ5KUbXM6Ys242mGXXexQ QOSo14G1NEn3nmrBSVj+iu+3d47LJ6jESLUGWjxTL+vtX6SolzVz6FKv8NUFj6ti0vt3 igQA== 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=ROwwicfVqJzQjY5acEsiiIZMrlm7ip2jQ8qIfyOCsP0=; fh=271wtO5F/NeoeQ3jRhsjaHIh09ibRQ+sj6XaF1D3/l4=; b=w41fVwlVOtao5Y91uc29VrOOPKKUfQk+wkoxYyiH8QHZWZsvDdPh2qGPzxKWh595nw dtBlaVWV908Suq+rM20UUyFIt3Xs4EBGZzlyzTjc03rRTe22723QFGw/P+TJHgVAypze fVy2qN9ri5LHE9iQRsEdfn/lwaJ9ze4nEZeA5jj/osWthQAv7JGdcu9PyKUjieI14ACM Js1u42ItSZaB0sfE59jskTOj+IK/Ym3wwd9k+ni+UOw5iDfdAeJbjNBVzKr26CcqhIvO 1v+QZExc3qW/3ouxM6uXbn0uhpKzKRD4yN0jt5V2Ek+plv3YEkAMol0bmVoAkMsZwxA7 oDng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AoBdnQa4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l19-20020a170902f69300b001c5de4a5b4esi14218281plg.597.2023.09.26.15.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 15:10:48 -0700 (PDT) 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=@gmail.com header.s=20230601 header.b=AoBdnQa4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6E8A9816EBC3; Tue, 26 Sep 2023 13:06:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235813AbjIZUGm (ORCPT + 99 others); Tue, 26 Sep 2023 16:06:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235750AbjIZUGk (ORCPT ); Tue, 26 Sep 2023 16:06:40 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69D8A1BB for ; Tue, 26 Sep 2023 13:06:25 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-79fa2125e19so280097639f.0 for ; Tue, 26 Sep 2023 13:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695758784; x=1696363584; 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=ROwwicfVqJzQjY5acEsiiIZMrlm7ip2jQ8qIfyOCsP0=; b=AoBdnQa4tryiMeF3ivU+N7WIDMx+LibJbgvyAZHmIPia9oN11tqEUcqCG1cuIZNI++ oM+HpLzpF9+jLnHfhyn5wSiU3FcH235ezckJ91ocx3OKUUcwuvADqdKe88COsThrIfUv Fz1u7L+k1UA7w88BIl3wshu2OO5+bgMFoq5QKbYP93ldJuT36C3OpHxjCRhQH8KXK1dm oWQQBwuKB3q9nVPODrAO8wlRjMfsMQ/58HcmFjRPgWuVexAO3JZ7z/eVufNvLKkYyZsi sRBH+zMM/y2RUV3U4EUMXe/iSO3b71VBoMOdj0A7KU8fKmAtBHq1boemxcqQGVUuupWQ 9/Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695758784; x=1696363584; 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=ROwwicfVqJzQjY5acEsiiIZMrlm7ip2jQ8qIfyOCsP0=; b=S4l2fuUHOx8ADUVqpwIAUpU42Uspaojpwc5hCJKQf+jNl9FFu2lLtu4Wak2RugkCl+ 0jPE/d2MEek47y4q3rOWcipUHseaNU/JbWNuoy9WXVEoJIkJQTnhWcaM3E9bDjFmzWvi lkEVP6L/eEkQQgcM42uLueYA6s72mqwY7a8XDPC9wZnZj1ngnW4m7g9mD1rQF7KDGmVc t51Qc8qRW/rsIQRdE6VX8rYMwACakPXsnUqwshZWnXoUS/ASqZMJrzHzl5zWQ0/E7/LL dRFpcRVgBjz4e3uyiQuIaePmJYEYW2zDY0y6CR5eViDRLxKhTt0/gjZInttbKkX6vfHm ux9w== X-Gm-Message-State: AOJu0Yw3br1vdNdZzmwKUDAwZiYgg9XXLPD8peZi+8VFPmomj6amNv2O z1WDbVbQDEnVEw/Tx6dqFwwR4XCv3fYQwsIuQZs= X-Received: by 2002:a05:6602:2186:b0:795:16b8:8601 with SMTP id b6-20020a056602218600b0079516b88601mr11403668iob.0.1695758784562; Tue, 26 Sep 2023 13:06:24 -0700 (PDT) MIME-Version: 1.0 References: <20230908235115.2943486-1-nphamcs@gmail.com> In-Reply-To: From: Nhat Pham Date: Tue, 26 Sep 2023 13:06:13 -0700 Message-ID: Subject: Re: [PATCH] zswap: change zswap's default allocator to zsmalloc To: Christoph Hellwig Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, cerasuolodomenico@gmail.com, yosryahmed@google.com, sjenning@redhat.com, ddstreet@ieee.org, vitaly.wool@konsulko.com, linux-mm@kvack.org, kernel-team@meta.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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]); Tue, 26 Sep 2023 13:06:42 -0700 (PDT) On Tue, Sep 26, 2023 at 12:29=E2=80=AFAM Christoph Hellwig wrote: > > On Fri, Sep 08, 2023 at 04:51:15PM -0700, Nhat Pham wrote: > > Out of zswap's 3 allocators, zsmalloc is the clear superior in terms of > > memory utilization, both in theory and as observed in practice, with it= s > > high storage density and low internal fragmentation. zsmalloc is also > > more actively developed and maintained, since it is the allocator of > > choice for zswap for many users, as well as the only allocator for zram= . > > Dumb question from an outside, why do we then even keep the other > two allocators around? > Maybe legacy users who explicitly configure zbud/z3fold? We have a couple internally, and have to manually undo those configuration after we stop compiling these 2 allocators. But yeah, I don't see why we should keep these 2 allocators around. Time to deprecate them? :)