[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I/O performance regression between 9.0.2 and 11.1.3 on Xen


  • To: qemu-devel@xxxxxxxxxx, "Edgar E. Iglesias" <edgar.iglesias@xxxxxxx>
  • From: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 25 Nov 2026 12:37:22 +0100
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=fm3 header.d=invisiblethingslab.com header.i="@invisiblethingslab.com" header.h="Cc:Content-Type:Date:From:Message-ID:MIME-Version:Subject:To"; dkim=pass header.s=fm3 header.d=messagingengine.com header.i="@messagingengine.com" header.h="Cc:Content-Type:Date:Feedback-ID:From:Message-ID:MIME-Version:Subject:To:X-ME-Proxy:X-ME-Sender"
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 25 Nov 2026 11:37:35 +0000
  • Dkim2-signature: i=1; m=1; t=1795606646; d=invisiblethingslab.com; mf=PG1hcm1hcmVrQGludmlzaWJsZXRoaW5nc2xhYi5jb20+; rt=PHhlbi1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZz4=; s=fm3:rsa-sha256:Jxabz/s0gFab6OgrSU7ueXCrr0RwQ9+8uXnRdsQXoseMIgd ERo4MYss0t1Bbl4Z47vCyG2ROT2We4u36oaD6yEkndi+A5xSJMSUQ5f22gJwMhDE fddeMvg4h6RLWk685gNYmTw+N9nq2a4MuHnmFwm3Jh+KsDx3BZaJ6atBuBzkrhsE dsREXcOMlbvjDlgoIHEXHQ8yQHej4pzXcv70tSl9CCf3nxWGzurF0BDxJG9TY/BR neZo8fsHZ5Wty1GExcAIH9BSBQpvRSjOMkea4NgVwvdg0A/0Sg9smqu8P+caxjQT OxekfS+TptIOUl+3hRpn11m6bs07zAQWfr4x3EA==;
  • Feedback-id: i1568416f:Fastmail
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Message-instance: m=1; h=sha256:yHwUnP5w/Bq1V8pwlIGqodEbIbaTKOOc199MPDgXSIw=:ye2bjK0mgrHRU/fjaH47XDXFf57kiI31H4SKA/v08r0=;

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@xxxxxxx>
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@xxxxxxx>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>

 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: signature.asc
Description: PGP signature


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.