All of lore.kernel.org
 help / color / mirror / Atom feed
* PV performance degraded after live migration
@ 2017-03-15 11:20 Olaf Hering
  2017-03-15 11:30 ` Andrew Cooper
  2017-03-15 15:43 ` Alan Robinson
  0 siblings, 2 replies; 18+ messages in thread
From: Olaf Hering @ 2017-03-15 11:20 UTC (permalink / raw)
  To: xen-devel


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-03-16 10:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 11:20 PV performance degraded after live migration Olaf Hering
2017-03-15 11:30 ` 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

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.