Adrian Chadd's Ramblings

submited by
Style Pass
2023-01-23 16:30:05

Hello! I have reproduced your tests with netmap-ipfw in bridge mode: http://www.stableit.ru/2015/03/linux-netmap-ipfw.html And haven't got any speedup: Buffer sizes 2048. %Cpu(s): 23.7 us, 17.3 sy, 0.0 ni, 57.8 id, 0.0 wa, 0.0 hi, 1.0 si, 0.2 st Gbps: 4.2 MPPS: 12.2 Gbps: 4.2 MPPS: 12.4 Buffer size 1920. echo 1920 > /sys/module/netmap/parameters/priv_buf_size echo 1920 > /sys/module/netmap/parameters/buf_size %Cpu(s): 25.5 us, 19.7 sy, 0.0 ni, 54.0 id, 0.0 wa, 0.0 hi, 0.7 si, 0.1 st Gbps: 4.4 MPPS: 12.7 Gbps: 4.3 MPPS: 12.7 My hardware: i7 3820 on host and KVM VM with PCI passthought

Hi! That's odd - but the netmap-ipfw code doesn't really do any batching or pre-fetching. Try using the linux perf tools to see if you can identify (a) where the CPU utilisation is going, and (b) whether you see a change in L2 cache aliasing.

Leave a Comment
Related Posts