From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id A8E95A00E6 for ; Wed, 17 Apr 2019 16:12:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ECA2A1B601; Wed, 17 Apr 2019 16:12:53 +0200 (CEST) Received: from mail-it1-f193.google.com (mail-it1-f193.google.com [209.85.166.193]) by dpdk.org (Postfix) with ESMTP id 4DE981B5F3 for ; Wed, 17 Apr 2019 16:12:52 +0200 (CEST) Received: by mail-it1-f193.google.com with SMTP id y10so4547973itc.1 for ; Wed, 17 Apr 2019 07:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=o/M3JEUpYpDha7mqX2TyuKNpwpDQuBmOAfBtDcj2vY0=; b=Pq63j1pIX7kRxpoXCgoSs5lNtB6nuB0SnS2nJF4xhg3cwmO1TC/diyZHsBQ8FfIHWg dOwJ7XIignHj6BBt9BfMYXJ5t+3sCfJ2ilgftGvWiUc393Sdbju54NNjTIXqpIisoUDo nz3EN1iB32UtPi/bhKkDmlDnJSNktCf58EFFh/cb8kREq6bnyyBPtv6zgOp+fUHKyqjG m0HZSfmPIJuPRCtSIzMWwa7AcgfqC+lSzNspClkwUjgyQ306u3spVod/Szin++j1Jh9b Ith+NT/JEsuWY/eP8z0xUVwfbMp9UynXSMmEiNiRtym/0kH0w/Qbyy5WrHOV7U0IBDcJ ibXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=o/M3JEUpYpDha7mqX2TyuKNpwpDQuBmOAfBtDcj2vY0=; b=kqbBYwlTg8AaCVMZf4WdG1I9iO5QEFzn+zgR/sIk+d3zJrRqS4pg9nIBOPtmKlBUiO CtXJ0PBIcPFME4yBAtjrLzOQwuSl2aM4mkzFYGDe3MXWFkpBG9exBkLs5uzrhUs18j0B fl46G7UcGMqfp7Hg70j9b/Pi/xQC6I+zkx/CZRigr9FBZecVSvWWdNBdyH2Tm+M6K8A9 QZ6wov9mUkV0izpiICrGaXQr5tPpFY02Pse5yB0YBVX3smGc5Jgm44ZEFTDqscyfOPzV Wu2hLPxNNjhK3AcxR9H3TkbaHlvzT5A3CKiL0S6+Akn/H49+5YPJiXHJGRG6npDI1RKE xT4A== X-Gm-Message-State: APjAAAXHVU0C0mvGNzam8a2D73xU/MRxiuyhZH+rze2BMxuAAZ5mGl9B cGgFqag5XYYjHMLFjsnKkiJH9qE6kDBJZyywlI77Bw== X-Google-Smtp-Source: APXvYqzlViTP18GxtAIgF+Q0vTiNuS8DyfobQZ7sIZD3oqrW7Slgu1yaQ30X9kbfRVhBclDRgJoMnXy7uWV6+pFsjn4= X-Received: by 2002:a02:52:: with SMTP id 79mr59524021jaa.122.1555510371540; Wed, 17 Apr 2019 07:12:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: ikuzar RABE Date: Wed, 17 Apr 2019 16:12:41 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] L-thread subsystem: rte_eal_remote_launch() does not work X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" I found what was wrong. lthread_create(<, -1, initial_lthread, (void *) NULL); is not run because the number of launched schedulers (the number of times lthread_run( ) is called) set in function lthread_num_schedulers_set(num_sched) is not reached. At first, I set *num_sched *to the number of enabled lcores which is greater than 2. Now I call lthread_num_schedulers_set(2), I see hello from 2 lcores (lcore 5 and lcore 6) and the corresponding lthreads as expected. To summarize, if I want to see hello from lcore 5 and lcore 6 and their corresponding lthreads, using rte_eal_remote_launch(), I must write: lthread_num_schedulers_set(2); rte_eal_remote_launch(lthread_scheduler, (void *)NULL, 5); rte_eal_remote_launch(lthread_scheduler, (void *)NULL, 6); Regards, ikuzar Le mar. 16 avr. 2019 =C3=A0 16:05, ikuzar RABE a =C3= =A9crit : > Hi all, > > I am experimenting lightweigth thread (lthread) over lcore. I use lcores > 0, 5 and 6. > I run this example: > https://doc.dpdk.org/api/examples_2performance-thread_2pthread_shim_2main= _8c-example.html and > the result is OK. > The result is Ok =3D> I saw Hello from every lthread / lcore > > Now, I want to replace rte_eal_mp_remote_launch(lthread_scheduler, (void > *)NULL, CALL_MASTER); by rte_eal_remote_launch(lthread_scheduler, (void > *)NULL, 5); and rte_eal_remote_launch(lthread_scheduler, (void *)NULL, 6)= ; > But I do not see any Hello from lthread / lcore. > With gdb I enter into lthread_scheduler() but lthread_create(<, -1, > initial_lthread, (void *) NULL); seems to be not run. I put a breakpoint > inside initial_lthread() but the execution does not stop on the breakpoin= t. > > My configuration: > - Linux Debian 8 > - dpdk v18.05.1 > - NUMA node0 CPU(s): 0-11,24-35 > - NUMA node1 CPU(s): 12-23,36-47 > > Would someone know how to run ligthweight threads with > rte_eal_remote_launch( ) ? > > Regards, > ikuzar >