Multiple rte_launch_remote multiple times on main lcore
Antonio Di Bacco
a.dibacco.ks at gmail.com
Tue Jun 27 20:20:28 CEST 2023
This is very useful. Anyway, just on main_lcore, could I launch many
pthreads (with pthread_create) ?
Does this interfere with DPDK?
On Sun, Jun 25, 2023 at 4:49 PM Stephen Hemminger
<stephen at networkplumber.org> wrote:
>
> On Tue, 20 Jun 2023 17:33:59 +0200
> Antonio Di Bacco <a.dibacco.ks at gmail.com> wrote:
>
> > Is it possible to launch multiple threads on the main lcore?
> > Who will be in charge of scheduling those threads on the main lcore
> > (main lcore is isolated)?
> >
> > Not the OS I suppose.
> >
> > Thank you
>
> If you start trying to add threads like this, it will lead to
> all sorts of locking problems. When one thread gets the lock
> and then gets preempted by the scheduler and another thread
> (bound to same lcore) tries to acquire the lock, it will spin
> and wait until the first thread is rescheduled.
>
> DPDK was designed for dedicated threads per lcore.
More information about the users
mailing list