All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Guest unresponsive after Virtqueue size exceeded error
@ 2017-06-14 21:56 Fernando Casas Schössow
  2017-06-16  6:58 ` Ladi Prosek
  0 siblings, 1 reply; 55+ messages in thread
From: Fernando Casas Schössow @ 2017-06-14 21:56 UTC (permalink / raw)
  To: qemu-devel

Hi there,

I recently migrated a Hyper-V host to qemu/kvm runing on Alpine Linux 3.6.1 (kernel 4.9.30 -with grsec patches- and qemu 2.8.1).

Almost on daily basis at least one of the guests is showing the following error in the log and the it needs to be terminated and restarted to recover it:

qemu-system-x86_64: Virtqueue size exceeded

Is not always the same guest, and the error is appearing for both, Linux (CentOS 7.3) and Windows (2012R2) guests.
As soon as this error appears the guest is not really working anymore. It may respond to ping or you can even try to login but then everything is very slow or completely unresponsive. Restarting the guest from within the guest OS is not working either and the only thing I can do is to terminate it (virsh destroy) and start it again until the next failure.

In Windows guest the error seems to be related to disk:
"Reset to device, \Device\RaidPort2, was issued" and the source is viostor

And in Linux guests the error is always (with the process and pid changing):

INFO: task <process>:<pid> blocked for more than 120 seconds

But unfortunately I was not able to find any other indication of a problem in the guests logs nor in the host logs except for the error regarding the virtqueue size. The problem is happening at different times of day and I couldn't find any patterns yet.

All the Windows guests are using virtio drivers version 126 and all Linux guests are CentOS 7.3 using the latest kernel available in the distribution (3.10.0-514.21.1). They all run qemu-guest agent as well.
All the guest disks are qcow2 images with cache=none and aimode=threads (tried native mode before but with the same results).

Example qemu command for a Linux guest:

/usr/bin/qemu-system-x86_64 -name guest=DOCKER01,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-24-DOCKER01/master-key.aes -machine pc-i440fx-2.8,accel=kvm,usb=off,dump-guest-core=off -cpu IvyBridge,+ds,+acpi,+ss,+ht,+tm,+pbe,+dtes64,+monitor,+ds_cpl,+vmx,+smx,+est,+tm2,+xtpr,+pdcm,+pcid,+osxsave,+arat,+xsaveopt -drive file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=/var/lib/libvirt/qemu/nvram/DOCKER01_VARS.fd,if=pflash,format=raw,unit=1 -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 4705b146-3b14-4c20-923c-42105d47e7fc -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-24-DOCKER01/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x4.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x4 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x4.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x4.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive file=/storage/storage-ssd-vms/virtual_machines_ssd/docker01.qcow2,format=qcow2,if=none,id=drive-virtio-disk0,cache=none,aio=threads -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=35,id=hostnet0,vhost=on,vhostfd=45 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:1c:af:ce,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/domain-24-DOCKER01/org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel1,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -spice port=5905,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -object rng-random,id=objrng0,filename=/dev/random -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x8 -msg timestamp=on

For what it worth, the same guests were working fine for years on Hyper-V on the same hardware (Intel Xeon E3, 32GB RAM, Supermicro mainboard, 6x3TB Western Digital Red disks and 6x120MB Kingston V300 SSD all connected to a LSI LSISAS2008 controller).
Except for this stability issue that I hope to solve everything else is working great and outperforming Hyper-V.

Any ideas, thoughts or suggestions to try to narrow down the problem?

Thanks in advance and sorry for the long email but I wanted to be as descriptive as possible.

Fer

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

end of thread, other threads:[~2019-03-07  7:14 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-14 21:56 [Qemu-devel] Guest unresponsive after Virtqueue size exceeded error Fernando Casas Schössow
2017-06-16  6:58 ` Ladi Prosek
2017-06-16 10:11   ` Fernando Casas Schössow
2017-06-16 10:25     ` Ladi Prosek
2017-06-19 22:10       ` Fernando Casas Schössow
2017-06-20  5:59         ` Ladi Prosek
2017-06-20  6:30           ` Fernando Casas Schössow
2017-06-20  7:52             ` Ladi Prosek
2017-06-21 12:19               ` Fernando Casas Schössow
2017-06-22  7:43                 ` Ladi Prosek
2017-06-23  6:29                   ` Fernando Casas Schössow
     [not found]                   ` <1498199343.2815.0@smtp-mail.outlook.com>
2017-06-24  8:34                     ` Fernando Casas Schössow
2019-01-31 11:32                       ` Fernando Casas Schössow
2019-02-01  5:48                         ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2019-02-01  8:17                           ` Fernando Casas Schössow
2019-02-04  6:06                             ` Stefan Hajnoczi
2019-02-04  7:24                               ` Fernando Casas Schössow
     [not found]                                 ` <AM5PR0602MB32368CB5ADDEC05F42D8BC8FA46D0@AM5PR0602MB3236.eurprd06.prod.outlo ok.com>
