Hi, Daniel, Thanks for your quick response. However, the ps -eLf show 4 threads for the VM and I checked 4 threads have the same tgid. But the VM I created is with -smp 2 option. Could you explain this? Thanks. On Thu, Apr 5, 2012 at 2:40 PM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote: > On Thu, Apr 05, 2012 at 02:28:51PM -0400, Steven wrote: >> Hi, >> I started a kvm VM by adding -smp 2 option. From inside the guest, I >> can see that /proc/cpuinfo outputs 2 cores. >> However, in the host, I only observe one qemu-kvm process for that VM. >> Does that mean this VM is actually running on one core? >> If so, how to make a VM to run on 2 or more cores? Thanks. > > Each VCPU in KVM corresponds to a separate thread in the process. The > 'ps' command only ever shows the thread leader by default - so you > don't see those VCPU threads in the process list. eg ps -eLf to > see all threads > > Daniel > -- > |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| > |: http://libvirt.org -o- http://virt-manager.org :| > |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| > |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- 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