From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Liang, Cunming" Subject: Re: [PATCH v8 05/11] eal/linux: add interrupt vectors handling on VFIO Date: Wed, 27 May 2015 17:00:07 +0800 Message-ID: <55658797.5000809@intel.com> References: <1430804386-28949-1-git-send-email-cunming.liang@intel.com> <1432198563-16334-1-git-send-email-cunming.liang@intel.com> <1432198563-16334-6-git-send-email-cunming.liang@intel.com> <20150522132100.3f0829e9@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, liang-min.wang@intel.com To: Stephen Hemminger Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9B930DE6 for ; Wed, 27 May 2015 11:00:08 +0200 (CEST) In-Reply-To: <20150522132100.3f0829e9@urahara> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 5/23/2015 4:21 AM, Stephen Hemminger wrote: > On Thu, 21 May 2015 16:55:57 +0800 > Cunming Liang wrote: > >> This patch does below: >> - Create VFIO eventfds for each interrupt vector (move to next) >> - Assign per interrupt vector's eventfd to VFIO by ioctl >> >> Signed-off-by: Danny Zhou >> Signed-off-by: Cunming Liang > One non-trivial performance related change here would be to set SMP > affinity of the receive IRQ to the CPU that is handling that receive queue. > Not sure the full API to do this, but ideally you should not have the > receive interrupt occurring on one CPU then having to cause scheduler > to wakeup receive thread on another CPU. > That's a good point. The previous thought was to configure irq affinity by script from outside. I haven't found some API to do that well, the well known way is by sysfs.