From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) by dpdk.org (Postfix) with ESMTP id 277902C13 for ; Wed, 28 Jun 2017 19:03:33 +0200 (CEST) Received: from pps.filterd (m0049463.ppops.net [127.0.0.1]) by m0049463.ppops.net-00191d01. (8.16.0.17/8.16.0.17) with SMTP id v5SGtIh9004406 for ; Wed, 28 Jun 2017 13:03:31 -0400 Received: from flpd657.enaf.ffdc.sbc.com (sbcsmtp9.sbc.com [144.160.128.153]) by m0049463.ppops.net-00191d01. with ESMTP id 2bcfp4jk45-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 28 Jun 2017 13:03:30 -0400 Received: from enaf.ffdc.sbc.com (localhost [127.0.0.1]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id v5SH3TFC039521 for ; Wed, 28 Jun 2017 10:03:29 -0700 Received: from flpi487.ffdc.sbc.com (flpi487.ffdc.sbc.com [130.4.162.181]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id v5SH3QQ9039507 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 28 Jun 2017 10:03:27 -0700 Received: from tlpd252.dadc.sbc.com (tlpd252.dadc.sbc.com [135.31.184.157]) by flpi487.ffdc.sbc.com (RSA Interceptor) for ; Wed, 28 Jun 2017 17:03:15 GMT Received: from dadc.sbc.com (localhost [127.0.0.1]) by tlpd252.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id v5SH3E08013937 for ; Wed, 28 Jun 2017 12:03:14 -0500 Received: from SAUSMAILHUB.ad.tri.sbc.com (sausmailhub.ad.tri.sbc.com [144.60.55.228]) by tlpd252.dadc.sbc.com (8.14.5/8.14.5) with ESMTP id v5SH3C0l013670 for ; Wed, 28 Jun 2017 12:03:12 -0500 Received: from SAUSMAILMBX1.ad.tri.sbc.com ([144.60.55.229]) by SAUSMAILHUB.ad.tri.sbc.com ([144.60.55.228]) with mapi id 14.03.0351.000; Wed, 28 Jun 2017 12:03:12 -0500 From: "McCullough, Harrison" To: "users@dpdk.org" Thread-Topic: 0MB available on socket when running pktgen-dpdk Thread-Index: AdLwMEmmXw3b90vKTd66ecAWuGE4ng== Date: Wed, 28 Jun 2017 17:03:11 +0000 Message-ID: <942AD08E4186F644A54168E4F84117C9317DB2@SAUSMAILMBX1.ad.tri.sbc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [144.60.57.137] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-RSA-Inspected: yes X-RSA-Classifications: public X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-28_11:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706280272 Subject: [dpdk-users] 0MB available on socket when running pktgen-dpdk X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2017 17:03:34 -0000 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 ru= n without complaint. Does anybody know what's going on? P.S. Why does /proc/meminfo always report that there are 0 hugepages free a= fter 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 i= t 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 d= oes testpmd work? It appears to be using them, since they are no longer free af= ter 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/testp= md 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 : n=3D203456, size=3D2176= , socket=3D0 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=3D2 - cores=3D1 - streams=3D2 - NUMA support e= nabled, MP over anonymous pages disabled Logical Core 1 (socket 0) forwards packets on 2 streams: RX P=3D0/Q=3D0 (socket 0) -> TX P=3D1/Q=3D0 (socket 0) peer=3D02:00:00:00= :00:01 RX P=3D1/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:00= :00:00 io packet forwarding - CRC stripping enabled - packets/burst=3D32 nb forwarding cores=3D1 - nb forwarding ports=3D2 RX queues=3D1 - RX desc=3D128 - RX free threshold=3D32 RX threshold registers: pthresh=3D8 hthresh=3D8 wthresh=3D1 TX queues=3D1 - TX desc=3D512 - TX free threshold=3D0 TX threshold registers: pthresh=3D8 hthresh=3D1 wthresh=3D1 TX RS bit threshold=3D0 - TXQ flags=3D0x0 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