linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonas Blixt <jonas.blixt@actia.se>
To: <xen-devel@lists.xenproject.org>, <linux-block@vger.kernel.org>
Cc: <john.ernberg@actia.se>
Subject: xen: arm64: Poor block device performance
Date: Wed, 24 Jul 2024 13:40:21 +0200	[thread overview]
Message-ID: <ZqDoJQ+HTfjc0SZO@W388ANL> (raw)

Hello,

I'm investigating a block device performance issue on our system.

Our setup is as follows:
SoC: NXP IMX8DXP (arm64), Dual core Cortex A35
Flash: eMMC, HS400
Xen 4.18.1
Dom0 kernel: 6.1.55
DomU kernel: 6.1.14

Dom0 has two vcpu's and domU has one. We're using the xen-blkfront/back drivers to expose block devices to domU.

We measure the following using a simple 'dd' -test (echo 3 > /proc/sys/vm/drop_caches && time dd if=/dev/XXX  of=/dev/null bs=1M count=64):

Directly on the eMMC block device in dom 0: 160 MByte/s
On xvd device in domU: 9.5 MByte/s

Ram block device in dom0: 460 MByte/s
On xvd device in domU: 246 MByte/s

The difference between the ram block device and the eMMC might suggest that there is some interaction between the xenblk driver and the mmc driver that causes this performance degradation. I'm not sure what to expect with the ram device but it at least does not have the same penalty.

I would appreciate any help or suggestions on how to debug this. Is 'blktrace' the right tool for this job and what should I look for?

Best Regards
Jonas

                 reply	other threads:[~2024-07-24 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ZqDoJQ+HTfjc0SZO@W388ANL \
    --to=jonas.blixt@actia.se \
    --cc=john.ernberg@actia.se \
    --cc=linux-block@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).