Multiple rte_launch_remote multiple times on main lcore

Stephen Hemminger stephen at networkplumber.org
Sun Jun 25 16:49:26 CEST 2023


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