Home
8 comments
Svenstaro5 months ago
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>
评论 #42438805 未加载
Svenstaro5 months ago
Is there a reason to use 9p over virtiofs in this case? It looks to me as though virtiofs was made exactly with the idea to deal good performance.
评论 #42441292 未加载
评论 #42438969 未加载
评论 #42442537 未加载
mordae5 months ago
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>.
dang5 months ago
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)
m4635 months ago
wow, clickbait title, then 9p and nix in the first couple paragraphs firmly set the hook.
评论 #42444428 未加载
glandium5 months ago
This was interesting, but by the end of it, I was still expecting some weird trick to work around the problem without the patch.
ryan_lane5 months ago
They delivered on the clickbait title to engagement time metric, as the title promises one weird trick and the content has no TLDR.
评论 #42438643 未加载
评论 #42438621 未加载
mannyv5 months ago
Tl;dr: file descriptors for the guest os are stored as linked lists by qemu, and changing that sped qemu file copying up by a ton.
评论 #42438824 未加载