From: Sergio Lopez <slp@redhat.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com
Subject: [Qemu-devel] Flatview rendering scalability issue
Date: Mon, 11 Mar 2019 10:26:37 +0100 [thread overview]
Message-ID: <871s3dg3si.fsf@redhat.com> (raw)
Hi,
Thanks to Q35/PCIe, we can now assign a large number of PCI devices to a
single VM, but it seems that Flatview rendering scales poorly (worse
than linear) when it has to deal with a large number of Memory Regions.
I've measured to cost of the pci_default_write_config() call at
virtio_write_config() for 1 PCI device vs. 100 PCI devices:
- 1 PCI device
write_config: 1879 us
write_config: 1037 us
write_config: 1 us
write_config: 3 us
write_config: 1783 us
write_config: 2652 us
write_config: 1 us
write_config: 2 us
write_config: 1551 us
- 100 PCI devices
write_config: 503963 us
write_config: 1 us
write_config: 493344 us
write_config: 0 us
write_config: 472946 us
write_config: 1 us
write_config: 495175 us
write_config: 1 us
write_config: 519312 us
write_config: 1 us
I guess this is a consequence of having to reset/rebuild the Flatview
when altering the PCI BAR regions.
Is this a known issue we're already working on?
Thanks,
Sergio (slp).
next reply other threads:[~2019-03-11 9:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-11 9:26 Sergio Lopez [this message]
2019-03-11 10:19 ` [Qemu-devel] Flatview rendering scalability issue Paolo Bonzini
2019-03-11 13:48 ` Sergio Lopez
2019-03-11 14:07 ` Paolo Bonzini
2019-03-11 14:35 ` Sergio Lopez
2019-03-12 3:23 ` Peter Xu
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=871s3dg3si.fsf@redhat.com \
--to=slp@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@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 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.