All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: qemu-devel@nongnu.org, "Edgar E. Iglesias" <edgar.iglesias@amd.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Anthony PERARD <anthony.perard@vates.tech>
Subject: I/O performance regression between 9.0.2 and 11.1.3 on Xen
Date: Wed, 25 Nov 2026 12:37:22 +0100	[thread overview]
Message-ID: <awbIcujrsqYLGS1B@mail-itl> (raw)

[-- 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 --]

             reply	other threads:[~2026-11-25 11:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 11:37 Marek Marczykowski-Górecki [this message]
2026-11-25 13:52 ` I/O performance regression between 9.0.2 and 11.1.3 on Xen Edgar E. Iglesias
2026-11-25 14:13   ` Marek Marczykowski-Górecki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awbIcujrsqYLGS1B@mail-itl \
    --to=marmarek@invisiblethingslab.com \
    --cc=anthony.perard@vates.tech \
    --cc=edgar.iglesias@amd.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.