2019-02-06  7:15                                   ` Fernando Casas Schössow
     [not found]                                 ` <AM5PR0602MB32368CB5ADDEC05F42D8BC8FA46D0@AM5PR0602MB3236.eurprd06.prod.outlo>
     [not found]                                   ` <VI1PR0602MB3245032D51A5DF45AF6E1952A46F0@VI1PR0602MB3245.eurprd06.prod.outlo ok.com>
2019-02-06 16:47                                     ` Fernando Casas Schössow
2019-02-11  3:17                                       ` Stefan Hajnoczi
2019-02-11  9:48                                         ` Fernando Casas Schössow
2019-02-18  7:21                                         ` Fernando Casas Schössow
     [not found]                                           ` <VI1PR0602MB3245424120D151F29884A7E2A4630@VI1PR0602MB3245.eurprd06.prod.outlo ok.com>
2019-02-19  7:26                                             ` Fernando Casas Schössow
2019-02-20 16:58                                           ` Stefan Hajnoczi
2019-02-20 17:53                                             ` Paolo Bonzini
2019-02-20 18:56                                               ` Fernando Casas Schössow
2019-02-21 11:11                                                 ` Stefan Hajnoczi
2019-02-21 11:33                                                   ` Fernando Casas Schössow
     [not found]                                                   ` <VI1PR0602MB3245593855B029B427ED544FA47E0@VI1PR0602MB3245.eurprd06.prod.outlook.com>
     [not found]                                                     ` <CAJSP0QUs9Yz2-k1KyVMwpgx6RwY9cK7qdQRCQ74xmgXJPJR-qw@mail.gmail.com>
     [not found]                                                       ` <VI1PR0602MB32453A8B5CBC0308C7D18F1DA47E0@VI1PR0602MB3245.eurprd06.prod.outlook.com>
     [not found]                                                         ` <CAJSP0QVxaW3tezjBN9owJHsxzE9h8_qcaeRr5zHHKxKJOeFnkQ@mail.gmail.com>
     [not found]                                                           ` <CAJSP0QVXoZJ9MJ0qp4RM_m2fGJ8iFSyJMAU_X7mdiQvpOK59KA@mail.gmail.com>
     [not found]                                                             ` <VI1PR0602MB324516419266A934FE7759C6A47E0@VI1PR0602MB3245.eurprd06.prod.outlook.com>
     [not found]                                                               ` <VI1PR0602MB324516419266A934FE7759C6A47E0@VI1PR0602MB3245.eurprd06.prod.outlo>
     [not found]                                                                 ` <VI1PR0602MB32454C17192EFA863E29CC49A47E0@VI1PR0602MB3245.eurprd06.prod.outlo>
     [not found]                                                                   ` <VI1PR0602MB324547F72DA9EDEB1613C888A47E0@VI1PR0602MB3245.eurprd06.prod.outlook.com>
     [not found]                                                                     ` <CAJSP0QUg=cq3tCSLidQ9BR2hxAo3K6gA6LKtpx5Rjb=_6XgJ6Q@mail.gmail.com>
     [not found]                                                                       ` <28e6b4ed-9afd-3a79-6267-86c7385c23ce@redhat.com>
     [not found]                                                                         ` <VI1PR0602MB324578F91F1AF9390D03022FA47F0@VI1PR0602MB3245.eurprd06.prod.outlook.com>
2019-02-22 14:04                                                                           ` Stefan Hajnoczi
2019-02-22 14:38                                                                             ` Paolo Bonzini
2019-02-22 14:43                                                                             ` Fernando Casas Schössow
2019-02-22 14:55                                                                               ` Paolo Bonzini
2019-02-22 15:48                                                                                 ` Fernando Casas Schössow
2019-02-22 16:37                                                                             ` Dr. David Alan Gilbert
2019-02-22 16:39                                                                               ` Paolo Bonzini
2019-02-22 16:47                                                                                 ` Dr. David Alan Gilbert
2019-02-23 11:49                                                                             ` Natanael Copa
2019-02-26 13:30                                                                               ` Paolo Bonzini
2019-02-28  7:35                                                                                 ` Fernando Casas Schössow
2019-02-23 15:55                                                                             ` Natanael Copa
2019-02-23 16:18                                                                               ` Peter Maydell
2019-02-25 10:24                                                                                 ` Natanael Copa
2019-02-25 10:34                                                                                   ` Peter Maydell
2019-02-25 12:15                                                                                     ` Fernando Casas Schössow
2019-02-25 12:21                                                                                     ` Natanael Copa
2019-02-25 13:06                                                                                       ` Peter Maydell
2019-02-25 13:25                                                                                         ` Natanael Copa
2019-02-25 13:32                                                                                           ` Fernando Casas Schössow
     [not found]                                                                                             ` <VI1PR0602MB3245A6B693B23DA2E0E8E500A47A0@VI1PR0602MB3245.eurprd06.prod.outlo ok.com>
2019-02-25 15:41                                                                                               ` Fernando Casas Schössow
2019-02-28  9:58                                                                                         ` Peter Maydell
2019-03-07  7:14                                                                                           ` Fernando Casas Schössow
2019-02-23 16:21                                                                               ` Fernando Casas Schössow
2019-02-25 10:30                                                                               ` Stefan Hajnoczi
2019-02-25 10:33                                                                                 ` Stefan Hajnoczi
2019-02-23 16:57                                                                             ` Peter Maydell

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.