FS#72882 - [mkinitcpio] 31-1 does uncompress modules which wastes space and RAM
Attached to Project:
Arch Linux
Opened by Tobias Powalowski (tpowa) - Tuesday, 30 November 2021, 09:13 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 21 November 2022, 06:04 GMT
Opened by Tobias Powalowski (tpowa) - Tuesday, 30 November 2021, 09:13 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 21 November 2022, 06:04 GMT
|
Details
Hi,
https://github.com/archlinux/mkinitcpio/commit/6a55ffa3439e8c26181e03fca3f670208081ff4f#diff-ef7d009c7e812da10f8aa235954c0e128e820b20c053ea7e839a134022a91fdd I really don't know why the decompression part was added at all, imho the module should stay at compression level as it was intended by the kernel builder. The decompression is horrible for archboot, it grows size extremly and so the RAM requirement to handle that too. Measurement: initcpio 30-2: 70MB all modules (cause it does not uncompress zstd modules) initcpio 31-1: 252MB all modules (uncompressed all modules) 2 possible options to fix: - leave kernel modules as the builder has chosen - recompress modules with compression set in mkinitcpio.conf |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Monday, 21 November 2022, 06:04 GMT
Reason for closing: Fixed
Additional comments about closing: mkinitcpio 33
Monday, 21 November 2022, 06:04 GMT
Reason for closing: Fixed
Additional comments about closing: mkinitcpio 33
With patch:
-rw------- 1 root root 24042141 Dec 21 11:34 initramfs-linux-lqx-fallback.img
-rw------- 1 root root 7317177 Dec 21 11:34 initramfs-linux-lqx.img
-rw------- 1 root root 34834862 Dec 21 11:35 initramfs-linux-zen-fallback.img
-rw------- 1 root root 7831695 Dec 21 11:35 initramfs-linux-zen.img
Without patch:
-rw------- 1 root root 24042141 Dec 21 11:36 initramfs-linux-lqx-fallback.img
-rw------- 1 root root 7317177 Dec 21 11:35 initramfs-linux-lqx.img
-rw------- 1 root root 28242424 Dec 21 11:36 initramfs-linux-zen-fallback.img
-rw------- 1 root root 7540827 Dec 21 11:36 initramfs-linux-zen.img
See this for a workaround: https://github.com/archlinux/mkinitcpio/pull/85
Probably it will not be merged.