CMD: ` rm /tmp/*.sock; ./build/l2fwd --vdev=net_memif0,socket=/tmp/1.sock,role=master --vdev=net_memif1,socket=/tmp/2.sock,role=master --no-pci -l 22,66 --socket-mem=0,256 --socket-limit=0,1024 -- -p 1 -T 1` logs: ` # numastat -p l2fwd Per-node process memory usage (in MBs) for PID 65331 (l2fwd) Node 0 Node 1 Total --------------- --------------- --------------- Huge 1024.00 1024.00 2048.00 Heap 0.07 0.05 0.12 Stack 0.03 0.00 0.03 Private 3.29 2.93 6.23 ---------------- --------------- --------------- --------------- Total 1027.39 1026.98 2054.38 ` note: main.c is edited no to fail for promiscuous fail.
running the same with tap interface does not use node-0 memory # numastat -p l2fwd Per-node process memory usage (in MBs) for PID 65681 (l2fwd) Node 0 Node 1 Total --------------- --------------- --------------- Huge 0.00 1024.00 1024.00 Heap 0.07 0.01 0.08 Stack 0.03 0.01 0.04 Private 3.33 2.99 6.32 ---------------- --------------- --------------- --------------- Total 3.43 1027.01 1030.43
Looks like memif PMD requires more than 1GB of huge pages to work. Unable to find the details in documentation.
Marko, John, can we update the documentation? Thanks
Yes, you can please send up a patch. Thanks