Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1506305

Re: [PATCH v3 2/2] initramfs: Allow again choice of the embedded initram compression algorithm

Path csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From "Francisco Blas Izquierdo Riera (klondike)" <klondike@klondike.es>
Newsgroups linux.kernel
Subject Re: [PATCH v3 2/2] initramfs: Allow again choice of the embedded initram compression algorithm
Date Fri, 21 Oct 2016 23:30:01 +0200
Message-ID <suPy1-2Jv-15@gated-at.bofh.it> (permalink)
References <o49a9-8kJ-5@gated-at.bofh.it> <sm6oq-58G-9@gated-at.bofh.it> <sm7ku-5JY-11@gated-at.bofh.it> <sm7ku-5JY-9@gated-at.bofh.it> <suPy1-2Jv-1@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=MTq18rCLaENcxi5sXn3ou++VJCS25b4Ol1NsMpWe0Io=; b=cyvuhkV7QF62ZBMXAsouBmNlpU+7G4sHDep0WH5ky0UYu8luTNNZPHDuyD1iYuQtlJ Lw14w9eWsRo1QWGfbfdaKOljtIOyyzwO79OcxwJ8tzBwfItXymSWZa/btXGr0mA2u90I 7cOtJFqkKgY1cBglQQEXPhnFaHXcjQL4/KjeaDjawQWDcJeBWaI22WAlSmqZvLwDn/O1 +Q30gptE+iQ7Wn/C8rf36ZmDIJ9rDyRGHhtpSuPXwrS9EQaS0Mu9WC39IMm4+ALLo6HP uExCmeK9PvdOI3kiVRKV6ltEnN/rQDaAnJwPtnaktcl3aq7vXnZmufmIAMN7cx6IETIs gUdA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to; bh=MTq18rCLaENcxi5sXn3ou++VJCS25b4Ol1NsMpWe0Io=; b=ezbrhKGS30nYJhF1cn/gAk2wUIwwrflfHz7p9dzjnyhlytyTojguF/dstRPFrXHcca 9fRqoOdSqxdGFNl4apykehIGNQzh1S5S5cdyjjGz5p8YxenuxPFaFP5u9RtJojlUW1AI fOHB7XOvOk5CFi+kPvt8s24okzmLYe3ezXBwUeoJDO4iopTHxx5PXRPQ8kzSjSPQsf8x cAcP+2cByjEJna/jW7APMbzdARKe2mmImKYvOQ4xqJ9PkVyL01MsOqRY251I2DYm8u82 eWcqK1eoNx2N2F7yhG+/fvbGVl2XeNnb8v8jOSDwy+OFi3yT2Jj2UDIb6CDBbjjCe1vu MhTA==
X-Gm-Message-State ABUngvedZk+DE2U4siYFtu8fzbQZXEXBJ7O4rWzEnh8l2fQaTMISpLHFetnAVPJo2PHN6A==
X-Received by 10.25.76.3 with SMTP id z3mr1305246lfa.53.1477085372323; Fri, 21 Oct 2016 14:29:32 -0700 (PDT)
X-Enigmail-Draft-Status N1110
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="c0EJva3FrHLoQnWxNFoJkcnpHmxOhe2Jp"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 107
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, P J P <ppandit@redhat.com>, Paul Bolle <pebolle@tiscali.nl>
X-Original-Date Fri, 21 Oct 2016 23:29:23 +0200
X-Original-Message-ID <580A88B3.9030101@klondike.es>
X-Original-References <54239E69.4050803@klondike.es> <57EAC8CC.3070602@klondike.es> <57EAD3BC.9050802@klondike.es> <57EAD77B.7090607@klondike.es> <20161021142154.211eb0ae3784e055429a92e3@linux-foundation.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1506305

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello Andrew!

El 21/10/16 a las 23:21, Andrew Morton escribió:
> On Tue, 27 Sep 2016 22:32:59 +0200 klondike <klondike@xiscosoft.net> wrote:
>
>> Choosing the appropriate compression option when using an embeded initramfs
>> can result in significant size differences in the resulting data.
>>
>> This is caused by avoiding double compression of the initramfs contents.
>> For example on my tests, choosing CONFIG_INITRAMFS_COMPRESSION_NONE when
>> compressing the kernel using XZ) results in up to 500KiB differences (9MiB to
>>  8.5MiB) in the kernel size as the dictionary will not get polluted with
>> uncomprensible data and may reuse kernel data too.
>>
>> Despite embedding an uncompressed initramfs, a user may want to allow for a
>> compressed extra initramfs to be passed using the rd system, for example to
>> boot a recovery system. Commit 9ba4bcb645898d562498ea66a0df958ef0e7a68c
>> ("initramfs: read CONFIG_RD_ variables for initramfs compression") broke
>> that behavior by making the choice based on CONFIG_RD_* instead of adding
>> CONFIG_INITRAMFS_COMPRESSION_LZ4. Saddly, CONFIG_RD_* is also used to
>> choose the supported RD compression algorithms by the kernel and a user may
>> want to suppport more than one.
>>
>> This patch also reverses 3e4e0f0a8756dade3023d1f47d50fbced7749788
>> ("initramfs: remove "compression mode" choice") restoring back the
>> "compression mode" choice and includes the CONFIG_INITRAMFS_COMPRESSION_LZ4
>> option which was never added.
>>
>> As a result the following options are added or readed affecting the embedded
>> initramfs compression:
>> INITRAMFS_COMPRESSION_NONE Do no compression
>> INITRAMFS_COMPRESSION_GZIP Compress using gzip
>> INITRAMFS_COMPRESSION_BZIP2 Compress using bzip2
>> INITRAMFS_COMPRESSION_LZMA Compress using lzma
>> INITRAMFS_COMPRESSION_XZ Compress using xz
>> INITRAMFS_COMPRESSION_LZO Compress using lzo
>> INITRAMFS_COMPRESSION_LZ4 Compress using lz4
>>
>> These depend on the corresponding CONFIG_RD_* option being set (except NONE
>> which has no dependencies).
> As you sent them, these patches would be merged with
>
> 	From: klondike <klondike@xiscosoft.net>
> 	Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@klondike.es>
>
> Which is strange.  Different email addresses and "klondike" isn't a
> real name.
Ugh that was my mistake, the e-mail should have been sent from my
klondike@klondike.es address. I guess at some point during sending I
messed it up. Sorry for that.
> So I'll rewrite the From: address to match the SOB address.
That's perfect, thanks :)
> You can do this yourself by including an explicit From: line as the
> first line of the changelog text.
Thanks! I'm still trying to learn how the kernel patching process works
so the tip is very appreciated.I'll be careful and use the From line
next time :)

Sincerely,
Klondike

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 2/2] initramfs: Allow again choice of the embedded  initram compression algorithm Andrew Morton <akpm@linux-foundation.org> - 2016-10-21 23:30 +0200
  Re: [PATCH v3 2/2] initramfs: Allow again choice of the embedded  initram compression algorithm "Francisco Blas Izquierdo Riera (klondike)" <klondike@klondike.es> - 2016-10-21 23:30 +0200

csiph-web