Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4444966ybp; Mon, 14 Oct 2019 04:54:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsz02plQmVbPOjhKfTgtBIXhHsEY85uBSDTkZFLCIyaZ65E6xgSdon7JQADIcOdiIORbQb X-Received: by 2002:a05:6402:21c7:: with SMTP id bi7mr28003222edb.205.1571054067206; Mon, 14 Oct 2019 04:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571054067; cv=none; d=google.com; s=arc-20160816; b=svY9xRHcCrluXlKnPBbclar7Md4TNkI8zhOEBFwcub+WEmlfHkQh5GAfh2DCyxo4P/ ss879MP/xhYlRHo8O/43dmZyfsGRLL8DQy/XkIZQi5J0ZNBgogouA8ayA1RpRJYHLWQj /bRuAAnS3dyvQMyok44tfJHRL1z55n2EqquPqKctdg59NlpvNxreq6zggpa7jqcbIV8z lAfGBBNZD3kesL2LYqpL7qGGOLmwnn2Qp7Q5DCHQHtcBXBhjH6k19Y+yH/ED6PD7qR5Y ZtyE6eguK9Dfh0XiHEem9AwYmbKL5VzAqfcdFkYa1kXUI8elQmsRGN9Ft8NXfdRxO7nG kHfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IyjO7e3laflS/HiaQVGN9zQLqjDYASAnzIoylBXLla0=; b=qxfDMH+SXBycbWPfyJ7F8ap9KQvxf0qqGKNfl82id3WUvufnSOqLtlIg+CTtFQPq39 XXaZMXWmCtwl+OHvZXJXBCi3wm5nI8K+AzWNDKOUvIok4dI1SSTAfqjtnwHcNgOBHodQ dwImFi0hybowBmaeVex4vyc9p4NPa0104QRxNeSSYcKmGAiIkg9vYFM+pSA0X+1D3zof uEQf00qBp3iYN3wphZFbrcKnm3cuNee3YtL5visXbwIHusRxQ9+d7a1ewBnFbgVYAImP UXWM6jb7P7Su9R56XS8ZL6+tpG+Gwkm8Kf857Pr7c7xPGCYuTBepW2owb8kIiabo/+83 QL2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bE9Eovnm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14si13134094eda.104.2019.10.14.04.54.03; Mon, 14 Oct 2019 04:54:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bE9Eovnm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731503AbfJNLtz (ORCPT + 99 others); Mon, 14 Oct 2019 07:49:55 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36273 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730369AbfJNLty (ORCPT ); Mon, 14 Oct 2019 07:49:54 -0400 Received: by mail-lj1-f195.google.com with SMTP id v24so16331184ljj.3 for ; Mon, 14 Oct 2019 04:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IyjO7e3laflS/HiaQVGN9zQLqjDYASAnzIoylBXLla0=; b=bE9Eovnmob/gQtTAdbam+0ozMYerl+G5fFrF//o7FpRO2ZBT6cieTe0+0LxRfUskbN zQSSiyzCeGzJsmoSmtB55DV2a8Vw/zurJqJK2B05u584M/QM2tfigu2PJgAo5eU0ZOoS xu9wN1yHMk8w1bkWDf8IpGrH8qKhfh280tJckFKgvrUwkxthULUdF2dxXk2yrOa9CW3N zURCh183wEZuHiiYBTYmWLxan9UtlW2HvetsLzU/c6RMKzkO+rDlQwhQ/pcexp6c5HQn P54ZPr8Oxg/7ldvOh9YhtzjPHoL876JYJKQO0yQ3iHiMB4fDQJVbZ6g+979JdZC9TyXQ 4csw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IyjO7e3laflS/HiaQVGN9zQLqjDYASAnzIoylBXLla0=; b=ANTmHAwP7ZSA7Wag+XPYPTnwPI/MM/HdGmXMdzjpMKu95dUfGq5nQYeNoTJeKGxyjZ YseBZkLWIg6PSGBpB/T39PHtvR5hIpJyokovFKi2F/qWIQ7ftVs0s/KKQhfcwsrTnCRW u3utREOKcYQTtl7ANff3MfSBW4DrMH8ggxC4pQSPk7yiqWkDBwkvCGIeENafLIORIqmP e4a9P4sDgIySSNl4JVyY9yCms8Z09Qt+NkAz0HssPZjrxycEzooY0QkZqjciV4q1MJ2x Xs4uCPLJn/H5+9H5+LYgWb+NvoyLu9rpQbCOpzMGuFGkOiV/xGTV3xtW+rWuz2Zinezu lKTg== X-Gm-Message-State: APjAAAVuFR9FfTiEPFmCIH5qHHDpW3OVwjHbuiQMcmoFPf4D2Wfw0QWV mEtc0Z3U8o4xhesf2eniRWrpe6/2h7VIpunq73E= X-Received: by 2002:a2e:9205:: with SMTP id k5mr18476480ljg.172.1571053793046; Mon, 14 Oct 2019 04:49:53 -0700 (PDT) MIME-Version: 1.0 References: <20191010230414.647c29f34665ca26103879c4@gmail.com> <20191014103341.GA36860@jagdpanzerIV> In-Reply-To: <20191014103341.GA36860@jagdpanzerIV> From: Vitaly Wool Date: Mon, 14 Oct 2019 13:49:41 +0200 Message-ID: Subject: Re: [PATCH 0/3] Allow ZRAM to use any zpool-compatible backend To: Sergey Senozhatsky Cc: Linux-MM , Andrew Morton , Dan Streetman , Minchan Kim , LKML , Vlastimil Babka , Shakeel Butt , Henry Burns , "Theodore Ts'o" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergey, On Mon, Oct 14, 2019 at 12:35 PM Sergey Senozhatsky wrote: > > Hi, > > On (10/10/19 23:04), Vitaly Wool wrote: > [..] > > The coming patchset is a new take on the old issue: ZRAM can > > currently be used only with zsmalloc even though this may not > > be the optimal combination for some configurations. The previous > > (unsuccessful) attempt dates back to 2015 [1] and is notable for > > the heated discussions it has caused. > > Oh, right, I do recall it. > > > The patchset in [1] had basically the only goal of enabling > > ZRAM/zbud combo which had a very narrow use case. Things have > > changed substantially since then, and now, with z3fold used > > widely as a zswap backend, I, as the z3fold maintainer, am > > getting requests to re-interate on making it possible to use > > ZRAM with any zpool-compatible backend, first of all z3fold. > > A quick question, what are the technical reasons to prefer > allocator X over zsmalloc? Some data would help, I guess. For z3fold, the data can be found here: https://elinux.org/images/d/d3/Z3fold.pdf. For zbud (which is also of interest), imagine a low-end platform with a simplistic HW compressor that doesn't give really high ratio. We still want to be able to use ZRAM (not necessarily as a swap partition, but rather for /home and /var) but we absolutely don't need zsmalloc's complexity. zbud is a perfect match here (provided that it can cope with PAGE_SIZE pages, yes, but it's a small patch to make that work) since it's unlikely that we squeeze more than 2 compressed pages per page with that HW compressor anyway. > > The preliminary results for this work have been delivered at > > Linux Plumbers this year [2]. The talk at LPC, though having > > attracted limited interest, ended in a consensus to continue > > the work and pursue the goal of decoupling ZRAM from zsmalloc. > > [..] > > > [1] https://lkml.org/lkml/2015/9/14/356 > > I need to re-read it, thanks for the link. IIRC, but maybe > I'm wrong, one of the things Minchan was not happy with was > increased maintenance cost. So, perhaps, this also should > be discuss/addressed (and maybe even in the first place). I have hard time seeing how maintenance cost is increased here :) ~Vitaly