Bug 1230 - [dpdk-23.03][meson test] malloc_autotest test: failed to test on FreeBSD
Summary: [dpdk-23.03][meson test] malloc_autotest test: failed to test on FreeBSD
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: meson (show other bugs)
Version: 23.03
Hardware: All FreeBSD
: Normal normal
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2023-05-16 04:18 CEST by jiang,yu
Modified: 2023-05-19 08:19 CEST (History)
1 user (show)



Attachments

Description jiang,yu 2023-05-16 04:18:15 CEST
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:
Comment 1 Ruifeng Wang 2023-05-19 06:40:15 CEST
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.
Comment 2 jiang,yu 2023-05-19 08:19:38 CEST
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>>[

Note You need to log in before you can comment on or make changes to this bug.