From patchwork Thu Oct 10 20:04:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Wool X-Patchwork-Id: 11184167 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0ABB917EE for ; Thu, 10 Oct 2019 20:04:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C314D21835 for ; Thu, 10 Oct 2019 20:04:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="u9hVV+E3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C314D21835 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D405A8E0005; Thu, 10 Oct 2019 16:04:34 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CF1328E0003; Thu, 10 Oct 2019 16:04:34 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C06C48E0005; Thu, 10 Oct 2019 16:04:34 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0138.hostedemail.com [216.40.44.138]) by kanga.kvack.org (Postfix) with ESMTP id A02078E0003 for ; Thu, 10 Oct 2019 16:04:34 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 3859E180AD80C for ; Thu, 10 Oct 2019 20:04:34 +0000 (UTC) X-FDA: 76028952468.15.vein00_7f23dee2c1f3d X-Spam-Summary: 50,0,0,88420741a44d4134,d41d8cd98f00b204,vitalywool@gmail.com,::akpm@linux-foundation.org:ddstreet@ieee.org:minchan@kernel.org:sergey.senozhatsky.work@gmail.com:linux-kernel@vger.kernel.org:vbabka@suse.cz:shakeelb@google.com:henrywolfeburns@gmail.com:tytso@thunk.org,RULES_HIT:41:355:379:541:967:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2525:2553:2561:2564:2682:2685:2737:2859:2898:2933:2937:2939:2942:2945:2947:2951:2954:2987:3022:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:5007:6261:6653:9025:9413:10004:10400:11658:11914:12043:12048:12297:12517:12519:12663:12760:12895:13069:13095:13161:13229:13311:13357:13439:14181:14394:14659:14687:14721:21080:21433:21444:21451:21627:21666:21740:21788:30054:30070:30090,0,RBL:209.85.208.196-irl.urbl.hostedemail.com-127.0.0.150,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none, DomainCa X-HE-Tag: vein00_7f23dee2c1f3d X-Filterd-Recvd-Size: 4328 Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by imf46.hostedemail.com (Postfix) with ESMTP for ; Thu, 10 Oct 2019 20:04:33 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id d1so7446877ljl.13 for ; Thu, 10 Oct 2019 13:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=vNAkVByxwPtj47oxh98xv0GNfuNUm1Vy9lgUWGV2Qmo=; b=u9hVV+E3ZunE59sLzfkY+4ImFrvA16AquH47JmeGhtlvu3jWShqzBOWm7YyGfokRAS tn8X4hStXltCKlJKMnh9JcUa8GVzJ+MxoJ5Cne0x+A9ZcEomA/3/GfSDCL1+2uibmlRz SSdNt7XeaRog9G99v8IaqCfxnP3D9xYV54jE2nZiah2uznevCJp9XBfHNx8qXNLfK5Nw y3+Rel4ftgbbE2+y9U+ceeT1qxkDuDbJ3i02Su4CVh0fx7D1ZBXxvyZR5nsEQ2DRRIKC RSBWiIhsvWTkZgKeBUMkqCyd1SWxsvqQ1DwmfsOt/TYOvydomTkG5N3DJRY/Kap7SSHv A0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=vNAkVByxwPtj47oxh98xv0GNfuNUm1Vy9lgUWGV2Qmo=; b=NWSdO85/tShOtu0vn6Ldo1G82oKLWYpAze8eoagsCCpxugKxaFbMC/e61jstH2mSEu RL7YT1tDJiPO/RyoHKjrQYaig1vLb4tTSPqDl43qYNkOXjR15RGy0ey68f/Udf/sFKl9 srsH2Czbz2p35PkdzLpGHmM21H6rWwfR3f47xuBgvOV8+Ij4hQmYfLzk3+9uEI2J2Dck 1uu1z3mFWaxvvOtbS2hX+mz+D2DQV0XXFWrD+g0w8QPYs4wW2jwiXP14GeKne7CdUgwr bfJEQB5lVyrqHM/t73CSP2yBg6NF14T6NwMVMnS5ScNK539dTdUUvs5P/MjsGtydAI8p PjBQ== X-Gm-Message-State: APjAAAWJAQ0h4w9NmL4SK68WczTcvgPKKJG0Vy7s2KQE9AZ0Ij2IHX7g 87pLJzk96FG5akq1Ed8lbsrIdS61QRD0Mg== X-Google-Smtp-Source: APXvYqz3NjfB0tQpVZRLiMxA+kFCIJ+uOCfqM6jrEJCnVfaz74fPH8QJt3Xqmfz1pA4clneR2cHXJQ== X-Received: by 2002:a2e:8183:: with SMTP id e3mr7433890ljg.14.1570737871799; Thu, 10 Oct 2019 13:04:31 -0700 (PDT) Received: from vitaly-Dell-System-XPS-L322X (c188-150-241-161.bredband.comhem.se. [188.150.241.161]) by smtp.gmail.com with ESMTPSA id 126sm2222558lfh.45.2019.10.10.13.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 13:04:30 -0700 (PDT) Date: Thu, 10 Oct 2019 23:04:14 +0300 From: Vitaly Wool To: Linux-MM , Andrew Morton , Dan Streetman , Minchan Kim Cc: Sergey Senozhatsky , LKML , Vlastimil Babka , Shakeel Butt , Henry Burns , Theodore Ts'o Subject: [PATCH 0/3] Allow ZRAM to use any zpool-compatible backend Message-Id: <20191010230414.647c29f34665ca26103879c4@gmail.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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. 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. 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. The current patchset has been stress tested on arm64 and x86_64 devices, including the Dell laptop I'm writing this message on now, not to mention several QEmu confugirations. [1] https://lkml.org/lkml/2015/9/14/356 [2] https://linuxplumbersconf.org/event/4/contributions/551/