From: Rusty Russell <rusty@rustcorp.com.au>
To: Andi Kleen <andi@firstfloor.org>, Bertrand Jacquin <beber@meleeweb.net>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Willy Tarreau <w@1wt.eu>
Subject: Re: [PATCH 2/3] kbuild: handle module compression while running 'make modules_install'.
Date: Wed, 20 Aug 2014 03:25:45 +0930 [thread overview]
Message-ID: <87iolojrdq.fsf@rustcorp.com.au> (raw)
In-Reply-To: <87lhqkmxdl.fsf@tassilo.jf.intel.com>
Andi Kleen <andi@firstfloor.org> writes:
> Bertrand Jacquin <beber@meleeweb.net> writes:
>>
>> +# CONFIG_MODULE_COMPRESS, if defined, will cause module to be compressed
>> +# after they are installed in agreement with CONFIG_MODULE_COMPRESS_GZIP
>> +# or CONFIG_MODULE_COMPRESS_XZ.
>> +
>> +mod_compress_cmd = true
>> +ifdef CONFIG_MODULE_COMPRESS
>> + ifdef CONFIG_MODULE_COMPRESS_GZIP
>> + mod_compress_cmd = gzip -n -9
>
> Please don't use gzip -9. The gain is very small, but it can make
> the time to compress much longer. Just use plain gzip.
Interesting:
$ time find * -name '*.ko' | xargs -n 1 gzip
real 0m9.404s
user 0m7.283s
sys 0m1.667s
$ du -c `find * -name '*.ko.gz'` | tail -n1
56412 total
time find * -name '*.ko' | xargs -n 1 gzip -9
real 1m1.968s
user 0m58.850s
sys 0m1.786s
$ du -c `find * -name '*.ko.gz'` | tail -n1
55764 total
$ time find * -name '*.ko' | xargs -n 1 xz
real 1m23.396s
user 1m13.893s
sys 0m9.134s
$ du -c `find * -name '*.ko.xz` | tail -n1
46868 total
$ time find * -name '*.ko' | xargs -n 1 xz -9
real 1m47.202s
user 1m25.962s
sys 0m21.298s
$ du -c `find * -name '*.ko.xz` | tail -n1
46868 total
So, Andi is right. Please skip -9 for both options: it makes little
(.gz) or no (.xz) difference and it slows things down.
Cheers,
Rusty.
next prev parent reply other threads:[~2014-08-19 18:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-16 18:50 [PATCH 0/3] handle module compression at install Bertrand Jacquin
2014-08-16 18:50 ` [PATCH 1/3] modinst: wrap long lines in order to enhance cmd_modules_install Bertrand Jacquin
2014-08-16 18:50 ` [PATCH 2/3] kbuild: handle module compression while running 'make modules_install' Bertrand Jacquin
2014-08-19 13:17 ` Andi Kleen
2014-08-19 15:22 ` Bertrand Jacquin
2014-08-19 23:49 ` Andi Kleen
2014-08-20 15:04 ` Rusty Russell
2014-08-20 15:04 ` Rusty Russell
2014-08-19 17:55 ` Rusty Russell [this message]
2014-08-19 18:54 ` Bertrand Jacquin
2014-08-16 18:50 ` [PATCH 3/3] modsign: lookup lines ending in .ko in .mod files Bertrand Jacquin
2014-08-18 21:00 ` Rusty Russell
2014-08-18 21:00 ` Rusty Russell
-- strict thread matches above, loose matches on Subject: below --
2014-08-19 18:57 [PATCHv2 0/3] handle module compression at install Bertrand Jacquin
2014-08-19 18:57 ` [PATCH 2/3] kbuild: handle module compression while running 'make modules_install' Bertrand Jacquin
2014-08-20 16:09 ` Rusty Russell
2014-08-20 16:09 ` Rusty Russell
2014-10-12 15:50 ` Andev
2014-10-12 16:40 ` Willy Tarreau
2014-10-12 17:06 ` Andev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iolojrdq.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=andi@firstfloor.org \
--cc=beber@meleeweb.net \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.