Message ID | 1454076516-21591-5-git-send-email-david.marchand@6wind.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 10BF9C6D0; Fri, 29 Jan 2016 15:08:52 +0100 (CET) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 53867C6B6 for <dev@dpdk.org>; Fri, 29 Jan 2016 15:08:47 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id 128so54431035wmz.1 for <dev@dpdk.org>; Fri, 29 Jan 2016 06:08:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=km4s4ei6KBmJkVdjhieFIdmbRfP29sqQHMu4vbcEP4M=; b=qU89UbWqrj3d/j3uzSVObeMtSdqrUsMRLAg+AAtY47tW1f/BVy2tEHN4AYD8AB/JIa Igx1xuWfaLZptPKJ8nHp4O+OFFDkmd9gw1j7/6i0Caj/7Ms9QPfY6bk+KBh6qJBiplnI RPi6jkSLBfqYYOxsG0GvW/7/qT382tjdN/y3q5k7hG+Wxi+ZswTM3U0uMu5XW4rPGPHJ yiUmMqfrBiE2u/IkhEizA2ArIaw59hzNi+o5GKjHjoSR60pkC0wpwh5MyIJH6s1iPOmL 9XEwssP47gTuDySpOlAxH3POPl86F1Eztfu4sW3whjsVtVyVn8VXOO2F8Bqb1ZQmnxNB vbIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=km4s4ei6KBmJkVdjhieFIdmbRfP29sqQHMu4vbcEP4M=; b=kTZ1i6WI3DqAGV4S3wqcAEKpkZaDH2j7OmN2VHLRJVvkK9NWCTQLaiVbK/6kDSeUUI ksSSHNloI6c1F/0vOtsQbKGXUIiBK4AF8vn7q4ChR91qhLSLDIdyMdXDgK8clHFAr49L Yk5lxasIjDHDiyohh7KmTG49pJx2JWDDbwtu8ms3lNGxa862vV0y/KfJrEjgtGaJVTj8 3XSgj7kJX+OJI5zhzNAZ58x/dSsb/NKc2Me/kXMnjasYbs/SBbltVUUJrVhICgU3fMvw ElZEkaZ1nuZPkQgwOuymUq8byz5yMZdUVWSmjpofwwz0djb9dAPFEQNRVaJnRT3w5BVe 9ixQ== X-Gm-Message-State: AG10YOT6qAz5uq7y8vx1ZQdzsKA5NQu+Ew2Y7pLnoo9islQC7DiMfJ+MZDYQOA4/2tvvqbx7 X-Received: by 10.194.24.164 with SMTP id v4mr8869202wjf.138.1454076526218; Fri, 29 Jan 2016 06:08:46 -0800 (PST) Received: from gloops.dev.6wind.com (144.77.126.78.rev.sfr.net. [78.126.77.144]) by smtp.gmail.com with ESMTPSA id 67sm7669944wmp.20.2016.01.29.06.08.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Jan 2016 06:08:45 -0800 (PST) From: David Marchand <david.marchand@6wind.com> To: dev@dpdk.org Date: Fri, 29 Jan 2016 15:08:31 +0100 Message-Id: <1454076516-21591-5-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> Cc: viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH 4/9] eal/linux: move back interrupt thread init before setting affinity X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
David Marchand
Jan. 29, 2016, 2:08 p.m. UTC
Now that virtio pci driver is initialized in a constructor, we only need to
move the interrupt thread init after loading the plugins.
This way, chelsio driver should be happy again [1].
[1] http://dpdk.org/ml/archives/dev/2015-November/028289.html
Signed-off-by: David Marchand <david.marchand@6wind.com>
---
lib/librte_eal/linuxapp/eal/eal.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Comments
Hi David, On Friday, January 01/29/16, 2016 at 15:08:31 +0100, David Marchand wrote: > Now that virtio pci driver is initialized in a constructor, we only need to > move the interrupt thread init after loading the plugins. > This way, chelsio driver should be happy again [1]. > > [1] http://dpdk.org/ml/archives/dev/2015-November/028289.html > > Signed-off-by: David Marchand <david.marchand@6wind.com> > --- > lib/librte_eal/linuxapp/eal/eal.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c > index 635ec36..62241ee 100644 > --- a/lib/librte_eal/linuxapp/eal/eal.c > +++ b/lib/librte_eal/linuxapp/eal/eal.c > @@ -823,6 +823,9 @@ rte_eal_init(int argc, char **argv) > if (eal_plugins_init() < 0) > rte_panic("Cannot init plugins\n"); > > + if (rte_eal_intr_init() < 0) > + rte_panic("Cannot init interrupt-handling thread\n"); > + > eal_thread_init_master(rte_config.master_lcore); > > ret = eal_thread_dump_affinity(cpuset, RTE_CPU_AFFINITY_STR_LEN); > @@ -834,9 +837,6 @@ rte_eal_init(int argc, char **argv) > if (rte_eal_dev_init() < 0) > rte_panic("Cannot init pmd devices\n"); > > - if (rte_eal_intr_init() < 0) > - rte_panic("Cannot init interrupt-handling thread\n"); > - > RTE_LCORE_FOREACH_SLAVE(i) { > > /* > -- > 1.9.1 > Thank you for this patch. I've tested it and it does improve the perf. back when there is a queue on master lcore in l3fwd app. Thanks, Rahul
Hello Rahul, On Tue, Feb 2, 2016 at 8:02 AM, Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> wrote: > On Friday, January 01/29/16, 2016 at 15:08:31 +0100, David Marchand wrote: >> Now that virtio pci driver is initialized in a constructor, we only need to >> move the interrupt thread init after loading the plugins. >> This way, chelsio driver should be happy again [1]. > > Thank you for this patch. I've tested it and it does improve the perf. > back when there is a queue on master lcore in l3fwd app. Did you test the whole series ? or just this specific patch ? Anyway, great, but this is still too fragile. As discussed in the same thread as the problem you reported, there is some work over there to be done so that interrupts are "distributed" in a more flexible way. Did someone look at this ? Plans to work on this ? (post 2.3, I suppose)
Hi David, On Monday, February 02/01/16, 2016 at 23:13:55 -0800, David Marchand wrote: > Hello Rahul, > > On Tue, Feb 2, 2016 at 8:02 AM, Rahul Lakkireddy > <rahul.lakkireddy@chelsio.com> wrote: > > On Friday, January 01/29/16, 2016 at 15:08:31 +0100, David Marchand wrote: > >> Now that virtio pci driver is initialized in a constructor, we only need to > >> move the interrupt thread init after loading the plugins. > >> This way, chelsio driver should be happy again [1]. > > > > Thank you for this patch. I've tested it and it does improve the perf. > > back when there is a queue on master lcore in l3fwd app. > > Did you test the whole series ? or just this specific patch ? > I've tested only this particular patch, not the whole series. > Anyway, great, but this is still too fragile. > > As discussed in the same thread as the problem you reported, there is > some work over there to be done so that interrupts are "distributed" > in a more flexible way. > Did someone look at this ? > Plans to work on this ? (post 2.3, I suppose) > > > -- > David Marchand Thanks, Rahul
diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 635ec36..62241ee 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -823,6 +823,9 @@ rte_eal_init(int argc, char **argv) if (eal_plugins_init() < 0) rte_panic("Cannot init plugins\n"); + if (rte_eal_intr_init() < 0) + rte_panic("Cannot init interrupt-handling thread\n"); + eal_thread_init_master(rte_config.master_lcore); ret = eal_thread_dump_affinity(cpuset, RTE_CPU_AFFINITY_STR_LEN); @@ -834,9 +837,6 @@ rte_eal_init(int argc, char **argv) if (rte_eal_dev_init() < 0) rte_panic("Cannot init pmd devices\n"); - if (rte_eal_intr_init() < 0) - rte_panic("Cannot init interrupt-handling thread\n"); - RTE_LCORE_FOREACH_SLAVE(i) { /*