I've recently deep-dived into QEMU performance especially in order to cut down boot/bootstrapping times for quickly running tests and I'd like to share some tricks:<p>- Templating: <a href="https://qemu.readthedocs.io/en/v9.1.0/system/vm-templating.html" rel="nofollow">https://qemu.readthedocs.io/en/v9.1.0/system/vm-templating.h...</a>
- virtio-fs: <a href="https://virtio-fs.gitlab.io/" rel="nofollow">https://virtio-fs.gitlab.io/</a>
- Overlay storage images: <a href="https://wiki.archlinux.org/title/QEMU#Overlay_storage_images" rel="nofollow">https://wiki.archlinux.org/title/QEMU#Overlay_storage_images</a>
For better convenience there is now <a href="https://github.com/KDAB/hotspot">https://github.com/KDAB/hotspot</a> to render the flame graph from your perf data. You can also use online <a href="https://profiler.firefox.com/" rel="nofollow">https://profiler.firefox.com/</a>.
Discussed at the time:<p><i>Digging into a QEMU problem of slow data copying</i> - <a href="https://news.ycombinator.com/item?id=33192152">https://news.ycombinator.com/item?id=33192152</a> - Oct 2022 (31 comments)