DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] 0MB available on socket when running pktgen-dpdk
@ 2017-06-28 17:03 McCullough, Harrison
  2017-06-28 17:28 ` Wiles, Keith
  2017-06-28 17:30 ` Wiles, Keith
  0 siblings, 2 replies; 4+ messages in thread
From: McCullough, Harrison @ 2017-06-28 17:03 UTC (permalink / raw)
  To: users

When I run pktgen-dpdk I always get the error that there are 0MB available (no
matter how much I request).  However, if I run testpmd, then it seems to run
without complaint.  Does anybody know what's going on?

P.S. Why does /proc/meminfo always report that there are 0 hugepages free after
I do anything with DPDK? Does it not clean up afterward and free them? If I rm
/mnt/huge/* then /proc/meminfo reports that the hugepages were freed, but it
seems like I shouldn't have to manually do that.

P.P.S. If /proc/meminfo reports that there are 0 hugepages free, then why does
testpmd work? It appears to be using them, since they are no longer free after
running testpmd.

root@ubuntu:/home/harrison/git/dpdk# grep -i huge /proc/meminfo
AnonHugePages:    208896 kB
HugePages_Total:    1024
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
root@ubuntu:/home/harrison/git/dpdk# ./x86_64-native-linuxapp-gcc/app/testpmd
EAL: Detected 8 lcore(s)
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:05:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10e8 net_e1000_igb
EAL: PCI device 0000:05:00.1 on NUMA socket -1
EAL:   probe driver: 8086:10e8 net_e1000_igb
EAL: PCI device 0000:06:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10e8 net_e1000_igb
EAL: PCI device 0000:06:00.1 on NUMA socket -1
EAL:   probe driver: 8086:10e8 net_e1000_igb
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
USER1: create a new mbuf pool <mbuf_pool_socket_0>: n=203456, size=2176, socket=0
Configuring Port 0 (socket 0)
Port 0: 00:1B:21:6C:FC:9C
Configuring Port 1 (socket 0)
Port 1: 00:1B:21:6C:FC:9D
Checking link statuses...
Done
No commandline core given, start packet forwarding
io packet forwarding - ports=2 - cores=1 - streams=2 - NUMA support enabled, MP over anonymous pages disabled
Logical Core 1 (socket 0) forwards packets on 2 streams:
  RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01
  RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00

  io packet forwarding - CRC stripping enabled - packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=2
  RX queues=1 - RX desc=128 - RX free threshold=32
  RX threshold registers: pthresh=8 hthresh=8 wthresh=1
  TX queues=1 - TX desc=512 - TX free threshold=0
  TX threshold registers: pthresh=8 hthresh=1 wthresh=1
  TX RS bit threshold=0 - TXQ flags=0x0
Press enter to exit

Telling cores to stop...
Waiting for lcores to finish...

  ---------------------- Forward statistics for port 0  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  ---------------------- Forward statistics for port 1  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.

Shutting down port 0...
Stopping ports...
Done
Closing ports...
Done

Shutting down port 1...
Stopping ports...
Done
Closing ports...
Done

Bye...
root@ubuntu:/home/harrison/git/dpdk# grep -i huge /proc/meminfo
AnonHugePages:    208896 kB
HugePages_Total:    1024
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
root@ubuntu:/home/harrison/git/dpdk# cd ../pktgen-dpdk/
root@ubuntu:/home/harrison/git/pktgen-dpdk# ./tools/run.py harrison
sudo ./app/x86_64-native-linuxapp-gcc/pktgen -l 0,1-4 -n 2 --proc-type auto --log-level 7 --socket-mem 512,512 --file-prefix pg -- -T -P --crc-strip -m [1:2].0 -m [3:4].1 -f themes/black-yellow.theme

Copyright (c) <2010-2017>, Intel Corporation. All rights reserved. Powered by Intel(r) DPDK
EAL: Detected 8 lcore(s)
EAL: Auto-detected process type: PRIMARY
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Not enough memory available on socket 1! Requested: 512MB, available: 0MB
EAL: FATAL: Cannot init memory

EAL: Cannot init memory

root@ubuntu:/home/harrison/git/pktgen-dpdk# grep -i huge /proc/meminfo
AnonHugePages:    208896 kB
HugePages_Total:    1024
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
root@ubuntu:/home/harrison/git/pktgen-dpdk# sudo rm /mnt/huge/*
root@ubuntu:/home/harrison/git/pktgen-dpdk# sudo rm /mnt/huge
huge/     huge_1GB/
root@ubuntu:/home/harrison/git/pktgen-dpdk# grep -i huge /proc/meminfo
AnonHugePages:    208896 kB
HugePages_Total:    1024
HugePages_Free:     1024
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
root@ubuntu:/home/harrison/git/pktgen-dpdk# ./tools/run.py harrison
sudo ./app/x86_64-native-linuxapp-gcc/pktgen -l 0,1-4 -n 2 --proc-type auto --log-level 7 --socket-mem 512,512 --file-prefix pg -- -T -P --crc-strip -m [1:2].0 -m [3:4].1 -f themes/black-yellow.theme

Copyright (c) <2010-2017>, Intel Corporation. All rights reserved. Powered by Intel(r) DPDK
EAL: Detected 8 lcore(s)
EAL: Auto-detected process type: PRIMARY
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Not enough memory available on socket 1! Requested: 512MB, available: 0MB
EAL: FATAL: Cannot init memory

EAL: Cannot init memory

root@ubuntu:/home/harrison/git/pktgen-dpdk# grep -i huge /proc/meminfo
AnonHugePages:    208896 kB
HugePages_Total:    1024
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-28 17:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-28 17:03 [dpdk-users] 0MB available on socket when running pktgen-dpdk McCullough, Harrison
2017-06-28 17:28 ` Wiles, Keith
2017-06-28 17:30 ` Wiles, Keith
2017-06-28 17:36   ` McCullough, Harrison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).