Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3055398img; Mon, 25 Mar 2019 02:51:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVQ/lBSxWeliK7KMKmDFj0US7fXdKtYhHxxt+bt81uzLGhnJUwB4NxNv3n1wx0ZrXnunsx X-Received: by 2002:a17:902:121:: with SMTP id 30mr24552009plb.315.1553507478897; Mon, 25 Mar 2019 02:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553507478; cv=none; d=google.com; s=arc-20160816; b=mLtZKiHQOCt7iUKQtDa00kHraTAk9LCE4+/NuPEFZUiigTapPIs0siiNOrqN7Jtb3p tVUCKNeJW+cv2a/6sdcl9VgHxL2naBz8/R1fOBtqNTmssh7DtmjzHbZ+mWgJScF/b/7V EH3EEnhT2dQdFLF9RG0j7BLQVsps3hVhxBbOfbfjZUU73XM83AThT2TOXk/cINpDPCJJ nuXBKL8U5mYu45Tu21zDETcRRJqwhtJhzK78tNc9HH3rwlPAnjde/unemvx0BR98pbQJ pMo+tn1blXStEQlLkx/qWkjulZV4LgKTaPa7PBFK8jzBfbYMBVDeG5YdLcfYrFLYMKud bP6w== 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=WxsVsKL6zPIArVqlYF2Sv7pMJkpM3pfi1yZLOxHBoYg=; b=eVmNPiIeefCHMuYNphUXLmZczTHxZfhTBx/ir8QmIWXJuUX/vXHkGsW9pwL+C6UecS BYxDWC2OL5NkQG9Txx37hX0GNhy92ceG83L8hzXYig2oOt12VQVF/aXq/M/d7dxV5Au7 VVWX2xYxLdstunZDwwLxxAEMiSvdIVroeyPX3b3QJwjQpr01T3aULqgi3FaPyDtXvxeV pGShBkWDBsFYULQKoioOdL/wPxqiAmoZiOPNB2DCp0ai/bVZZ+PZ7KxSvHChQqr19ogw rI9CiHj+lSrlN2Xf41m0x6RF+YosW7XnSNz51JPDSgcLp+zqGCCNYWPRf3RT/+gjWs0g naNg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si14038086pll.389.2019.03.25.02.51.04; Mon, 25 Mar 2019 02:51:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730406AbfCYJua (ORCPT + 99 others); Mon, 25 Mar 2019 05:50:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46158 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730216AbfCYJua (ORCPT ); Mon, 25 Mar 2019 05:50:30 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F0CD30832CD; Mon, 25 Mar 2019 09:50:30 +0000 (UTC) Received: from ming.t460p (ovpn-8-18.pek2.redhat.com [10.72.8.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5E14D17156; Mon, 25 Mar 2019 09:50:16 +0000 (UTC) Date: Mon, 25 Mar 2019 17:50:13 +0800 From: Ming Lei To: Thomas Gleixner Cc: Peter Xu , Christoph Hellwig , Jason Wang , Luiz Capitulino , Linux Kernel Mailing List , "Michael S. Tsirkin" , minlei@redhat.com Subject: Re: Virtio-scsi multiqueue irq affinity Message-ID: <20190325095011.GA23225@ming.t460p> References: <20190318062150.GC6654@xz-x1> <20190325050213.GH9149@xz-x1> <20190325070616.GA9642@ming.t460p> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Mon, 25 Mar 2019 09:50:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 09:53:28AM +0100, Thomas Gleixner wrote: > Ming, > > On Mon, 25 Mar 2019, Ming Lei wrote: > > On Mon, Mar 25, 2019 at 01:02:13PM +0800, Peter Xu wrote: > > > One thing I can think of is the real-time scenario where "isolcpus=" > > > is provided, then logically we should not allow any isolated CPUs to > > > be bound to any of the multi-queue IRQs. Though Ming Lei and I had a > > > > So far, this behaviour is made by user-space. > > > > >From my understanding, IRQ subsystem doesn't handle "isolcpus=", even > > though the Kconfig help doesn't mention irq affinity affect: > > > > Make sure that CPUs running critical tasks are not disturbed by > > any source of "noise" such as unbound workqueues, timers, kthreads... > > Unbound jobs get offloaded to housekeeping CPUs. This is driven by > > the "isolcpus=" boot parameter. > > isolcpus has no effect on the interupts. That's what 'irqaffinity=' is for. Indeed. irq_default_affinity is built from 'irqaffinity=', however, we don't consider irq_default_affinity for managed IRQ affinity. Looks Peter wants to exclude some CPUs from the spread on managed IRQ. Thanks, Ming