From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjObB-0003xe-Q2 for qemu-devel@nongnu.org; Thu, 21 Nov 2013 02:22:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjOb5-0003VK-QH for qemu-devel@nongnu.org; Thu, 21 Nov 2013 02:22:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjOb5-0003VB-II for qemu-devel@nongnu.org; Thu, 21 Nov 2013 02:22:43 -0500 Date: Thu, 21 Nov 2013 09:22:00 +0200 From: Gleb Natapov Message-ID: <20131121072200.GE2108@redhat.com> References: <20131121070139.GL19005@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131121070139.GL19005@redhat.com> Subject: Re: [Qemu-devel] question about VM kernel parameter idle= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: "Huangweidong (C)" , KVM , "Zhanghaoyu (A)" , Luonengjun , "qemu-devel@nongnu.org" , Paolo Bonzini On Thu, Nov 21, 2013 at 09:01:39AM +0200, Michael S. Tsirkin wrote: > On Thu, Nov 21, 2013 at 03:45:28AM +0000, Zhanghaoyu (A) wrote: > > Hi, all > > > > What's the difference of the linux guest kernel parameter idle=, especially in performance? > > > > Taking the performance into account, which one is best? > > > > In my opinion, if the number of all VMs' vcpus is far more than that of pcpus, e.g. SPECVirt test, idle=halt is better for server's total throughput, > > otherwise, e.g. in some CT scenario, the number of total vcpus is not greater than that of pcpus, idle=poll is better for server's total throughput, > > because of less latency and VMEXIT. > > Makes sense overall. > > > linux-3.9 and above, idle=mwait is not recommended. > > > > Thanks, > > Zhang Haoyu > > Does it actually have effect? I didn't think it would. mwait instruction is never exposed to a guest. With idle=mwait is will likely fall back to halt silently. -- Gleb.