https://www.quora.com/unanswered/How-many-instructions-does-a-typical-Linux-kernel-boot-take
Must vary widely with kernel configuration, so obviously the methodology is what matters most.
Particularly interested in the most minimal boot possible, up to /init execution.
Could be something with QEMU, and I am willing to write my own init that just prints something and shuts down linux.
If the firmware / bootloader is considerable, I'd hope for a way to discount the bootloader time as well, considering only the first instruction fo the kernel code that run (start_kernel or some even earlier arch specific setup, see https://unix.stackexchange.com/questions/86955/does-the-kernel-have-a-main-function and https://stackoverflow.com/questions/18266063/does-kernel-have-main-function/33422401#33422401 )
Early boot can still make some BIOS calls, so it is hard to get an exact number.
QEMU instruction count possibilities:
https://www.quora.com/unanswered/How-many-instructions-does-a-typical-Linux-kernel-boot-take
Must vary widely with kernel configuration, so obviously the methodology is what matters most.
Particularly interested in the most minimal boot possible, up to /init execution.
Could be something with QEMU, and I am willing to write my own
initthat just prints something and shuts down linux.If the firmware / bootloader is considerable, I'd hope for a way to discount the bootloader time as well, considering only the first instruction fo the kernel code that run (
start_kernelor some even earlier arch specific setup, see https://unix.stackexchange.com/questions/86955/does-the-kernel-have-a-main-function and https://stackoverflow.com/questions/18266063/does-kernel-have-main-function/33422401#33422401 )Early boot can still make some BIOS calls, so it is hard to get an exact number.
QEMU instruction count possibilities: