Environment: ------------------------------------------------------------- DPDK version: 23.03 OS: FreeBSD 13.2-RELEASE Compiler: gcc version 12.2.0 (FreeBSD Ports Collection) NIC hardware: Ethernet controller: Intel Corporation Ethernet Controller XXV710 for 25GbE SFP28 Test Setup: ------------------------------------------------------------- rm -rf x86_64-native-bsdapp-gcc/ CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-bsdapp-gcc ninja -C x86_64-native-bsdapp-gcc kldunload contigmem.ko kldunload nic_uio.ko kldload x86_64-native-bsdapp-gcc/kernel/freebsd/contigmem.ko kldload x86_64-native-bsdapp-gcc/kernel/freebsd/nic_uio.ko kenv hw.nic_uio.bdfs="2:0:0,2:0:1" MALLOC_PERTURB_=162 DPDK_TEST=malloc_autotest /root/dpdk/x86_64-native-bsdapp-gcc/app/test/dpdk-test Show the output from the previous commands: ------------------------------------------------------------- Incorrect heap statistics: Allocated size test_multi_alloc_statistics() failed Test Failed RTE>> Expected Result: ------------------------------------------------------------- Test OK Regression: ------------------------------------------------------------- Is this issue a regression: (Y/N) Y Version the regression was introduced: commit f62f4a375ff496abf66e48d5e1b1c442b86a82c1 Author: Fengnan Chang <changfengnan@bytedance.com> Date: Fri Feb 10 14:30:22 2023 +0800 malloc: optimize 4K allocations Here is a simple test case:
I was working on a similar malloc_autotest failure and tracked it down to commit f62f4a375ff. I created a patch http://patches.dpdk.org/project/dpdk/patch/20230519042923.314670-2-ruifeng.wang@arm.com/ which fixed my issue. Not sure the same patch will solve your issue. Just for your information. Thanks.
Thanks Ruifeng. I verify your patch series based on dpdk main (commit: a399d7b5a9 vfio: do not coalesce DMA mappings), but still test failed. Incorrect heap statistics: Allocated size test_multi_alloc_statistics() failed Test Failed RTE>>[