From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: kvm vs host (arm64)
Date: Tue, 21 Apr 2015 09:29:34 +0100 [thread overview]
Message-ID: <55360A6E.3080201@arm.com> (raw)
In-Reply-To: <1755708226.1162022.1429597412117.JavaMail.yahoo@mail.yahoo.com>
On 21/04/15 07:23, Mohan G wrote:
> comments inline
[...]
> However, we just realised what we were doing wrong. We did not use
> the accel=kvm flag with qemu which stopped us from using the -cpu
> type as host.(without which i think makes qemu emulate the processor
This really suggest you should do your homework before saying "it is
broken".
> (cortex-a57) itself). Now with using this flag we are about 35%
> slower in guest vs host for smaller block sizes (8k,32k,64k). However
> what is surprising is the fact that we are seeing better than host
> numbers with 512k and 1M record sizes of iozone.
Not surprising at all, as it is likely that you're simply exercising the
caches on the host side. Small sizes only show the overhead of trapping
to userspace. These should improve once vhost can be enabled (v4.1).
> Just wanted some confirmation about the below options. (this gives us good numbers)
>
> qemu-system-aarch64 -machine virt,accel=kvm -cpu host -nographic -smp
> 4 -m 8192 -global virtio-blk-device.scsi=off -device
> virtio-scsi-device,id=scsi -drive
> file=/vm/ubuntu-core-14.04.1-core-arm64.img,id=coreimg,cache=none,if=none
> -device scsi-hd,drive=coreimg -kernel /boot/vmlinuz-3.18.9 -initrd
> /boot/initrd.img-3.18.9 -netdev user,id=unet -device
> virtio-net-device,netdev=unet -drive
> file=/dev/sdb,cache=directsync,if=scsi,bus=0,unit=1 --append
> "console=ttyAMA0 root=/dev/sda"
>
No idea. Ask someone who knows about QEMU (I don't, and LAK is not the
right place).
> but with
> =======
> qemu-system-aarch64 -machine virt -cpu cortex-a57 (i.e without
> accel=kvm and -cpu as this one) we are pretty bad.
What did you expect?
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2015-04-21 8:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 5:45 kvm vs host (arm64) Mohan G
2015-04-20 9:09 ` Marc Zyngier
2015-04-20 10:39 ` Mohan G
2015-04-20 11:02 ` Marc Zyngier
2015-04-21 6:23 ` Mohan G
2015-04-21 8:29 ` Marc Zyngier [this message]
2015-04-21 13:29 ` Christopher Covington
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=55360A6E.3080201@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.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).