[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1686980] Re: qemu is very slow when adding 16, 384 vir

From: Daniel Berrange
Subject: [Qemu-devel] [Bug 1686980] Re: qemu is very slow when adding 16, 384 virtio-scsi drives
Date: Fri, 28 Apr 2017 14:08:54 -0000

I added further instrumentation and got this profile of where the
remaining time goes

1000x drive_new 18.347secs
-> 1000x blockdev_init 18.328secs
   -> 1000x monitor_add_blk 4.515secs
      -> 1000x blk_by_name 1.545secs
      -> 1000x bdrv_find_node 2.968secs
   -> 1000x blk_new_open 13.786secs
      -> 1000x bdrv_open 13.783secs

These numbers are all increasing as we process more & more -drive args,
so there's some O(N) factor in blk_by_name, bdrv_find_node and bdrv_open

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  qemu is very slow when adding 16,384 virtio-scsi drives

Status in QEMU:

Bug description:
  qemu runs very slowly when adding many virtio-scsi drives.  I have
  attached a small reproducer shell script which demonstrates this.

  Using perf shows the following stack trace taking all the time:

      72.42%    71.15%  qemu-system-x86  qemu-system-x86_64       [.] drive_get

      21.70%    21.34%  qemu-system-x86  qemu-system-x86_64       [.] 

       3.65%     3.59%  qemu-system-x86  qemu-system-x86_64       [.] blk_next

To manage notifications about this bug go to:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]