Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1053140imm; Fri, 17 Aug 2018 11:00:41 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxeVLARMU91ebO71K+bMfZh45YWCcZFXMgIKGXrcnR94Gf22PQptUeBAeJcVCT2/AjCd4tZ X-Received: by 2002:a63:e14a:: with SMTP id h10-v6mr34562605pgk.358.1534528841842; Fri, 17 Aug 2018 11:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534528841; cv=none; d=google.com; s=arc-20160816; b=V1/EFbt8KD+qSgKwGr2H+4HC7YkzN2DEGfUlaV3NjwOTd1Z7/esyJkk1YKxEBIhvLH lxMDBp0mZk9sHV15zz1APDmiegL8edJrkdhIRfyQncQhDPa66kbmBkhWzC1lHQG+1vhU 1besxNIqBAl8M5gPx956QBifCGXIisFK2X+F2ck0zcGUhgw3FOGW3dSS0V4lxECOHPQS 7JL/YtRoHL77pPbBCv3NB0UMAdx45banxFdq8Ekq+u2T3879EYfIHl4y8uH6GUTPqgeu I08KcLeHB7aoXx6SIqcqlncByHjC0u1E23xfQCbB4J107jVqd7VlJT7W8GhIMLxwM9Ae jHMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=vcicPfGBZq4k3P2oR7XH1kymxCkygryHHrBbT4Vn2e0=; b=GKgfNnalkK8firxzMW65v+ML8670oy983chZ1nW7jlLm7frvuWTEO+0016J99hmkik Gicyn8D7Ryacb0zdMagljcEm2Wd0wAsCUDjWnxCOXGkiS07p/ES61r3PA1ajU1cGJokn 2UA8H8rOSzZqvLsayrFMs393FuO3gjhn4eyZKxwrrk/AoVsKN+Shi8zwDkwVazSpb614 3nze/ovCCVuBsGy2lh+eyih8X2onasn6virhb5XAXTjONGWQHIqY1+GROdMi+Y9njbEm wKJDQfK6ANpj2g1AUN2pjTrgYoTbSA6VAUYKkLkC814iAMfcnbapTGZ2CAGJjbEcf5O8 D/ag== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj4-v6si2613032plb.119.2018.08.17.11.00.14; Fri, 17 Aug 2018 11:00:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727612AbeHQVCp (ORCPT + 99 others); Fri, 17 Aug 2018 17:02:45 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:47202 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727160AbeHQVCp (ORCPT ); Fri, 17 Aug 2018 17:02:45 -0400 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.89) (envelope-from ) id 1fqj0M-0006Wj-W3; Fri, 17 Aug 2018 19:57:47 +0200 Date: Fri, 17 Aug 2018 19:57:46 +0200 From: Adam Borowski To: Andi Kleen Cc: =?iso-8859-1?Q?Ren=E9?= Rebe , Nick Terrell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Kernel Team , Chris Mason , Julian Andres Klode Subject: Re: [RESEND PATCH v2 0/2] Add support for ZSTD-compressed kernel Message-ID: <20180817175746.d2brxipp7xa4y2uw@angband.pl> References: <20180322012943.4145794-1-terrelln@fb.com> <5B282FAD-EDCF-44C8-A131-A3C6FF3EA84F@fb.com> <3F598446-EA1D-47CE-B7A1-4D3002DA3972@exactcode.com> <8DE2BD14-0C9C-43AF-B9B7-F760F8434B6B@exactcode.com> <20180817165403.GC12066@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180817165403.GC12066@tassilo.jf.intel.com> X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 17, 2018 at 09:54:03AM -0700, Andi Kleen wrote: > On Fri, Aug 17, 2018 at 06:15:45PM +0200, René Rebe wrote: > > Hey, > > > > is there any mainline future for this zstd support? > > Currently my most favourite compressor for this, and for what it’s worth > > zstd/initrd now even tested on #t2sde / hp/pa-risc > > Can you remove some other compressor for the kernel image if you merge this? Funny you say this. I want to post this after the merge window is over: https://github.com/kilobyte/linux/commits/nobz2-next-20180731 Sorry for a tree atop next, but there are conflicts that needed to be adressed. The patchset is also undertested (works for me, but not even compile-tested on archs I don't have a toolchain for at hand). > The "favourite compressor" seems to roughly change every year, so if > we keep adding new ones things will get more and more convoluted. The above patchset drops just bzip2. It is the only one that's strictly beaten in every way (ratio, time, memory usage), there are also no other uses of bzip2 anywhere in the kernel so we'd get to drop its code completely: 900 lines of Linus' happiness. Other candidates are lzo and bare lzma (you want lz4, zstd or xz instead), but those are used elsewhere thus there's hardly any gain. If you want them gone, please say so -- I'll include their droppage. > Surely zstd is universally better than some existing compressor > the kernel already uses for itself for a particular sweet spot? > If it isn't it's likely not needed. zstd is better in the balanced niche: unless you want extreme speed (lz4) or best compression (xz), zstd handily beats algorithms in the middle. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ What Would Jesus Do, MUD/MMORPG edition: ⣾⠁⢰⠒⠀⣿⡁ • multiplay with an admin char to benefit your mortal [Mt3:16-17] ⢿⡄⠘⠷⠚⠋⠀ • abuse item cloning bugs [Mt14:17-20, Mt15:34-37] ⠈⠳⣄⠀⠀⠀⠀ • use glitches to walk on water [Mt14:25-26]