Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3807067imm; Tue, 11 Sep 2018 02:20:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZfELtRZPDDVH6WQc/ydI5w0AWea/gWdUcSNma1rHZpSCC+q+A5Qxw6ajWJDojOE30IWT4t X-Received: by 2002:a63:fd52:: with SMTP id m18-v6mr27318734pgj.304.1536657631654; Tue, 11 Sep 2018 02:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536657631; cv=none; d=google.com; s=arc-20160816; b=1J6MOIKIBsonz4XmZoCPw4hOK1Em2l/tQFTridEZmDgxz/17Rtf2/pGvz0g6O998aR NTfR8L0R2AHoPPY8hiay6sB2v5kTP+MqQiwUUQVjRuulRbPEdh9P+x3+m26mYSNxWxS5 Tq/n+fw5nADELEP9DFmui4A5cNyXD5RQZbUT2Ju62vHCHHo6wsXH0jsTThjJ0G0YepCB OlkUFQHMCSFeE3miEkRmIpGVrHFIXkh6ulUBz5PPpT1QuqgKaxiSPMguPN7CJ84ze1le oec/G4LXO1WQrbtecuk/uZj7zUVA4Opvvvz/n/PEMEKfaIwegZw3o5xjp+rm89K7T2mw p/pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PJb0qn9CMaV56Hf+bMpQs8XOxa7J4Fk/uMKnbURpg/0=; b=NIG4aPO9rX6HjLUsFNEEsyYcUq+fEPdJQLltTiRGJy2xiLQfixQjAR6tnSRGKXd9Z5 3WVNbgGbd2PNkCrSoBwB6S4DXprlY4/V3T7zd/o0+9CVo6KcBZDJ92+79YgMufa52yVt abWdc1dMpY85lGSub0I0D172/EKBi8NLWA7tw/dVW5BOVmR8PmDy+5/AgeXo6o3BUGtZ cDoBOIKTjbWmqR9iPw5DDRGbXyCTrvLdoMzKWg2xf5rMAfaLR8M7xgK8G39mamhHYppq 4BvLCmD0pcFCcBgO5e1jptwhjHK9u+X2MnjASOWJRdHeagCb4hKbJhpe4YAMg96s0rhM oWLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si19967067plg.143.2018.09.11.02.20.10; Tue, 11 Sep 2018 02:20:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726840AbeIKOQ4 (ORCPT + 99 others); Tue, 11 Sep 2018 10:16:56 -0400 Received: from verein.lst.de ([213.95.11.211]:41823 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbeIKOQz (ORCPT ); Tue, 11 Sep 2018 10:16:55 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id B91A568C8A; Tue, 11 Sep 2018 11:22:54 +0200 (CEST) Date: Tue, 11 Sep 2018 11:22:54 +0200 From: Christoph Hellwig To: Thomas Gleixner Cc: Kashyap Desai , Ming Lei , Sumit Saxena , Ming Lei , Christoph Hellwig , Linux Kernel Mailing List , Shivasharan Srikanteshwara , linux-block Subject: Re: Affinity managed interrupts vs non-managed interrupts Message-ID: <20180911092254.GB10330@lst.de> References: <20180829084618.GA24765@ming.t460p> <300d6fef733ca76ced581f8c6304bac6@mail.gmail.com> <615d78004495aebc53807156d04d988c@mail.gmail.com> <486f94a563d63c4779498fe8829a546c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 01, 2018 at 12:48:46AM +0200, Thomas Gleixner wrote: > > We want some changes in current API which can allow us to pass flags > > (like *local numa affinity*) and cpu-msix mapping are from local numa node > > + effective cpu are spread across local numa node. > > What you really want is to split the vector space for your device into two > blocks. One for the regular per cpu queues and the other (16 or how many > ever) which are managed separately, i.e. spread out evenly. That needs some > extensions to the core allocation/management code, but that shouldn't be a > huge problem. Note that there are some other uses cases for multiple sets of affinity managed irqs. Various network devices insist on having separate TX vs RX interrupts for example.