* query about rte_eal_mp_remote_launch() @ 2013-10-23 11:40 Jyotiswarup Raiturkar [not found] ` <CAJn5u1nHrGSDWM5ApbRRc-nsvL5x7jOd9axx==YvfLdWacbFMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Jyotiswarup Raiturkar @ 2013-10-23 11:40 UTC (permalink / raw) To: dev-VfR2kkLFssw Hello Devs I'm new to DPDK and trying to understand the basics.. I want to write a DPDK app where I want to configure shm rings on the fly, and I want one thread(per core) to service the ring. In some of the examples I saw rte_eal_mp_remote_launch() being used, but this is a one time launch. Can I use pthread_create() on-the-fly (taking care of CPU core allocation), after doing an initial threads launch using rte_eal_mp_remote_launch()? Thanks Jyotiswarup Raiturkar ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAJn5u1nHrGSDWM5ApbRRc-nsvL5x7jOd9axx==YvfLdWacbFMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: query about rte_eal_mp_remote_launch() [not found] ` <CAJn5u1nHrGSDWM5ApbRRc-nsvL5x7jOd9axx==YvfLdWacbFMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-10-23 14:16 ` Prashant Upadhyaya [not found] ` <C7CE7EEF248E2B48BBA63D0ABEEE700C43EA7059CC-2zbAqoMm/rLQX//ci7WS+53eMK7GYZcrXYFosVITYPE@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Prashant Upadhyaya @ 2013-10-23 14:16 UTC (permalink / raw) To: Jyotiswarup Raiturkar, dev-VfR2kkLFssw@public.gmane.org Hi Jyoti, You must carefully analyse your usecase. Typically each core must run a tight loop (and therefore one thread spawned by remote launch) which does a while 1 { get packet, service packet } You should try to build your application around the above paradigm. One of your cores can service the slow path using traditional linux with a tap interface. Regards -Prashant -----Original Message----- From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Jyotiswarup Raiturkar Sent: Wednesday, October 23, 2013 5:11 PM To: dev-VfR2kkLFssw@public.gmane.org Subject: [dpdk-dev] query about rte_eal_mp_remote_launch() Hello Devs I'm new to DPDK and trying to understand the basics.. I want to write a DPDK app where I want to configure shm rings on the fly, and I want one thread(per core) to service the ring. In some of the examples I saw rte_eal_mp_remote_launch() being used, but this is a one time launch. Can I use pthread_create() on-the-fly (taking care of CPU core allocation), after doing an initial threads launch using rte_eal_mp_remote_launch()? Thanks Jyotiswarup Raiturkar =============================================================================== Please refer to http://www.aricent.com/legal/email_disclaimer.html for important disclosures regarding this electronic communication. =============================================================================== ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <C7CE7EEF248E2B48BBA63D0ABEEE700C43EA7059CC-2zbAqoMm/rLQX//ci7WS+53eMK7GYZcrXYFosVITYPE@public.gmane.org>]
* Re: query about rte_eal_mp_remote_launch() [not found] ` <C7CE7EEF248E2B48BBA63D0ABEEE700C43EA7059CC-2zbAqoMm/rLQX//ci7WS+53eMK7GYZcrXYFosVITYPE@public.gmane.org> @ 2013-10-23 14:30 ` Jyotiswarup Raiturkar [not found] ` <CAJn5u1mwbRqD1PUftz8TUFyKWgDpCZuh4V1ZRGD_sCMshz=W_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Jyotiswarup Raiturkar @ 2013-10-23 14:30 UTC (permalink / raw) To: Prashant Upadhyaya; +Cc: dev-VfR2kkLFssw@public.gmane.org Hi Prashant Thanks for the reply. I understand what you said. But my query was can i use pthread_create() to create the 'tight loop' threads on demand, rather than spawing the threads at start with rte_eal_mp_remote_launch(). Does anything in the dpdk core preclude using pthread_create() calls directly? -Jyoti On Wed, Oct 23, 2013 at 7:46 PM, Prashant Upadhyaya < prashant.upadhyaya-pccXkzZloW5BDgjK7y7TUQ@public.gmane.org> wrote: > Hi Jyoti, > > You must carefully analyse your usecase. > Typically each core must run a tight loop (and therefore one thread > spawned by remote launch) which does a while 1 { get packet, service packet > } > You should try to build your application around the above paradigm. > > One of your cores can service the slow path using traditional linux with a > tap interface. > > Regards > -Prashant > > > -----Original Message----- > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Jyotiswarup Raiturkar > Sent: Wednesday, October 23, 2013 5:11 PM > To: dev-VfR2kkLFssw@public.gmane.org > Subject: [dpdk-dev] query about rte_eal_mp_remote_launch() > > Hello Devs > I'm new to DPDK and trying to understand the basics.. > I want to write a DPDK app where I want to configure shm rings on the fly, > and I want one thread(per core) to service the ring. > In some of the examples I saw rte_eal_mp_remote_launch() being used, but > this is a one time launch. Can I use pthread_create() on-the-fly (taking > care of CPU core allocation), after doing an initial threads launch using > rte_eal_mp_remote_launch()? > Thanks > Jyotiswarup Raiturkar > > > > > > =============================================================================== > Please refer to http://www.aricent.com/legal/email_disclaimer.html > for important disclosures regarding this electronic communication. > > =============================================================================== > ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAJn5u1mwbRqD1PUftz8TUFyKWgDpCZuh4V1ZRGD_sCMshz=W_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: query about rte_eal_mp_remote_launch() [not found] ` <CAJn5u1mwbRqD1PUftz8TUFyKWgDpCZuh4V1ZRGD_sCMshz=W_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-10-23 15:43 ` Prashant Upadhyaya 0 siblings, 0 replies; 4+ messages in thread From: Prashant Upadhyaya @ 2013-10-23 15:43 UTC (permalink / raw) To: Jyotiswarup Raiturkar; +Cc: dev-VfR2kkLFssw@public.gmane.org Hi, So far as you are doing the init properly in a controlled fashion from one core, you should be able to orchestrate the usecase with your own threads. I don't think so there should be any limitations. Regards -Prashant From: Jyotiswarup Raiturkar [mailto:jyotisr5-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org] Sent: Wednesday, October 23, 2013 8:01 PM To: Prashant Upadhyaya Cc: dev-VfR2kkLFssw@public.gmane.org Subject: Re: [dpdk-dev] query about rte_eal_mp_remote_launch() Hi Prashant Thanks for the reply. I understand what you said. But my query was can i use pthread_create() to create the 'tight loop' threads on demand, rather than spawing the threads at start with rte_eal_mp_remote_launch(). Does anything in the dpdk core preclude using pthread_create() calls directly? -Jyoti On Wed, Oct 23, 2013 at 7:46 PM, Prashant Upadhyaya <prashant.upadhyaya@aricent.com<mailto:prashant.upadhyaya-pccXkzZloW5BDgjK7y7TUQ@public.gmane.org>> wrote: Hi Jyoti, You must carefully analyse your usecase. Typically each core must run a tight loop (and therefore one thread spawned by remote launch) which does a while 1 { get packet, service packet } You should try to build your application around the above paradigm. One of your cores can service the slow path using traditional linux with a tap interface. Regards -Prashant -----Original Message----- From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org<mailto:dev-bounces-VfR2kkLFssw@public.gmane.org>] On Behalf Of Jyotiswarup Raiturkar Sent: Wednesday, October 23, 2013 5:11 PM To: dev-VfR2kkLFssw@public.gmane.org<mailto:dev-VfR2kkLFssw@public.gmane.org> Subject: [dpdk-dev] query about rte_eal_mp_remote_launch() Hello Devs I'm new to DPDK and trying to understand the basics.. I want to write a DPDK app where I want to configure shm rings on the fly, and I want one thread(per core) to service the ring. In some of the examples I saw rte_eal_mp_remote_launch() being used, but this is a one time launch. Can I use pthread_create() on-the-fly (taking care of CPU core allocation), after doing an initial threads launch using rte_eal_mp_remote_launch()? Thanks Jyotiswarup Raiturkar =============================================================================== Please refer to http://www.aricent.com/legal/email_disclaimer.html for important disclosures regarding this electronic communication. =============================================================================== =============================================================================== Please refer to http://www.aricent.com/legal/email_disclaimer.html for important disclosures regarding this electronic communication. =============================================================================== ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-23 15:43 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-10-23 11:40 query about rte_eal_mp_remote_launch() Jyotiswarup Raiturkar [not found] ` <CAJn5u1nHrGSDWM5ApbRRc-nsvL5x7jOd9axx==YvfLdWacbFMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-10-23 14:16 ` Prashant Upadhyaya [not found] ` <C7CE7EEF248E2B48BBA63D0ABEEE700C43EA7059CC-2zbAqoMm/rLQX//ci7WS+53eMK7GYZcrXYFosVITYPE@public.gmane.org> 2013-10-23 14:30 ` Jyotiswarup Raiturkar [not found] ` <CAJn5u1mwbRqD1PUftz8TUFyKWgDpCZuh4V1ZRGD_sCMshz=W_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-10-23 15:43 ` Prashant Upadhyaya
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).