Re: [PATCH] eal/unix: optimize thread creation with glibc

2024-11-03 Thread David Marchand
On Sat, Nov 2, 2024 at 8:58 PM Stephen Hemminger wrote: > > On Sat, 2 Nov 2024 11:08:39 +0100 > David Marchand wrote: > > > Setting the cpu affinity of the child thread from the parent thread is > > racy when using pthread_setaffinity_np, as the child thread may start > > running and initialize

[PATCH] eal/unix: optimize thread creation with glibc

2024-11-02 Thread David Marchand
Setting the cpu affinity of the child thread from the parent thread is racy when using pthread_setaffinity_np, as the child thread may start running and initialize before affinity is set. On the other hand, setting the cpu affinity from the child thread itself may fail, so the parent thread waits