From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM lock contention on 48 core AMD machine Date: Mon, 21 Mar 2011 20:14:39 +0200 Message-ID: <4D87958F.30104@redhat.com> References: <20110318123031.GB6066@8bytes.org> <4D871F6C.40207@redhat.com> <4D875842.9050308@redhat.com> <4D8773AA.8030408@redhat.com> <1300726498.2884.493.camel@edumazet-laptop> <4D8784A9.8040303@redhat.com> <1300727545.2884.513.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: ben@iagu.net, KVM list To: Eric Dumazet Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38426 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752679Ab1CUSOy (ORCPT ); Mon, 21 Mar 2011 14:14:54 -0400 In-Reply-To: <1300727545.2884.513.camel@edumazet-laptop> Sender: kvm-owner@vger.kernel.org List-ID: On 03/21/2011 07:12 PM, Eric Dumazet wrote: > Le lundi 21 mars 2011 =C3=A0 19:02 +0200, Avi Kivity a =C3=A9crit : > > > Any ideas on how to fix it? We could pre-allocate IDs and batch t= hem in > > per-cpu caches, but it seems like a lot of work. > > > > Hmm, I dont know what syscalls kvm do, but even a timer_gettime() has= to > lock this idr_lock. It's qemu playing with posix timers, nothing to do with kvm per se. > Sounds crazy, and should be fixed in kernel code, not kvm ;) > Oh yes, I couldn't fix it in kvm if I wanted to (and I don't want to). --=20 I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.