Skip to content

Commit

Permalink
Disable most kernel log messages during boot
Browse files Browse the repository at this point in the history
Adding the quiet[1] option disables most kernel log messages during boot
These message are not needed normally and available in dmesg if needed
later.

With this change the ramen service boot time is up to 1.47 times faster.

machine    nested     before    after
-------------------------------------
laptop          0     1.55s     1.39s
laptop          1     4.73s     3.28s
server          2    32.79s    22.33s

[1] https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html

Thanks: Peter Lauterbach <pelauter@redhat.com>
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
  • Loading branch information
nirs committed Nov 1, 2023
1 parent f5c5b76 commit 8ee751a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/vms/cirros/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $(disk):
virt-customize --add $(work) \
--copy-in ../ramen:/tmp \
--run-command "/tmp/ramen/install" \
--run-command "sed -i 's/^\(kernel .*\)$$/\1 quiet/' /boot/grub/menu.lst" \
--delete "/tmp/ramen"
qemu-img convert -f qcow2 -O qcow2 -c $(work) $@

Expand Down

0 comments on commit 8ee751a

Please sign in to comment.