[libvirt-users] 答复: virtual drive performance
mybe this is because you physic host memory is small then this will Causing instability of the virtual machine But I'm just guessing You can try to increase your memory Wang Liming 发件人: libvirt-users-boun...@redhat.com [mailto:libvirt-users-boun...@redhat.com] 代表 Dominik Psenner 发送时间: 2017年7月2日 16:22 收件人: libvirt-users@redhat.com 主题: Re: [libvirt-users] virtual drive performance Hi again, just today an issue I've thought to be resolved popped up again. We backup the machine by doing: virsh snapshot-create-as --domain domain --name backup --no-metadata --atomic --disk-only --diskspec hda,snapshot=external # backup hda.qcow2 virsh blockcommit domain hda --active --pivot Every now and then this process fails with the following error message: error: failed to pivot job for disk hda error: block copy still active: disk 'hda' not ready for pivot yet Could not merge changes for disk hda of domain. VM may be in invalid state. I expect live backups are a great asset and should work. Is this a bug that may relates also to the virtual drive performance issues we observe? Cheers 2017-07-02 10:10 GMT+02:00 Dominik Psenner: Hi a small update on this. I just migrated the vm from the site to my laptop and fired it up. The exact same xml configuration (except file paths and such) starts up and bursts with 50Mb/s to 115Mb/s in the guest. This allows only one reasonable answer: the cpu on my laptop is somehow better suited to emulate IO than the CPU built into the host on site. The host there is a HP proliant microserver gen8 with xeon processor. But the processor there is also never capped at 100% when the guest copies files. I just ran another test by copying a 3Gb large file on the guest. What I can observe on my computer is that the copy process is not at a constant rate but rather starts with 90Mb/s, then drops down to 30Mb/s, goes up to 70Mb/s, drops down to 1Mb/s, goes up to 75Mb/s, drops to 1Mb/s, goes up to 55Mb/s and the pattern continues. Please note that the drive is still configured as: and I would expect a constant rate that is either high or low since there is no caching involved and the underlying hard drive is a samsung ssd evo 850. To have an idea how fast that drive is on my laptop: $ dd if=/dev/zero of=testfile bs=1M count=1000 oflag=direct 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB, 1000 MiB) copied, 2.47301 s, 424 MB/s I can further observe that the smaller the saved chunks are the slower the overall performance is: dd if=/dev/zero of=testfile bs=512K count=1000 oflag=direct 1000+0 records in 1000+0 records out 524288000 bytes (524 MB, 500 MiB) copied, 1.34874 s, 389 MB/s $ dd if=/dev/zero of=testfile bs=5K count=1000 oflag=direct 1000+0 records in 1000+0 records out 512 bytes (5.1 MB, 4.9 MiB) copied, 0.105109 s, 48.7 MB/s $ dd if=/dev/zero of=testfile bs=1K count=1 oflag=direct 1+0 records in 1+0 records out 1024 bytes (10 MB, 9.8 MiB) copied, 0.668438 s, 15.3 MB/s $ dd if=/dev/zero of=testfile bs=512 count=2 oflag=direct 2+0 records in 2+0 records out 1024 bytes (10 MB, 9.8 MiB) copied, 1.10964 s, 9.2 MB/s Could this be a limiting factor? Does qemu/kvm do many many writes of just a few bytes? Ideas, anyone? Cheers 2017-06-21 20:46 GMT+02:00 Dan : On Tue, Jun 20, 2017 at 04:24:32PM +0200, Gianluca Cecchi wrote: > On Tue, Jun 20, 2017 at 3:38 PM, Dominik Psenner wrote: > > > > > to the following: > > > > > > > > > > > > > > > > > > > > Do you see any gotchas in this configuration that could prevent the > > virtualized guest to power on and boot up? > > > > > When I configure like this, from a linux guest point of view I get this > Symbios Logic SCSI Controller: > 00:08.0 SCSI storage controller: LSI Logic / Symbios Logic 53c895a > > But htis is true only if you add the SCSI controller too, not only the disk > definition. > In my case > > >function='0x0'/> > > > Note the slot='0x08' that is reflected into the first field of lspci inside > my linux guest. > So between your controllers you have to add the SCSI one > > In my case (Fedora 25 with virt-manager-1.4.1-2.fc25.noarch, > qemu-kvm-2.7.1-6.fc25.x86_64, libvirt-2.2.1-2.fc25.x86_64) with "Disk bus" > set as SCSI in virt-manager, the xml defintiion for the guest is > automatically updated with the controller if not existent yet. > And the disk definition sections is like this: > > > > > > > > > > So I think you should set dev='sda' and not 'hda' in your xml for it > I am actually very curious to know if that would make a difference. I don't have a such windows vm images ready to test at present. Dan > I don't kknow if w2016 contains the symbios logic drivers already > installed, so that a "simple" reboot could imply an automatic > reconfiguration of the guest > Note also that
[libvirt-users] 答复: 答复: Virsh command hanging
I don't know whether this is a bug because I have tried a lot of method to soluted this problem but I alway failed at last I have to upgrade our os version 发件人: abhishek jain [mailto:abhish_j...@yahoo.com] 发送时间: 2017年2月21日 21:33 收件人: 王李明; libvirt-users@redhat.com 主题: Re: 答复: [libvirt-users] Virsh command hanging I can only use RHEL6. Is it a bug in libvirt ?? Regards Abhishek _ From: 王李明 <wan...@certusnet.com.cn> To: 'abhishek jain' <abhish_j...@yahoo.com>; libvirt-users@redhat.com Sent: Tuesday, 21 February 2017 11:54 AM Subject: 答复: [libvirt-users] Virsh command hanging I have this problem in centos6.5 when I upgrade to centos 7.1 this problem is soluted maybe you can upgrade your os version 发件人: libvirt-users-boun...@redhat.com [mailto:libvirt-users-boun...@redhat.com] 代表 abhishek jain 发送时间: 2017年2月21日 13:51 收件人: libvirt-users@redhat.com 主题: [libvirt-users] Virsh command hanging Hi, I started the VMs with libvirt 3 days ago (17th Feb). Now when I am trying to shutdown the domain, all my virsh command is hanging even virt-manager remains in "connecting.." mode and is not showing active domains. When I set the libvirt debug env and call "virsh list" it hangs in poll. Here is the log setenv LIBVIRT_DEBUG 1 virsh list 2017-02-21 05:31:09.241+: 125812: debug : virEventPollCalculateTimeout:320 : Calculate expiry of 0 timers 2017-02-21 05:31:09.241+: 125811: debug : virEventPollUpdateHandle:146 : EVENT_POLL_UPDATE_HANDLE: watch=2 events=0 2017-02-21 05:31:09.241+: 125812: debug : virEventPollCalculateTimeout:346 : Timeout at 0 due in -1 ms 2017-02-21 05:31:09.241+: 125812: debug : virEventPollRunOnce:614 : EVENT_POLL_RUN: nhandles=2 timeout=-1 2017-02-21 05:31:09.241+: 125811: debug : virEventPollInterruptLocked:701 : Interrupting 2017-02-21 05:31:09.241+: 125812: debug : virEventPollRunOnce:625 : Poll got 1 event(s) 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchTimeouts:410 : Dispatch 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchHandles:455 : Dispatch 2 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchHandles:469 : i=0 w=1 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchHandles:483 : EVENT_POLL_DISPATCH_HANDLE: watch=1 events=1 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:501 : Cleanup 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:537 : Found 0 out of 0 timeout slots used, releasing 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupHandles:549 : Cleanup 2 2017-02-21 05:31:09.242+: 125812: debug : virEventRunDefaultImpl:244 : running default event implementation 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:501 : Cleanup 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:537 : Found 0 out of 0 timeout slots used, releasing 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupHandles:549 : Cleanup 2 2017-02-21 05:31:09.242+: 125812: debug : virEventPollMakePollFDs:378 : Prepare n=0 w=1, f=4 e=1 d=0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollMakePollFDs:378 : Prepare n=1 w=2, f=6 e=0 d=0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCalculateTimeout:320 : Calculate expiry of 0 timers 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCalculateTimeout:346 : Timeout at 0 due in -1 ms 2017-02-21 05:31:09.242+: 125812: debug : virEventPollRunOnce:614 : EVENT_POLL_RUN: nhandles=1 timeout=-1 <> here is the log snippet of /var/log/libvirt/libvirtd.log 2017-02-17 06:18:26.198+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:18:41.022+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:18:56.017+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:11.019+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:26.016+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:41.021+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:56.014+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:11.021+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:26.014+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:41.014+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:56.016+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:21:11.019+: 5052: error :
[libvirt-users] 答复: Virsh command hanging
I have this problem in centos6.5 when I upgrade to centos 7.1 this problem is soluted maybe you can upgrade your os version 发件人: libvirt-users-boun...@redhat.com [mailto:libvirt-users-boun...@redhat.com] 代表 abhishek jain 发送时间: 2017年2月21日 13:51 收件人: libvirt-users@redhat.com 主题: [libvirt-users] Virsh command hanging Hi, I started the VMs with libvirt 3 days ago (17th Feb). Now when I am trying to shutdown the domain, all my virsh command is hanging even virt-manager remains in "connecting.." mode and is not showing active domains. When I set the libvirt debug env and call "virsh list" it hangs in poll. Here is the log setenv LIBVIRT_DEBUG 1 virsh list 2017-02-21 05:31:09.241+: 125812: debug : virEventPollCalculateTimeout:320 : Calculate expiry of 0 timers 2017-02-21 05:31:09.241+: 125811: debug : virEventPollUpdateHandle:146 : EVENT_POLL_UPDATE_HANDLE: watch=2 events=0 2017-02-21 05:31:09.241+: 125812: debug : virEventPollCalculateTimeout:346 : Timeout at 0 due in -1 ms 2017-02-21 05:31:09.241+: 125812: debug : virEventPollRunOnce:614 : EVENT_POLL_RUN: nhandles=2 timeout=-1 2017-02-21 05:31:09.241+: 125811: debug : virEventPollInterruptLocked:701 : Interrupting 2017-02-21 05:31:09.241+: 125812: debug : virEventPollRunOnce:625 : Poll got 1 event(s) 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchTimeouts:410 : Dispatch 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchHandles:455 : Dispatch 2 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchHandles:469 : i=0 w=1 2017-02-21 05:31:09.242+: 125812: debug : virEventPollDispatchHandles:483 : EVENT_POLL_DISPATCH_HANDLE: watch=1 events=1 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:501 : Cleanup 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:537 : Found 0 out of 0 timeout slots used, releasing 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupHandles:549 : Cleanup 2 2017-02-21 05:31:09.242+: 125812: debug : virEventRunDefaultImpl:244 : running default event implementation 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:501 : Cleanup 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupTimeouts:537 : Found 0 out of 0 timeout slots used, releasing 0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCleanupHandles:549 : Cleanup 2 2017-02-21 05:31:09.242+: 125812: debug : virEventPollMakePollFDs:378 : Prepare n=0 w=1, f=4 e=1 d=0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollMakePollFDs:378 : Prepare n=1 w=2, f=6 e=0 d=0 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCalculateTimeout:320 : Calculate expiry of 0 timers 2017-02-21 05:31:09.242+: 125812: debug : virEventPollCalculateTimeout:346 : Timeout at 0 due in -1 ms 2017-02-21 05:31:09.242+: 125812: debug : virEventPollRunOnce:614 : EVENT_POLL_RUN: nhandles=1 timeout=-1 <> here is the log snippet of /var/log/libvirt/libvirtd.log 2017-02-17 06:18:26.198+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:18:41.022+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:18:56.017+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:11.019+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:26.016+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:41.021+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:19:56.014+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:11.021+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:26.014+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:41.014+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:20:56.016+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:21:11.019+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:21:26.018+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:21:41.022+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:21:56.019+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:22:11.020+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-17 06:22:26.012+: 5052: error : daemonStreamHandleAbort:609 : stream aborted at client request 2017-02-18 01:53:36.308+: 5052: warning :
[libvirt-users] centos6.5 libvirt 1.2.14 virsh hang
hi all: my environment is centos6.5 libvirt version is 1.2.14-1 qemu version is 1.7.0-1 I use openstack create a windows guest about two days later I run virsh list but the the process is hang virsh list can not return any thing it hang look like this: then I run /etc/init.d/libvirtd restart it show libivrtd stop faild and start failed i will use the gdb and find the gdb can not print any process stack look like this: I run /etc/init.d/libvirtd status it show libvired dead but subsys locked who can help me ? thans ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
[libvirt-users] centos6.5 libvirt 1.2.14 virsh hang
hi all: my environment is centos6.5 libvirt version is 1.2.14-1 qemu version is 1.7.0-1 I use openstack create a windows guest about two days later I run virsh list but the the process is hang virsh list can not return any thing it hang then I run /etc/init.d/libvirtd restart it show libivrtd stop faild and start failed I run /etc/init.d/libvirtd status it show libvired dead but subsys locked who can help me ? thans ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users