Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2883178pxj; Mon, 10 May 2021 12:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsnjNA60+feVJzdQWO6UlT5Wy6ZTwJIEk3EG1kyi2sA3dFDsFNZchkHXe/HocUz2VD6rTJ X-Received: by 2002:a05:6e02:1d15:: with SMTP id i21mr13413606ila.189.1620676662006; Mon, 10 May 2021 12:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620676662; cv=none; d=google.com; s=arc-20160816; b=nacTAYS/Sn7bhBNZV3NWkrvTQsHd8ZKFuA5J72ZR63//IDF3t02PgyayNNKnQ47K1x 1ea8QDU9DfbqGTlt658C4pgIygi4FP7ysFFSq0RT70LwL93A+S/+EcQDW7KcwsLJZBik o2RW/nolIXLw9SShNYj2c8dgklnGRrjGEf7RdNtph/DKwG1cKfZtCMy7Q1RIjlDiCGkK E0mW5lmAYXRsm+HxFOKzDMUmHE6Tdo+NXPZu938IIe7AnRXL7ksKiQOyS7zH6Yb1T3E9 SJv1LJZk/TG7tWx8qWGYlS09QbjJnEjb3I+WIVhIgtj/yiwnyPt4TlHRadiIFCy5L865 +jDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=RnsCi4tsfX2EqkxQUyb5I4F/v2kHeUeGstf11LeuD24=; b=uwyBXOIk5HQ+BZfhwkxZjPDfsMKvBSkiSKWfK8fAyvCZh+6k1HfDNAMnML9JxYUUJa xtamWIhnKLmDPheNTqViyBVO5TfI3RV33JY7LRcwWci6rdHtSWO4PRqnmckYDA4KC0TN QcXK27Ar/B0jzI+OprDrL2bY61M0SB7rCRteps9sY6kXbagHAX7zvFX0QEv+T4JyFBMW WBsiR1kNtbTNJ5D2kRNYMQCOcxN6fc7/7Pg9iJ7ZkeB3GYYYfqmcUuyLgmQW30cepqkK S98se1M5D64l06d4DUgjwgtxGUmC3f9RdPKKUDzcKh4ConMJRK1qPRfjULolDj4iy+Cp dv8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=h4WDucZY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 g6si20268366jat.77.2021.05.10.12.57.29; Mon, 10 May 2021 12:57:41 -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=h4WDucZY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231750AbhEJT54 (ORCPT + 99 others); Mon, 10 May 2021 15:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbhEJT54 (ORCPT ); Mon, 10 May 2021 15:57:56 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32ED6C061574 for ; Mon, 10 May 2021 12:56:51 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620676608; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RnsCi4tsfX2EqkxQUyb5I4F/v2kHeUeGstf11LeuD24=; b=h4WDucZYAjALME2VAr4sUcDFtrwd+qDWQJUSNZ2QtDyfAZvGeKFxNJs4M/nvq+Ij/i1TPq m0u4HNhXDlodulnGSiA1lz4L5WpCUvtXn9aEOUHS4hHsEsC7e+krK/+cQ4mhmVzWWRYbob 3SHjf0Cgaqd4cxhkkMbgJ5rBiXatg4ligh0cdQQ54z6hNXqA1qWTVf21rRTF9oAgH0ABzU ++X1aHmFw5hnQqTsG085zuf5TbkgZQgCq5goHn4qtneGmiQmE+CB7BJejbcQJzGAye61+u 6GZySM/dR11ZQNLYUZOe4ueBafLA3kk37ErNDXrxeHf1dJeZCdLyhOJNbg1f4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620676608; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RnsCi4tsfX2EqkxQUyb5I4F/v2kHeUeGstf11LeuD24=; b=wYYj63iKrfnU2kzRsq94miAfEYRP4OHGf+WJ6KHq55/aU5EmGwZkJr5Z2xS/8n6OON87EX tT77+OdaPha9xzCQ== 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: <963e38b0-a7d6-0b13-af89-81b03028d1ae@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> <963e38b0-a7d6-0b13-af89-81b03028d1ae@huawei.com> Date: Mon, 10 May 2021 21:56:48 +0200 Message-ID: <87wns6gy67.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yihang, On Mon, May 10 2021 at 16:48, xuyihang wrote: > =E5=9C=A8 2021/5/8 20:26, Thomas Gleixner =E5=86=99=E9=81=93: >> Can you please provide a more detailed description of your system? >> - Kernel version > This experiment run on linux-4.19 Again. Please provide reports against the most recent mainline version and not against some randomly picked kernel variant. > If we make some change on this experiment: > > 1.=C2=A0 Make this RT application use less CPU time instead of 100%, the = problem > disappear. > > 2, If we change rq_affinity to 2, in order to avoid handle softirq on=20 > the same core of RT thread, the problem also disappear. However, this app= roach > result in about 10%-30% random write proformance deduction comparing > to rq_affinity =3D 1, since it may has better cache utilization. > echo 2 > /sys/block/sda/queue/rq_affinity > > Therefore, I want to exclude some CPU from managed irq on boot > parameter, Why has this realtime thread to run on CPU0 and cannot move to some other CPU? > which has simliar approach to 11ea68f553e2 ("genirq, sched/isolation:=20 > Isolate from handling managed interrupts"). Why can't you use the existing isolation mechanisms? Thanks, tglx