All of lore.kernel.org
 help / color / mirror / Atom feed
* I/O performance regression between 9.0.2 and 11.1.3 on Xen
@ 2026-11-25 11:37 Marek Marczykowski-Górecki
  2026-11-25 13:52 ` Edgar E. Iglesias
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Marczykowski-Górecki @ 2026-11-25 11:37 UTC (permalink / raw)
  To: qemu-devel, Edgar E. Iglesias
  Cc: xen-devel, Stefano Stabellini, Anthony PERARD

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

Hi,

After updating QEMU in a stubdomain on Qubes OS (Xen)[1], I got severe
performance regression. The benchmark I noticed it on is Windows
installation time - the first phase (until first reboot) went from
~7 min up to ~30 min. The version range isn't exactly trivial, but on
the other hand the issue is 100% reliable, so I easily bisected it. The
result:

123acd816dccbd358570ec7ab79c5cb2c863780b is the first bad commit
commit 123acd816dccbd358570ec7ab79c5cb2c863780b
Author: Edgar E. Iglesias <edgar.iglesias@amd.com>
Date:   Mon Apr 29 19:12:42 2024 +0200

    xen: mapcache: Unmap first entries in buckets
    
    When invalidating memory ranges, if we happen to hit the first
    entry in a bucket we were never unmapping it. This was harmless
    for foreign mappings but now that we're looking to reuse the
    mapcache for transient grant mappings, we must unmap entries
    when invalidated.
    
    Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
    Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>

 hw/xen/xen-mapcache.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

And indeed, reverting it on top of 11.1.3 fixes the issue. I assume that
page gets mapped and unmapped a lot (for disk I/O?). 
Let me know if some more information is needed, some logs to collect
maybe? Or a simplified test case?

[1] https://github.com/QubesOS/qubes-vmm-xen-stubdom-linux/pull/77

-- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-25 14:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 11:37 I/O performance regression between 9.0.2 and 11.1.3 on Xen Marek Marczykowski-Górecki
2026-11-25 13:52 ` Edgar E. Iglesias
2026-11-25 14:13   ` Marek Marczykowski-Górecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.