Re: Multi-threaded mkinitpcio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux