Re: [PATCH] eal: fix data race in multi-process support

2022-04-20 Thread Burakov, Anatoly
On 17-Dec-21 6:29 PM, Stephen Hemminger wrote: If DPDK is built with thread sanitizer it reports a race in setting of multiprocess file descriptor. The fix is to use atomic operations when updating mp_fd. Simple example: $ dpdk-testpmd -l 1-3 --no-huge ... EAL: Error - exiting with code: 1 Ca

Re: [PATCH] eal: fix data race in multi-process support

2022-04-14 Thread Stephen Hemminger
On Sun, 13 Feb 2022 12:39:59 +0100 Thomas Monjalon wrote: > 17/12/2021 19:29, Stephen Hemminger: > > If DPDK is built with thread sanitizer it reports a race > > in setting of multiprocess file descriptor. The fix is to > > use atomic operations when updating mp_fd. > > Please could explain mo

Re: [PATCH] eal: fix data race in multi-process support

2022-02-13 Thread Thomas Monjalon
17/12/2021 19:29, Stephen Hemminger: > If DPDK is built with thread sanitizer it reports a race > in setting of multiprocess file descriptor. The fix is to > use atomic operations when updating mp_fd. Please could explain more the condition of the race? Is it between init and cleanup of the same f

[PATCH] eal: fix data race in multi-process support

2021-12-17 Thread Stephen Hemminger
If DPDK is built with thread sanitizer it reports a race in setting of multiprocess file descriptor. The fix is to use atomic operations when updating mp_fd. Simple example: $ dpdk-testpmd -l 1-3 --no-huge ... EAL: Error - exiting with code: 1 Cause: Creation of mbuf pool for socket 0 failed: Ca

[PATCH] eal: fix data race in multi-process support

2021-12-17 Thread Stephen Hemminger
If DPDK is built with thread sanitizer it reports a race in setting of multiprocess file descriptor. The fix is to use atomic operations when updating mp_fd. Simple example: $ dpdk-testpmd -l 1-3 --no-huge EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Static memory layout is select