From: "Abdul, Jaffar" <jabdul@ciena.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] FW: Issues with running multicore
Date: Wed, 25 Nov 2015 14:18:58 -0500 [thread overview]
Message-ID: <23903483D1A9B04AB5D759C6C845237F043A1831A2@ONWVEXCHMB05.ciena.com> (raw)
In-Reply-To: <5D52F6EC3531E949B1A9130CBFCE032F9935982C@ONWVEXCHMB04.ciena.com>
Hi All,
Iam trying to create multi core application by mapping separate function for each core.
I had followed Multi process example and I had used pthread.
The use case is:
1. In a single process, launch pthread and run rte_eal_init
2. Once rte_eal_init is done, create 3 pthreads
3. Launch master core.
4. In each of 3 pthread, launch slave core.
The issue is, I don't see 4 cores running. Instead I see only single core running.
Here is the Pseudo code:
Init_pmd{
ret = rte_eal_init(args, argv) ==> I had set the number of cores to 4 in the params.
pthread_create(&thread1, NULL, (void*)threadFun1, NULL);
pthread_create(&thread2, NULL, (void*)threadFun2, NULL);
pthread_create(&thread3, NULL, (void*)threadFun3, NULL);
rte_eal_mp_remote_launch(launch_pmd_single_lcore, NULL, CALL_MASTER);
}
Iam mapping each core to threadFun1, threadFun2 and threadFun3.
threadFun1
{
RTE_LCORE_FOREACH_SLAVE(lcore_id)
{
if( lcore_id == 1 )
rte_eal_remote_launch(threadFun1_launch_one_lcore, NULL, lcore_id);
}
}
Has anyone seen this issue?
Please let me know if iam missing something?
Thanks
Vartha
parent reply other threads:[~2015-11-25 19:19 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <5D52F6EC3531E949B1A9130CBFCE032F9935982C@ONWVEXCHMB04.ciena.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23903483D1A9B04AB5D759C6C845237F043A1831A2@ONWVEXCHMB05.ciena.com \
--to=jabdul@ciena.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).