Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1014415pxj; Sat, 8 May 2021 05:28:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp+lhyd0gU0JpcS7LDb9AcGxkgVjyzN/aPWw9q9NAz7wE4f3KdtYfTC5HWKhh5zuvhf2oS X-Received: by 2002:a17:906:5450:: with SMTP id d16mr15443592ejp.274.1620476915751; Sat, 08 May 2021 05:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620476915; cv=none; d=google.com; s=arc-20160816; b=QYW381mgXVmRHtAw50EopWQ0CjB0rO0ppvG/+SJA1eBouWcCGg/JTMA+aKJHSXXHfZ TxbtCh3yL30Dz2N725+l/ujQinQAkGx2wGfAHXbHpJZKyDhGlcoijhyVnNJvyULdSsxv d0J+4sV94dgnIo4q3+JoOuQR7vZGXek/ZfhC9dsG28royiKtTRK1HHZlrmsMZXSVjXOZ xko7Zmb6s4q6Ub+796Bnq+LRuvY8+BMSKBf5dnRuzfR5JvuOdOgJfRgVpS/qZW18Ztst AkryC+YcgETtvdAWkkaByeRkcFLeq94n4wJahdk0dKfH3zAPwR3P+v7ayNcW2BKMFAAG xgEg== 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=Kx3itcBh5bmvjR+cUMbnARdy9x4AqAuYlijs5gThVpY=; b=zxqmDpywj8aiKIngX6zFEkNiYlyylv2JuPpYpdrCHBaGJkQHYttzafrTKFx5hJ1vZC 49rlwEI0dzq8iiKGHw0BFMJDt+6ujwgruia5hTvkAZuWbBmw7mHOKyrk0RcL2etl9+Dh G3sPIqklksubBljz574KihBgs+OH3WHT+98/WNRkKXOsQrKWuUhwjaF137O2PTW24z1N jpu53yDcpXeTBlT6zQAUo5mWDDynZ7YuDVBRmc58g5nrbZVeDA7pJH9yTATFvK+LcF1N tQYhjex/ImhHVC4/faVKnJu3aMadgRWoc0x6yV+pirrL+YJVnIsXdtVxu7VfY7SQN2Rh QMAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CP8vQBTg; dkim=neutral (no key) header.i=@linutronix.de; 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 h8si7121851ejj.270.2021.05.08.05.28.12; Sat, 08 May 2021 05:28:35 -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=CP8vQBTg; dkim=neutral (no key) header.i=@linutronix.de; 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 S230487AbhEHM1i (ORCPT + 99 others); Sat, 8 May 2021 08:27:38 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:55470 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbhEHM1i (ORCPT ); Sat, 8 May 2021 08:27:38 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620476795; 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=Kx3itcBh5bmvjR+cUMbnARdy9x4AqAuYlijs5gThVpY=; b=CP8vQBTgguVuYcT9FMUlZt5qmDQ8uiRkoEn04X5N8+V6EnC/cBJuVW9MFB/t9TZ0pj3e0y 7dx9Kaxm++dX+OshSenWsL9nyfJAK4XtfyU2J1oWBKP6Pe930MgavDm5KvMCRYzU6u8iye a93uNft0TmKo/j3CC0WwJVGTPngaVLPdcM+nDQEUlvu8y/PvmO8YlylHnM8lWOe8SfkL+G zwSE9buEzpB2rucQzcQNcz5qSjQPBGhXIy5am2qGBI5eWfZM5EVAyLRn1pTQqPCpFSqWtJ 7QAhUm0QnwDs2ApMF70PVfzkrmuW1KfsUZUkMx2TU5liw18zAgysAHxWEI00ag== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620476795; 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=Kx3itcBh5bmvjR+cUMbnARdy9x4AqAuYlijs5gThVpY=; b=JeexpvwmSNy08L3nUg6D4BMN9tCEhZZ7o1YbMgFtelRUsgx2XNW+fPJDONXgqvIVvcH6RJ VNrlaoQd6Ec3+rDQ== To: xuyihang , Ming Lei Cc: Peter Xu , Christoph Hellwig , Jason Wang , Luiz Capitulino , Linux Kernel Mailing List , "Michael S. Tsirkin" , minlei@redhat.com, liaochang1@huawei.com Subject: Re: Virtio-scsi multiqueue irq affinity In-Reply-To: <0f6c8a5f-ad33-1199-f313-53fe9187a672@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> Date: Sat, 08 May 2021 14:26:35 +0200 Message-ID: <87zgx5l8ck.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 Yihang, On Sat, May 08 2021 at 15:52, xuyihang wrote: > > We are dealing with a scenario which may need to assign a default > irqaffinity for managed IRQ. > > Assume we have a full CPU usage RT thread running binded to a specific > CPU. > > In the mean while, interrupt handler registered by a device which is > ksoftirqd may never have a chance to run. (And we don't want to use > isolate CPU) A device cannot register and interrupt handler in ksoftirqd. > There could be a couple way to deal with this problem: > > 1. Adjust priority of ksoftirqd or RT thread, so the interrupt handler > could preempt > > RT thread. However, I am not sure whether it could have some side > effects or not. > > 2. Adjust interrupt CPU affinity or RT thread affinity. But managed IRQ > seems design to forbid user from manipulating interrupt affinity. > > It seems managed IRQ is coupled with user side application to me. > > Would you share your thoughts about this issue please? Can you please provide a more detailed description of your system? - Number of CPUs - Kernel version - Is NOHZ full enabled? - Any isolation mechanisms enabled, and if so how are they configured (e.g. on the kernel command line)? - Number of queues in the multiqueue device - Is the RT thread issuing I/O to the multiqueue device? Thanks, tglx