3 ms·
I used dietlibc as a replacement for glibc in supermin, when making an initramfs. As background the size of the initramfs is key for boot performance since qem
by rwmj 7y ago
I used dietlibc as a replacement for glibc in supermin, when making an initramfs. As background the size of the initramfs is key for boot performance since qemu takes quite some time (where "some time" means milliseconds) to load a large initramfs; and the binaries in the initramfs are usually statically linked. The final size of the init binary was about 1/40th as big as when using glibc:
https://github.com/libguestfs/supermin/blob/c97b3917068597a0e68e88d9a905da766ade40da/README#L147 https://github.com/libguestfs/supermin/blob/c97b3917068597a0...
- pmoriarty 7y agoI don't do anything special to my initramfs, and the largest of them that I've generated over the years is 16 MB in size. For my desktop with a 3 TB drive, having the initramfs take up half a meg instead won't make any appreciable difference. I could see it being very useful on resource constrained microcontrollers or something, though.
- rwmj 7y agoIt makes a huge difference when trying to boot an appliance virtual machine in milliseconds. Paper: http://git.annexia.org/?p=libguestfs-talks.git;a=tree;f=2016-eng-talk http://git.annexia.org/?p=libguestfs-talks.git;a=tree;f=2016...
- CameronNemo 7y agoI believe the point is boot speed. Larger initramfs take longer to unpack.