Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753999AbbEKLZb (ORCPT ); Mon, 11 May 2015 07:25:31 -0400 Received: from cantor2.suse.de ([195.135.220.15]:41090 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753150AbbEKLZ0 (ORCPT ); Mon, 11 May 2015 07:25:26 -0400 Date: Mon, 11 May 2015 13:25:22 +0200 From: Joerg Roedel To: Paolo Bonzini Cc: Joerg Roedel , Gleb Natapov , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Borntraeger Subject: Re: [PATCH] kvm: irqchip: Break up high order allocations of kvm_irq_routing_table Message-ID: <20150511112522.GJ5438@suse.de> References: <1431088304-11365-1-git-send-email-joro@8bytes.org> <554CE3A5.7000101@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <554CE3A5.7000101@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1029 Lines: 25 Hi Paolo, On Fri, May 08, 2015 at 06:26:13PM +0200, Paolo Bonzini wrote: > It probably doesn't matter much indeed, but can you time the difference? > kvm_set_irq_routing is not too frequent, but happens enough often that > we had to use a separate SRCU instance just to speed it up (see commit > 719d93cd5f5, kvm/irqchip: Speed up KVM_SET_GSI_ROUTING, 2014-01-16). The results vary a lot, but what I can say for sure is that the kvm_set_irq_routing function takes at least twice as long (~10.000 vs ~22.000 cycles) as before on my AMD Kaveri machine (maximum was between 3-4 times as long). On the other side this function is only called 2 times at boot in my test, so I couldn't detect a noticable effect on the overall boot time of the guest (37 disks were attached). Joerg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/