6 ms·
I wonder if EFI boot with something like efistub would be a even faster. Afaik EC2 BIOS boots which has some fixed overhead (although Clear Linux still manages
by nijave 5y ago
I wonder if EFI boot with something like efistub would be a even faster. Afaik EC2 BIOS boots which has some fixed overhead (although Clear Linux still manages to boot very quickly)
Also on boot, I /think/ EC2 pulls down the AMI to EBS from S3 so theoretically smaller AMIs might be faster but not sure
- miyuru 5y ago> EC2 pulls down the AMI to EBS from S3 so theoretically smaller AMIs might be faster I managed to create a 1GB AMI of debian. Will be interesting to test this. https://blog.miyuru.lk/aws-root-volume/ https://blog.miyuru.lk/aws-root-volume/
- userbinator 5y agoMy experience with desktop hardware is that traditional BIOS boots faster than EFI, because the former does much less as well. (This is not the difference between "BIOS boot" and "EFI boot" options in an EFI BIOS, but rather a "pure native" BIOS vs "pure native" EFI with the same motherboard.)
- nijave 5y agoWas that with or without a bootloader? My understanding was EFI was marginally faster to initialize (which might not be true based on what you're saying) but you could also skip the bootloader and load the kernel directly (EFISTUB) which would also eliminate initram (which seems fine assuming you're using vanilla VMs on popular hypervisors/providers)
- JoshTriplett 5y agoI've tested both EFI and BIOS boots on EC2, and they have about the same overhead. And I've tested AMIs that are no bigger than a Linux kernel and a single static binary; times are still on par with what's listed here. Still takes 7-8 seconds before the first user-controlled instruction gets to run.
- nijave 5y agoGotcha, thanks for the info That's a bit disappointing but I guess AWS has spent a lot of time optimizing Lambda vs EC2