OpenVisualCloud / Media-Transport-Library

A real-time media transport(DPDK, AF_XDP, RDMA) stack for both raw and compressed video based on COTS hardware.
BSD 3-Clause "New" or "Revised" License
161 stars 51 forks source link

Optimize memory pool size in DPDK function #925

Closed DawidWesierski4 closed 1 month ago

DawidWesierski4 commented 1 month ago

Enhance the memory utilization in the DPDK mempool creation function by adjusting the number of elements to the nearest higher power of two minus one.

DawidWesierski4 commented 1 month ago

Running test: =========================================== ./build/tests/KahawaiUfdTest --p_port 0000:b1:01.1 --r_port 0000:b1:01.2

Test passed in 18 seconds.

=========================================== Running test: =========================================== ./build/tests/KahawaiUfdTest --p_port 0000:b1:01.1 --r_port 0000:b1:01.2 --queue_mode shared

Test passed in 20 seconds.

=========================================== Running test: =========================================== ./build/tests/KahawaiUfdTest --p_port 0000:b1:01.1 --r_port 0000:b1:01.2 --queue_mode shared --udp_lcore

Test passed in 20 seconds.

=========================================== Running test: =========================================== ./build/tests/KahawaiUfdTest --p_port 0000:b1:01.1 --r_port 0000:b1:01.2 --rss_mode l3_l4

Test passed in 21 seconds.

=========================================== Running test: =========================================== ./build/tests/KahawaiTest --auto_start_stop --p_port 0000:b1:01.1 --r_port 0000:b1:01.2 --dma_dev 0000:00:01.0,0000:00:01.1 --gtestfilter=-St22?x.*

Test passed in 782 seconds.

=========================================== Running test: =========================================== ./build/tests/KahawaiTest --auto_start_stop --p_port 0000:b1:01.1 --r_port 0000:b1:01.2 --rss_mode l3_l4 --pacing_way tsc --iova_mode pa --multi_src_port --gtest_filter=Main.:St20p:-ext

Test passed in 82 seconds.

=========================================== Running test: =========================================== ./build/tests/KahawaiTest --p_port kernel:lo --r_port kernel:lo --auto_start_stop --gtest_filter=St20p*

Test passed in 139 seconds.

===========================================

Gtests run manually due to lack of runners