From: "Jan Beulich" Subject: Re: [RFC PATCH v1] Replace tasklets with per-cpu implementation. Date: Fri, 29 Aug 2014 15:10:19 +0100 Message-ID: <5400A5EB020000780002F118@mail.emea.novell.com> References: <1409162329-6094-1-git-send-email-konrad.wilk@oracle.com> <53FF3F3A020000780002EB62@mail.emea.novell.com> <20140829134649.GC3609@laptop.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XNMse-00067x-5t for xen-devel@lists.xenproject.org; Fri, 29 Aug 2014 14:10:20 +0000 In-Reply-To: <20140829134649.GC3609@laptop.dumpdata.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xenproject.org, keir@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 29.08.14 at 15:46, wrote: > On Thu, Aug 28, 2014 at 01:39:54PM +0100, Jan Beulich wrote: >> >>> On 27.08.14 at 19:58, wrote: >> > The 'hvm_do_IRQ_dpci' is the on that is most often scheduled >> > and run. The performance bottleneck comes from the fact that >> > we take the same spinlock three times: tasklet_schedule, >> > when we are about to execute the tasklet, and when we are >> > done executing the tasklet. >> >> Before starting all the work here, did you investigate alternatives >> to this specific use of a tasklet? E.g., it being a softirq one, making >> it have its own softirq? > > If I understand you right, you mean implement an tasklet API that > would only been be used by the hvm_do_IRQ_dpci? Its own spinlock, > list, and an seperate tasklet_schedule? No, just a new softirq type, e.g. HVM_DPCI_SOFTIRQ (added to the enum in xen/include/xen/softirq.h and all the necessary handling put in place). Jan