Bug 439 - memif pmd is allocating from Node 0, even after passing Node 1 in eal args
Summary: memif pmd is allocating from Node 0, even after passing Node 1 in eal args
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: ethdev (show other bugs)
Version: 20.02
Hardware: x86 Linux
: High major
Target Milestone: ---
Assignee: Marko Kovacevic
URL:
Depends on:
Blocks:
 
Reported: 2020-04-04 16:11 CEST by Vipin Varghese
Modified: 2020-04-10 10:48 CEST (History)
2 users (show)



Attachments

Description Vipin Varghese 2020-04-04 16:11:36 CEST
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.
Comment 1 Vipin Varghese 2020-04-04 16:14:16 CEST
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
Comment 2 Vipin Varghese 2020-04-04 16:42:31 CEST
Looks like memif PMD requires more than 1GB of huge pages to work. Unable to find the details in documentation.
Comment 3 Ajit Khaparde 2020-04-09 20:48:37 CEST
Marko, John, can we update the documentation? Thanks
Comment 4 Marko Kovacevic 2020-04-10 10:48:15 CEST
Yes, you can please send up a patch.

Thanks

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