Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2370128pxj; Mon, 10 May 2021 00:56:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkxQ33uEPXNpYbkvNNDx8XwczGaU0Ds0Xuz4HOzFczdQL59STHI5K4WUyHg3s9bXA1TOzz X-Received: by 2002:a05:6e02:13d0:: with SMTP id v16mr20621757ilj.8.1620633409049; Mon, 10 May 2021 00:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620633409; cv=none; d=google.com; s=arc-20160816; b=uSIsUYtHrDufjkDxoyqBkmJ1hJYkuvPG2I4naUZt8MRKRXsnYkh1AIe+qH+b/jnj4B CWyo+HbZ/GE42NXD4G8E7xyFxfsWYMByjjf1/cMm/l7DLhixWnZ7kViH7b4Kb5OIAvNz GU+oUclbfynzKpcnAwFfQbwY3BG0xzEZykV3A0JAFBGBac+mN2J3A1guCeAqIO4C890S QSLMnFF1T/+/3d+1u+s+74dn2Vp8+UxEOhtAty0PmJlbD0nNoV7m46fSTJ6wnH6ZMzX0 wZRYNS8vKjjJd3JSsnBsNylL6z8/4rtWFnPTaCG8J9BMFcEwcRYWe1f6KlvtQ5eDAfpO Zigg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=+e2LVoGoQWMuVCOL9fWn+mEuUhKFaylXgBU3Qerka4M=; b=J9o6zG2rOjBJW5b0K+tV1M7KzpKanJOFmIm45Qa33QtNgnqhN1dNCcMXpk5rwXeOLu i6CJ2bBW7480kBUCXJV+6W4ROoe3zHLhlNt8ngEv3sokJLaETBbK6eUSVT329n3sCUYP u6MpAMvD/7ws+bo8C5yE52/wF7u91jgeHYBMoyhAKpayfc+NACTpvnAq7pzvyYQIqI/A PVq/+GEVO3NzqIP47BxkSL5Q3bzeK+H959LDCvuCRk2kXBi4+BXxWgRnVdjQ8RWA7Gkg Qnh7Ec8GFLca4wO0wJgM+6+VTPG3LOI7eTjieTiPAq3lsfSYwSGmB6XgGXgP8A587we4 fx5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1gK5IxLz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=oI5VvMSV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si15902781iow.6.2021.05.10.00.56.36; Mon, 10 May 2021 00:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1gK5IxLz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=oI5VvMSV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbhEJH4F (ORCPT + 99 others); Mon, 10 May 2021 03:56:05 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:35336 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbhEJH4E (ORCPT ); Mon, 10 May 2021 03:56:04 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620633299; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+e2LVoGoQWMuVCOL9fWn+mEuUhKFaylXgBU3Qerka4M=; b=1gK5IxLzLGYPoOPMh9825jjnrg8KLdfXeonBs3lL7BwLxLwETHVlO+nn/MNyJ+EDUgK34Y XUvVbZVtrR+g+agHKQ5ljsuE6kB0vRz53Z2f2NEIoIrpqTNvKE6FS67ciS/YjbOAIdAaGj yo3Uh1XmoLUcsgnoIFdPfFEl/mwJKrIxRJNm8qPe9/AgZSnNHzvI9a5WsLQndKXEZOzSkj +2fH7n8liH+LMLCbpaERJznIEnYYvc5huzhQOeqnEWA0ycgaw8yaFcnEoRL/uuKZatcTNl lM/Nn5QODV4vNltC6Np+/23xwQwt4kmjxsQRCWMPdR15wlqKnivAlljmfrpZ2Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620633299; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+e2LVoGoQWMuVCOL9fWn+mEuUhKFaylXgBU3Qerka4M=; b=oI5VvMSVEoXgNhFOc+ZlmM28YFGA2Jv1SC0NxM2K/GfrshdzvozqPRgH3m8htj7MFb33Vh 3elT4z4qaOd/pKCA== To: "liaochang \(A\)" , xuyihang , Ming Lei 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 In-Reply-To: <9903df53-8a84-fe89-7ae0-aac8e6d3f42f@huawei.com> References: <20190318062150.GC6654@xz-x1> <20190325050213.GH9149@xz-x1> <20190325070616.GA9642@ming.t460p> <20190325095011.GA23225@ming.t460p> <0f6c8a5f-ad33-1199-f313-53fe9187a672@huawei.com> <87zgx5l8ck.ffs@nanos.tec.linutronix.de> <9903df53-8a84-fe89-7ae0-aac8e6d3f42f@huawei.com> Date: Mon, 10 May 2021 09:54:58 +0200 Message-ID: <87r1ifkoq5.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Liao, On Mon, May 10 2021 at 11:19, liaochang wrote: > 1.We have a machine with 36 CPUs,and assign several RT threads to last > two CPUs(CPU-34, CPU-35). Which kind of machine? x86? > 2.I/O device driver create single managed irq, the affinity of which > includes CPU-34 and CPU-35. If that driver creates only a single managed interrupt, then the possible affinity of that interrupt spawns CPUs 0 - 35. That's expected, but what is the effective affinity of that interrupt? # cat /proc/irq/$N/effective_affinity Also please provide the full output of # cat /proc/interrupts and point out which device we are talking about. Thanks, tglx