From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: smp option of qemu-kvm Date: Thu, 5 Apr 2012 19:40:51 +0100 Message-ID: <20120405184050.GB16805@redhat.com> References: Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: kvm@vger.kernel.org To: Steven Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36767 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754308Ab2DESk4 (ORCPT ); Thu, 5 Apr 2012 14:40:56 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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 :|