Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp427950ybb; Wed, 1 Apr 2020 02:51:20 -0700 (PDT) X-Google-Smtp-Source: APiQypK1vyxhMOCTmO7TLETcTThMvQzlR2HbdqeNSs7e7YUTorMGRRQIrS1V6xlc6y58p+lCsb5k X-Received: by 2002:aca:4d47:: with SMTP id a68mr2308257oib.56.1585734680774; Wed, 01 Apr 2020 02:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585734680; cv=none; d=google.com; s=arc-20160816; b=zH7QijMR22epZjSuaBMTLjGbPhvpx9XW5u+IPSr5rejSO7giKYowNRBC6emW2Pf1rR 8VUBa/QKb6XREPjib9Xp4RLCTL6XK9yuFGKlGWGIdxiNpS3Eb92Ecq4tK+kSRrd7886W /W4u0O6Nb++pbaG/jnG5K0samFphL/q3KHj5ImZOLbSJPMmJ9e4UgXe1j4nyqj/kOIBQ dDK1cQQx6OQlyZlzkn9k0wMuWEUNW5oLuNqZxVi2nt04FNTd/P23U8yFQS4uNH6GiLI+ 1C074VSU4ubqheO6Pzq3JWr42GvYZ3qqsQw6R9EhnM3oNaA09Y5B+yiGQod3JM5SAVw3 L+pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=QpphlHZbkZKI1xt9DlaNcP539IgZIFX660uvI5X6A6E=; b=dnBHNlnRhCDfavUzOPokFeGXr5nw90ton9V8KwmiBk65f7ed6ZDOACSdIXudkBbLTE fG9xPAaESbgQ9fvFPrwbLEpmD/97XWcifxU6aqO0hfFRXAExfJRz/xCUCDk9dX51DzIh nPunZ9jIiOcNe8VGa5LVbsKJdN3/V/pMpMHmoy7XVhOD/TsosijqSLeD4Xr1ec3D1QVZ paPCbK42USn62OdexrUwEG4tJmzIBk60WNT2fFcB9zMtp7Mmphjv4k6roILJnnW32hTe 5M34sdwrPwHN6+A4EQQ1M2GAwzFgPu4Hwj02paR+qqLKDHjuxZgEQlKZ9kEC3fVbVIyG oclA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jOIhp2xD; 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 v22si666244oic.271.2020.04.01.02.51.07; Wed, 01 Apr 2020 02:51:20 -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=jOIhp2xD; 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 S1727421AbgDAJux (ORCPT + 99 others); Wed, 1 Apr 2020 05:50:53 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45035 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgDAJuw (ORCPT ); Wed, 1 Apr 2020 05:50:52 -0400 Received: by mail-wr1-f67.google.com with SMTP id m17so29712578wrw.11; Wed, 01 Apr 2020 02:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=QpphlHZbkZKI1xt9DlaNcP539IgZIFX660uvI5X6A6E=; b=jOIhp2xDLdzr6oZLZ/CYVF9AQ1cjC1SEfwG6EsBGP9j+Vr1ewAvSn/Hv1fENyou5ZI uuwXIaHlJgVeG0VcJoDrX7lZ3ny3cAh6LShpK4DmyC0aOQ0tBXr1wiSXnMkHnrti87Ov OFyuTDA8g3QzeQNex3nGdMX0D56dRqEH6mpixcnKOtbwzWwB/TbVTQ0e36wKVt1/XN4J Up65hbonyiqoULL86aDwgo70dypyJoIzc6YnLZenSVooSOq9MzLggapSGoxJ4y/FkyvU +IUGDR+mpip2uWP718OwSYf3XE+ghVRSnwsfGQzUdkGtQVpd4Fbgcq7pBZjE/4Ydf9eh 1cGA== 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:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=QpphlHZbkZKI1xt9DlaNcP539IgZIFX660uvI5X6A6E=; b=OeA/Qd/NRli8/5h5pipUkk2SqDu0ua/ewJtjkqGq3PeI6/GllbAveB3ZFLdjbO9OKl hGE3iiAUTBZgx0n4w3NChDXM4la159sXSUf5F/2P8fvHQdWs4EtRiDjii1RScUZajAmp TLWhGssU4lMG6kh3GpBXxRl8VonheQsB0AEQ3aBGx6ojUq/YyubygL9zPgl+jFaknzpu om2qEdX54/6rXefeYuuqyz74tgOYlFQbJZk8Jkzgxv83h7a6r0GoG7nCZ7NK7gzwwZVU /eW2HEe/QrMpyefJJ93Ie6Fs1tils2BzIHXAUEeV6/tcjcMguti1lv57p4+vM3SfqW2J WkFw== X-Gm-Message-State: ANhLgQ2d+km3GtC6gX0BjXVt1ahAIy3G5h5vo54tRMwQVPo0UI4ss+RR HhFaXi2yHiE11rqOwpzIDOD0/r0hefspjCSdDqc= X-Received: by 2002:adf:dec3:: with SMTP id i3mr26540126wrn.351.1585734648711; Wed, 01 Apr 2020 02:50:48 -0700 (PDT) MIME-Version: 1.0 References: <1A630698-E385-4CDF-9755-ACDAAF60DBB9@fb.com> <5F9D2C8D-B1DE-4F95-992E-524E02851CF4@fb.com> In-Reply-To: <5F9D2C8D-B1DE-4F95-992E-524E02851CF4@fb.com> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Wed, 1 Apr 2020 11:50:51 +0200 Message-ID: Subject: Re: [PATCH v3 0/8] Add support for ZSTD-compressed kernel and initramfs To: Nick Terrell Cc: Nick Terrell , "linux-kernel@vger.kernel.org" , Chris Mason , "linux-kbuild@vger.kernel.org" , "x86@kernel.org" , "gregkh@linuxfoundation.org" , Petr Malat , Kees Cook , Kernel Team , Adam Borowski , Patrick Williams , Michael van der Westhuizen , "mingo@kernel.org" , Patrick Williams , Nick Desaulniers , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 1, 2020 at 4:52 AM Nick Terrell wrote: > > > > > On Mar 31, 2020, at 8:11 AM, Sedat Dilek wrote: > > > > On Tue, Mar 31, 2020 at 6:15 AM Nick Terrell wrote: > > > > [...] > > > >>> Do you plan to push this for Linux v5.7? > >> > >> I hope that it will be accepted. From my point of view this patch set = is > >> ready for merge, except for the maximum window size increase > >> requested by Petr. > >> > > > > Hi Nick, > > > > thanks for your answer. > > > > Did you send out a pull-request already? > > I haven=E2=80=99t sent out a pull request. If that is something that I ne= ed to > do, or if it makes the process easier for a maintainer to merge then > I can do that. > [ CC Stephen Rothwell (maintainer of Linux-next) ] Hi Nick, as Adam pointed out it might be good to ask "Stephen Rothwell" to include your Git tree into linux-next. Stephen will give you some informations about that. > > Can you point me to that request or patch of Petr? > > Is it relevant or optional for the pull-request? > > The patches from Petr are a parallel implementation of initramfs > decompression and are available here [0]. They support initramfs > compression well, but are missing some pieces for correct and > performant zstd kernel decompression. Namely the equivalent of > patch 6 in this series to increase ZO_z_extra_bytes, the > performance fix in patch 1 that switches memcpy() to > __builtin_memcpy(), and the decompress_single() function in patch 3. > > Without those changes a very compressible kernel may fail to > decompress successfully, and will be corrupted. And the performance > is about 4x worse on x86_64. My patches took 70 ms to decompress vs > 318 ms with Petr=E2=80=99s. See the detailed comparison here [1]. > Thanks for version 4 of your patchset and these clarifications. I will try zstd-v4. Regards, - Sedat - > >>> Feel free to add credits for the whole series: > >>> > >>> Tested-by: Sedat Dilek > >> > >> Thanks for testing the patch set Sedat! > >> > > > > I have re-tested zstd-v3 patchset with Linux version 5.6 final and > > Clang/LLD version 10.0.0 final (from Debian/unstable repository). > > > > Is it possible to mention that there might distro-specific changes > > needed to initramfs-handling? > > For Debian you are welcome to include below Link [1]. > > Not sure I will send/ask to/on the debian-kernel mailing list in this t= opic. > > I don=E2=80=99t expect any distro specific changes are required to contin= ue operating > as-is. However, if a distro wanted to switch to a zstd compressed initram= fs > they would need to update their toolchain to compress with zstd. > > > Thanks and bonne chance. > > > > Regards, > > - Sedat - > > > > [1] LINK: https://lore.kernel.org/lkml/CA+icZUXCn2an9aNDrm+-eneSAOyGibz= 0W1xYhwkA5k3B3U-5vQ@mail.gmail.com/ > > [0] https://lkml.org/lkml/2020/3/16/461 > [1] https://lkml.org/lkml/2020/3/31/1573 >