Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3491pxx; Tue, 27 Oct 2020 18:52:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziSp0j1Wy4Q8oUYgZzHt2hQHrCGjJd5I27pN71w9K1KN1ni7fjo56z8KOnxuRbI6AxBAYS X-Received: by 2002:aa7:d9ce:: with SMTP id v14mr5360656eds.203.1603849950905; Tue, 27 Oct 2020 18:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603849950; cv=none; d=google.com; s=arc-20160816; b=jsBF4V2uWClPFD8kyJVi7nON1g2uD/2WoBtqnhx/qRZ2kj8njDFdPR82LWmhXM7ic3 yEROwtjRrlVTIrX4tHdGB9y/IFFHkGb/iLlChctD+tlr2QHX44s0LV1gwIwf4wJG7MyY +18+wmIzleiIVneneFi6uF2R9H994Oy+8JR9yQFRaVogQ6Y2SnAgOrH4O7tczN8UCw2e kDUUY8LDVGKJCXVRZCuX6kwd6pkgCpzjmL9clK6KT0vlxAoXxRsQh3Gv7cZ0AODynzFk V17l7xzfubs3D+4HMnJB80GDvPymQPPK9Kcd07MJoM9RMf5OKRVihuyzuDt/og8iiLyU 8I+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2ZiyaeUHjFYAo8O2nb9YsSxiVAxNu61UHIsbR2dmhM8=; b=J0xbB5B5sDBxJxyINMCrhRzxemBkCieLFaDWcw6SVm3r93OTZDYlTOE5cnosnafh7K 94IIRyJAVY2d75VUKN72xwHFyR7ik1YL3M+lmxeo1TX9FHXUCFc0jQlZLKLD31vWjAna Y2TVNkF2TBS88mS1u77WikzpUeXFIGYo65Uv+MAE2gCpLLsYrU2W3J4o/C83O394IF8T +s0IYYIgdUXwrhbfJbeJyZzr2mSp/kprNnzTPujf5gkWuqiaTSJ3ThDrPz74haAtHuEj Wuhq+ea+QREIqzoMUBgpQDxjwe6t6eUe05OyIzdSbOVohdEhe8SFd10sndq7iB9Ou78f dI+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DHqyU5Na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cy1si2302648edb.13.2020.10.27.18.52.09; Tue, 27 Oct 2020 18:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DHqyU5Na; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2509115AbgJ0IkX (ORCPT + 99 others); Tue, 27 Oct 2020 04:40:23 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45278 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2509041AbgJ0IkE (ORCPT ); Tue, 27 Oct 2020 04:40:04 -0400 Received: by mail-pf1-f194.google.com with SMTP id e7so483961pfn.12; Tue, 27 Oct 2020 01:40:02 -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=2ZiyaeUHjFYAo8O2nb9YsSxiVAxNu61UHIsbR2dmhM8=; b=DHqyU5Na/jfu0CgjXEBRZ7QpVnSFuOgsccPtxwmB+XA4WPA2U6F0rtyb58Si36ekQR C8SPIVYvHA195OL3/laP+QorziaeN/NjA9qyj/tUcbgpyp8cbTwATo/BsjUmPx2S1iL5 +45ITpRLLFFLySIo0H41QoOZYK7NennGZSd5yifnZ33dVvEV0XtPWHsPVQcGCqro8xyC 3AwmU70/AsdKxVXFcYoqnRZEDCW/dP1qbMenGD9WtodVtAQEGDc8gC8xg+xfJBTq/Cx6 D3IacEV5Qy7mGMgQjtZomJsTo+IGhvwEPuq6AujAcNy1lWj3WpBD84k6gaa7iWtFKwkV OOuw== 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=2ZiyaeUHjFYAo8O2nb9YsSxiVAxNu61UHIsbR2dmhM8=; b=b60d49JD6S6tes0HjdG2KLYJaU9xjixDphPHHMYAZN0WFhJbMVJ2EqcSihUTQcEnrS DIR5qRyJqfcKnRKP7PzHdqDCeb4Oqr6ZBdGA9XgxEK1VcAOLyd982QxO+NllwNoAvTz9 WOSr3z3CPI0NCLeNB8qd1wI3QcZWvMO25WPAwolzWDeKHe6TLSeUTZEnAFEt6UaPvtUJ YHZDg8N1q3TzJS361XwpMoNdgJDxUN7bss8GvjihgXGF2NlN4W3IQhGPlv6TXYRYlFA2 bwePCy0wie6eiegVxYoKojGG8WrQc4Kx63ncuEuU4zIbooNUIQe9nzRkHUybePVNZRsN xSSA== X-Gm-Message-State: AOAM531+Y8WfKVAiVXxKEmYj7OC2UUywsjWDWUBwMf62k2q2kzCTlmek dUzQ2KdWftiXdePPFsfPaFlqTvylzQNR+pFoI1QFHbw= X-Received: by 2002:a63:af08:: with SMTP id w8mr1001427pge.419.1603788002072; Tue, 27 Oct 2020 01:40:02 -0700 (PDT) MIME-Version: 1.0 References: <20201026085141.1179-1-rsalvaterra@gmail.com> <20201027012204.GD2412725@google.com> In-Reply-To: <20201027012204.GD2412725@google.com> From: Rui Salvaterra Date: Tue, 27 Oct 2020 08:39:51 +0000 Message-ID: Subject: Re: [PATCH v3] zram: break the strict dependency from lzo To: Sergey Senozhatsky Cc: minchan@kernel.org, ngupta@vflare.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sergey, On Tue, 27 Oct 2020 at 01:22, Sergey Senozhatsky wrote: > > Honestly, I'm not entirely excited. lzo is a fallback compression > algorithm. If you want to use zram with something else thenconfigure > zram to use something else. What do all these #if/#elif buy us? The idea is to allow us to select a single compression algorithm at build time, if we're sure to use something other than lzo. The status quo only allows us to select additional algorithms, as lzo is a hard dependency. I dislike the "iffery" as much as the next guy, but in this case the default selection stops being static (as lzo may not be available at run time), so we have to fall back to an algorithm which is enabled, otherwise zram won't work out of the box (we'd always need to choose the algorithm manually in sysfs). Personally, I always use zram with zstd, and the only lzo dependency I have is zram. Disabling lzo saves me about 3 kiB in the final (xz-compressed) vmlinuz image. It's not much, for sure, but when your total storage is 4 MiB (and your RAM is 32 MiB), every bit counts. :) Thanks, Rui