Merge lp://qastaging/~mwhudson/livecd-rootfs/live-server-gzip-initramfs into lp://qastaging/livecd-rootfs
Proposed by
Michael Hudson-Doyle
Status: | Merged |
---|---|
Merged at revision: | 1657 |
Proposed branch: | lp://qastaging/~mwhudson/livecd-rootfs/live-server-gzip-initramfs |
Merge into: | lp://qastaging/livecd-rootfs |
Diff against target: |
56 lines (+14/-3) 2 files modified
debian/changelog (+7/-0) live-build/auto/config (+7/-3) |
To merge this branch: | bzr merge lp://qastaging/~mwhudson/livecd-rootfs/live-server-gzip-initramfs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Approve | ||
Balint Reczey | Pending | ||
Review via email: mp+341326@code.qastaging.launchpad.net |
Description of the change
I'm fairly sure this will make the boot faster in KVM at least but does anyone have any ideas how to quantify it? Will it be replicated on real hardware?
To post a comment you must log in.
Tagging Balint for a review, to speak to / quantify the tradeoffs here between gzip and lzma (compressed size + time to read initramfs from bootloader, vs. time to decompress in kernel).
There's no support for this yet in livecd-rootfs + live-build, but this seems like an ideal use case for lz4 instead - compressed initrd created once server-side, and uncompressed many times
on each boot of the live image. But we're still a way out from being able to make such a change and shouldn't block on it for bionic.
Also, aligning with my previous feedback to @rcj, we should really not be shadowing the live-build default compression here, but instead ensure $INITRAMFS_ COMPRESSION is unset for cases where live-build defaults (currently gzip; future, lz4?) DTRT.