Re: [dpdk-dev] [PATCH] eal: protect malloc stats with lock

2018-01-12 Thread Thomas Monjalon
21/12/2017 18:32, Anatoly Burakov: > When we're gathering statistics, we are traversing the freelist, > which may change under our feet in multithreaded scenario. This > is verified by occasional segfaults when running malloc autotest > on a machine with big amount of cores. > > This patch protect

[dpdk-dev] [PATCH] eal: protect malloc stats with lock

2017-12-21 Thread Anatoly Burakov
When we're gathering statistics, we are traversing the freelist, which may change under our feet in multithreaded scenario. This is verified by occasional segfaults when running malloc autotest on a machine with big amount of cores. This patch protects malloc heap stats call with a lock. It change