qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] virtio-scsi-pci iothread spins at 100%
@ 2017-02-08 16:33 Ed Swierk
  2017-02-08 16:54 ` Ed Swierk
  2017-02-09  1:47 ` Fam Zheng
  0 siblings, 2 replies; 11+ messages in thread
From: Ed Swierk @ 2017-02-08 16:33 UTC (permalink / raw)
  To: qemu-devel, stefanha

Recently I noticed that when I configure a virtio-scsi-pci device
using an iothread, as soon as the guest virtio-scsi driver loads, the
iothread spins at 100%:

  -object iothread,id=iothread1 -device virtio-scsi-pci,iothread=iothread1

This occurs whether or not a disk is attached, with either
poll-max-ns=0 or poll-max-ns=32768, and with Linux 3.13, 4.1 and 4.4
guests. The iothread stops spinning as soon as the guest driver is
unloaded.

I bisected the issue to commit 684e508c23d28af8d6ed2c62738a0f60447c8274:

  aio: add .io_poll_begin/end() callbacks

It doesn't seem to affect performance, but obviously consuming CPU
cycles when there's no disk attached is undesirable. Is this an
expected side effect of implementing iothread polling? Is there a way
to revert to the old non-polling behavior?

--Ed

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

end of thread, other threads:[~2017-02-09 14:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 16:33 [Qemu-devel] virtio-scsi-pci iothread spins at 100% Ed Swierk
2017-02-08 16:54 ` Ed Swierk
2017-02-09  1:47 ` Fam Zheng
2017-02-09  2:11   ` Ed Swierk
2017-02-09  2:52     ` Fam Zheng
2017-02-09  3:44       ` Ed Swierk
2017-02-09  5:39         ` Fam Zheng
2017-02-09  6:43           ` Fam Zheng
2017-02-09 10:12         ` Fam Zheng
2017-02-09 13:52           ` Ed Swierk
2017-02-09 14:16             ` Fam Zheng

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).