qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Brad Campbell <lists2009@fnarfbargle.com>
Cc: qemu-devel <qemu-devel@nongnu.org>, qemu-discuss@nongnu.org
Subject: Re: [Qemu-devel] Cross-posted : Odd QXL/KVM performance issue with a Windows 7 Guest
Date: Mon, 9 Sep 2019 16:22:05 +0100	[thread overview]
Message-ID: <20190909152205.GC2726@work-vm> (raw)
In-Reply-To: <a9799b8b-a294-59e3-f329-060b19cdcf0e@fnarfbargle.com>

* Brad Campbell (lists2009@fnarfbargle.com) wrote:
> 
> On 7/9/19 03:03, Dr. David Alan Gilbert wrote:
> > * Brad Campbell (lists2009@fnarfbargle.com) wrote:
> > > On 2/9/19 6:23 pm, Brad Campbell wrote:
> > > 
> > > > Here is the holdup :
> > > > 
> > > > 11725@1567416625.003504:qxl_ring_command_check 0 native
> > > > 11725@1567416625.102653:qxl_io_write 0 native addr=0 (QXL_IO_NOTIFY_CMD)
> > > > val=0 size=1 async=0
> > > > 
> > > > ~100ms delay prior to each logged QXL_IO_NOTIFY_CMD on the AMD box which
> > > > explains the performance difference. Now I just need to figure out if
> > > > that lies in the guest, the guest QXL driver, QEMU or SPICE and why it
> > > > exhibits on the AMD box and not the i7.
> > > > 
> > > > To get to this point, I recompiled the kernel on the i7 box with both
> > > > AMD and Intel KVM modules. Once that was running I cloned the drive and
> > > > put it in the AMD box, so the OS, software stack and all dependencies
> > > > are identical.
> > > Reacp :
> > > 
> > > I have a machine with a Windows 7 VM which is running on an i7-3770. This
> > > works perfectly.
> > > 
> > > Clone the disk and put it in a new(ish) AMD Ryzen 1500x machine and the
> > > display output using qxl/spice is now limited to ~5-7fps.
> > > 
> > > I originally cloned the entire machine to keep the software versions
> > > identical.
> > > 
> > > To simplify debugging and reproduction I'm now using :
> > > - An identical SPICE version to that on the i7.
> > > - A fresh 64 bit Windows 7 VM.
> > > - The D2D benchmark from Crystalmark 2004R7.
> > > 
> > > The machine is booted with :
> > > 
> > > qemu -enable-kvm \
> > >   -m 8192\
> > >   -rtc base=localtime\
> > >   -vga qxl\
> > >   -device qxl\
> > >   -global qxl-vga.guestdebug=3\
> > >   -global qxl-vga.cmdlog=1\
> > >   -global qxl-vga.vram_size=65536\
> > >   -global qxl.vram_size=65536\
> > >   -global qxl-vga.ram_size=65536\
> > >   -global qxl.ram_size=65536\
> > >   -net nic,model=virtio\
> > >   -net tap,ifname=tap0,script=/etc/qemu-ifup,vhost=on\
> > >   -usbdevice tablet\
> > >   -spice port=5930,disable-ticketing\
> > >   -device virtio-serial\
> > >   -chardev spicevmc,id=vdagent,name=vdagent\
> > >   -device virtserialport,chardev=vdagent,name=com.redhat.spice.0\
> > >   -smp 3,maxcpus=3,cores=3,threads=1,sockets=1\
> > >   -cpu qemu64,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time \
> > -cpu qemu64 is almost always a bad idea;  does -cpu host help ?
> > 
> > Dave
> 
> 
> No. I was using -cpu host. I changed it to qemu64 for testing so I could add & remove -enable-kvm for testing without the machine changing drivers about.

Oh, hmm.
Sorry I don't know too much where to look then; you have any of:
  a) Windows
  b) guest graphics drivers
  c) spice server in qemu
 
and probalby some more.

So I think it's going to be a case of profiling on the two different
systems and see if you can spot anything in particular that stands out.

Dave

> Regards,
> 
> Brad
> 
> -- 
> An expert is a person who has found out by his own painful
> experience all the mistakes that one can make in a very
> narrow field. - Niels Bohr
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK


  reply	other threads:[~2019-09-09 15:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ed421291-7178-d7bc-5ed3-9863d28ceba9@fnarfbargle.com>
     [not found] ` <dd33a398-3c1f-0c92-2318-00ad144e1e5d@fnarfbargle.com>
2019-09-06  8:49   ` [Qemu-devel] Cross-posted : Odd QXL/KVM performance issue with a Windows 7 Guest Brad Campbell
2019-09-06 13:38     ` Brad Campbell
2019-09-06 14:41       ` Brad Campbell
2019-11-05 11:32         ` Alex Bennée
2019-09-06 19:03     ` Dr. David Alan Gilbert
2019-09-07  0:44       ` Brad Campbell
2019-09-09 15:22         ` Dr. David Alan Gilbert [this message]
2019-09-12 14:54           ` [Qemu-devel] [Qemu-discuss] " Brad Campbell
2019-11-05  2:38     ` Brad Campbell

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=20190909152205.GC2726@work-vm \
    --to=dgilbert@redhat.com \
    --cc=lists2009@fnarfbargle.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.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).