From: Alec Istomin Subject: vCPU scalability for linux VMs Date: Tue, 4 May 2010 18:45:34 -0700 Message-ID: <1815416666.20100504184534@istomin.de> Reply-To: Alec Istomin Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from istomin.de ([62.75.244.193]:32783 "EHLO istomin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756541Ab0EEBpu (ORCPT ); Tue, 4 May 2010 21:45:50 -0400 Received: from [10.10.38.35] ([4.53.145.34]) (authenticated bits=0) by istomin.de (8.12.11.20060308/8.12.11) with ESMTP id o451jk5H001913 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 5 May 2010 03:45:48 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Gentlemen, Reaching out with a non-development question, sorry if it's not appropriate here. I'm looking for a way to improve Linux SMP VMs performance under KVM. My preliminary results show that single vCPU Linux VMs perform up to 10 times better than 4vCPU Linux VMs (consolidated performance of 8 VMs on 8 core pre-Nehalem server). I suspect that I'm missing something major and look for any means that can help improve SMP VMs performance. VMs are started using: qemu-kvm -m $ram -smp $cpus -name $name -drive file=${newimg},boot=on,cache=writethrough -net nic,macaddr=$mac,vlan=0,model=virtio -net tap,script=/kvm/qemu-ifup,vlan=0,ifname=kvmnet$i -parallel none -usb -k en-us -monitor pty -serial pty -nographic -daemonize -snapshot KVM Host Environment (redhat 5 based): # uname -r 2.6.18-194.el5 # rpm -qa|grep kvm kvm-83-164.el5 kvm-tools-83-164.el5 kmod-kvm-83-164.el5 kvm-qemu-img-83-164.el5 Thank you, Alec