Number of threads for virtual machine process

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

 



Hello all,
             On a RHEL 6.4 server i created a vm with 2 VCPU and
expecting to see single process with 2 threads on host.
but
      top -p "pid-of-qemu" -H

  shows many threads randomly being created and
destroyed,"pid-of-qemu" remains the same but other threads' pid keep
on changing.

Can some one help me understand this better.I was in a belief that
virtual machine with 2 VCPU will have 2 threads,but sometimes total
thread count has reached upto 8.

top output from host when running multiple "dd"

11116 qemu      20   0 2480m 381m 4664 R 100.2  3.9   1:57.97
/usr/libexec/qemu-kvm -name HAP -S -M rhel6.1.0 -enable-kvm -m 2048
-smp 2,sockets=2,cores=1,threads=1 -uuid 2b8c1cd4-2de7-e59
11117 qemu      20   0 2480m 381m 4664 R 99.6  3.9   0:34.97
/usr/libexec/qemu-kvm -name HAP -S -M rhel6.1.0 -enable-kvm -m 2048
-smp 2,sockets=2,cores=1,threads=1 -uuid 2b8c1cd4-2de7-e594
11101 qemu      20   0 2480m 381m 4664 S  0.0  3.9   0:13.33
/usr/libexec/qemu-kvm -name HAP -S -M rhel6.1.0 -enable-kvm -m 2048
-smp 2,sockets=2,cores=1,threads=1 -uuid 2b8c1cd4-2de7-e594
31278 qemu      20   0 2480m 381m 4664 S  0.0  3.9   0:00.00
/usr/libexec/qemu-kvm -name HAP -S -M rhel6.1.0 -enable-kvm -m 2048
-smp 2,sockets=2,cores=1,threads=1 -uuid 2b8c1cd4-2de7-e594


HT is ON on host.

Even Though total CPU consumed by first two threads are 200%,i don't
understand why there are these many extra threads

Thanks
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux