[Spice-devel] SPICE session hanging randomly

Anthony James anthony.james at cintriq.com
Thu Aug 23 05:31:42 PDT 2012


No swapping:

Host:

             total       used       free     shared    buffers     cached
Mem:         32101      31872        229          0        127      19937
-/+ buffers/cache:      11807      20294
Swap:        16383          0      16383

Client:

             total       used       free     shared    buffers     cached
Mem:          2006        937       1068          0         47        287
-/+ buffers/cache:        603       1403
Swap:         4031          0       4031

The VMs each have 1 vCPU and the host has 1 pCPU

 virsh nodeinfo
CPU model:           x86_64
CPU(s):              8
CPU frequency:       2666 MHz
CPU socket(s):       1
Core(s) per socket:  4
Thread(s) per core:  2
NUMA cell(s):        1
Memory size:         32872232 kB

Top:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
15663 qemu      20   0 2682m 2.3g 6476 S 13.6  7.3 521:42.57 qemu-kvm
(Windows 7)
10491 qemu      20   0 2547m 2.0g 6488 S  8.3  6.5 694:36.49 qemu-kvm
(Widnows 2008)

I'm wondering if the problem is network related since nothing really
seems to be using up a ton of resources on the host and client.  Any
thoughts?

On Wed, Aug 22, 2012 at 11:02 AM, Yaniv Kaul <ykaul at redhat.com> wrote:
> Any chance one of the participants (either the server or the client, but most likely the client) is heavily swapping?
> It's enough for a VM to have parts of its memory swapping to crawl.
>
> Alternatively, are you over-committing with CPU? For example, running a 4vCPU VM on a 2pCPU host?
> What do you see in 'top' ? 'kvm_stat' ?
> Y.
>
>
> ----- Original Message -----
>> Hello All,
>>
>> I was wondering if anyone else has experienced similar behavior to
>> what I'm seeing.  Randomly, while I'm connected to a remote VM using
>> SPICE, the screen and all input will freeze/hang for about 30 seconds
>> to 1 minute.  When it returns to normal any key presses or mouse
>> clicks that happened while the session was hung are acted upon.  I've
>> looked through the VM's log file located in /var/log/libvirt/qemu but
>> do not see anything that looks like an error.
>>
>> Additional information:
>>
>> Host:
>> CentOS 6.3
>>
>> qemu-kvm-0.12.1.2-2.295.el6_3.1.x86_64
>> spice-server-0.10.1-10.el6.x86_64
>> libvirt-0.9.10-21.el6_3.3.x86_64
>>
>> VM Guest:
>> Windows 7 and Windows 2008 R2
>>
>> Client:
>> CentOS 6.3
>>
>> virt-viewer-0.5.2-9.el6.x86_64
>>
>> Just curious if anyone else has seen this behavior and could point me
>> in the right direction for troubleshooting.
>>
>> Thanks,
>> Anthony
>> _______________________________________________
>> Spice-devel mailing list
>> Spice-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>>


More information about the Spice-devel mailing list