[arch-general] Multi-threaded mkinitpcio
Lone_Wolf
lone_wolf at klaas-de-kat.nl
Mon Apr 6 10:31:01 UTC 2020
On 06-04-2020 11:47, Ralph Corderoy wrote:
> Hi Giancarlo,
>
>> Of course lzop will be faster than xz, but mkinitcpio's default is gz,
>> which should be comparable, at least in speed, with lzop.
> A slap-dash test.
>
> $ perf stat -e instructions gzip <initramfs-linux-lts-fallback >/dev/null
> Performance counter stats for 'gzip':
> 19,533,249,541 instructions:u
> 19.642066695 seconds time elapsed
> 19.540737000 seconds user
> 0.100003000 seconds sys
> $ perf stat -e instructions lzop <initramfs-linux-lts-fallback >/dev/null
> Performance counter stats for 'lzop':
> 1,233,520,108 instructions:u
> 1.129177816 seconds time elapsed
> 1.092271000 seconds user
> 0.036743000 seconds sys
> $
>
> gzip is about twenty times slower.
>
> 1,233,520,108 / 19,533,249,541 = 0.0631497644777874596
> 1.129177816 / 19.642066695 = 0.05748772944994829119
>
> Yes, my computer is probably slower than most, but then perhaps so is
> the OP's.
>
Those outputs appear to be from unpacking initramfs.
I do think OP and Giancarlo were talking about creating an initramfs .
LW
More information about the arch-general
mailing list