How measure boot time?
by shogun1234 from LinuxQuestions.org on (#51HAV)
I only use qemu several time, so I am really newbie to qemu virtualization (but I am experience in using linux for several years). In linux, I know I can measure a command by time command. However, when I boot up an image using qemu-system-x86_64, how do I know how long qemu takes to boot the image until e.g. login screen gets display (or to boot a specific process)?
The information I find so far is https://stefano-garzarella.github.io...nux-boot-time/. But this looks like patching linux and qemu from source code. So I am curious is there any way to measure such metrics (boot time) without applying patch? For instance a flag in qemu command can be used to measure or monitor such info.
Qemu I use is version 4.1.0. Linux kernel version 5.2.0-2-amd64


The information I find so far is https://stefano-garzarella.github.io...nux-boot-time/. But this looks like patching linux and qemu from source code. So I am curious is there any way to measure such metrics (boot time) without applying patch? For instance a flag in qemu command can be used to measure or monitor such info.
Qemu I use is version 4.1.0. Linux kernel version 5.2.0-2-amd64