From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xen.org
Subject: PV performance degraded after live migration
Date: Wed, 15 Mar 2017 12:20:44 +0100 [thread overview]
Message-ID: <20170315112044.GA14366@aepfle.de> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1552 bytes --]
After reports about degraded performance after a PV domU was migrated
from one dom0 to another it turned out that this issue happens with
every version of Xen and every version of domU kernel.
The used benchmark is 'sysbench memory'. I hacked it up to show how long
the actual work takes, and that loop takes longer to execute after the
domU is migrated. In my testing the loop (memory_execute_event) takes
about 1200ns, after migration it takes about 1500ns. It just writes 0 to
an array of memory. In total sysbench reports 6500 MiB/sec, after
migration its just 3350 MiB/sec.
The source of the modified test can be found here:
https://github.com/olafhering/sysbench/compare/master...pv
This happens on several hosts. NUMA or not makes no difference. CPU
pinning or not makes no difference. Pinning of the test pthreads makes
no difference. It was initially reported with xen-4.4, I see it with
staging too. The guest kernel makes no difference, several variants of
xenlinux or pvops based show the slowdown. Also live migration to
localhost is affected.
The domU.cfg looks like that:
name='pv'
memory=1024
vcpus=4
cpus=[ "4", "5", "6", "7" ]
disk=[ 'file:/disk0.raw,xvda,w', ]
vif=[ 'bridge=br0,type=netfront', ]
vfb=[ 'type=vnc,vncunused=1,keymap=de', ]
serial="pty"
kernel="/usr/lib/grub2/x86_64-xen/grub.xen"
Xen is booted with "console=com1 com1=115200 loglvl=all guest_loglvl=all
dom0_max_vcpus=2 dom0_vcpus_pin=on".
I wonder what the cause might be, and how to check where the time is
spent.
Olaf
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2017-03-15 11:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-15 11:20 Olaf Hering [this message]
2017-03-15 11:30 ` PV performance degraded after live migration Andrew Cooper
2017-03-15 14:52 ` Olaf Hering
2017-03-15 15:23 ` Olaf Hering
2017-03-15 15:26 ` Andrew Cooper
2017-03-15 15:33 ` Juergen Gross
2017-03-15 15:43 ` Boris Ostrovsky
2017-03-15 15:53 ` Juergen Gross
2017-03-15 16:13 ` Jan Beulich
2017-03-16 8:13 ` Olaf Hering
2017-03-16 10:20 ` Jan Beulich
2017-03-15 16:02 ` Jan Beulich
2017-03-15 16:41 ` Boris Ostrovsky
2017-03-15 16:50 ` Jan Beulich
2017-03-15 15:43 ` Alan Robinson
2017-03-15 15:51 ` Andrew Cooper
2017-03-15 15:53 ` Jan Beulich
2017-03-15 15:56 ` Alan Robinson
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=20170315112044.GA14366@aepfle.de \
--to=olaf@aepfle.de \
--cc=xen-devel@lists.xen.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.