Jump to content

Talk:Improving performance/Boot process

From ArchWiki

Recompress kernel modules

I use a script to improve 0.4 sec > by recompressing kernel modules for SSD:

for f in $(cut -d ' ' -f 1 /proc/modules)
do
p=$(modinfo -n $f)
unzstd $p -f -o /tmp/mod.ko
strip --strip-unneeded -R .orc_* -R .note.* -R .comment /tmp/mod.ko #break lockdown mode
doas modprobe -f /tmp/mod.ko
zstd -1 -f /tmp/mod.ko -o /tmp/mod.ko.zst
doas cp -v /tmp/mod.ko.zst "$p" 
done

This script depends on kernel version booting. It may worth to make it pacman hook. oech3 (talk) 08:21, 3 April 2025 (UTC)Reply

Such messing with files provided by core system packages is not going to be recommended on the wiki. If you have a suggestion to improve the Arch Linux package that would benefit everybody, feel free to talk to the kernel package maintainers or submit a merge request on GitLab, otherwise this is not going to lead anywhere.
(>messing with files provided by packages is not recommended) It is the reason why I did'nt added this to the wiki. I wonder should I suggest changes that make package size larger, and bad for slow HDD.
So I added some setting to Boot_process#Compiling_a_custom_kernel.
I'm fine if this talk is removed. oech3 (talk) 13:24, 5 April 2025 (UTC)Reply