From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by dpdk.org (Postfix) with ESMTP id B8A8F37A6 for ; Wed, 21 Jun 2017 09:49:52 +0200 (CEST) Received: by mail-qk0-f173.google.com with SMTP id d14so75969968qkb.1 for ; Wed, 21 Jun 2017 00:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oDDjMnzbqUZIA0lbbsxfPbc2XTTtl06uRNTfSjyk1AI=; b=RLJKDPxn6NZOQDy5BerLtdEVG4HMpiuvKzCuXmUGQlHt08umRpHlDbIfZ1BS2tUI9W QgS0ouQjzl5LzsE+6SvnezqrHpmmVAN8v8QADbmAyTfiy3UKLRXsJIfqQBhqvKgzVhEO Uvzr78EWFTqDh3hDHb2QKtWFAYusKRvSoN2jpMUztNvNheB/4VYvYoB190CTguRCJE8e E1NzFwQaCQxEZtoyG9FTATkQiaeRmomHvBSkGz6JJNPF7gbBjo5he+ZwnqHQWxUdYCd4 U6r2gB5kLCqZcHnA0DAcyUlwBZd6ydVkdEsGe95AyWISyWMcA9vCgdxs6n1XrJlx8NrS LejQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oDDjMnzbqUZIA0lbbsxfPbc2XTTtl06uRNTfSjyk1AI=; b=XT+ynGNtdPCvMIzqXUAgTTV9Tj3tR0FnOX8cnXw7gsd/JmmztikvXbgzTzY7/ke63v ZnMza5gGZtPJ91tSPR4NW4EbJNeYhPoPKvzKjtzFsBaAi8mF7ZVbLKAcTv4JL0RQmgSH I9BjneHo7pKElvNNfa4vR2bhyLNhriiSAY1jpIxlCkq1TfoHgvRzk/iwHGuIgi5GKbsP PQvj2/Z16u2EO52SjT/cILS1Ei11cAXCBKaRmm8k2VEOf8YDmR8mlzr4deb8qFAsxmYK 6K9Epc68L3BOHgvAwBn1/FRmp/s12Xmh61Lb3MciVHPaPWL43Rn9GOw6iSQrJuwe8d2I qsiw== X-Gm-Message-State: AKS2vOytiYl54+dAqwIW1fH81yNXJ+K99PbPCcF1g31QXpgCK8IRMYu8 yJXwXvTeRDjxmLn+YjQ6FhT/MCcysw== X-Received: by 10.55.101.202 with SMTP id z193mr36060111qkb.28.1498031392228; Wed, 21 Jun 2017 00:49:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.72.83 with HTTP; Wed, 21 Jun 2017 00:49:51 -0700 (PDT) In-Reply-To: References: From: Paul Tsvika Date: Wed, 21 Jun 2017 15:49:51 +0800 Message-ID: To: Shreyansh Jain Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Run testpmd application and encountered no free page issues 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, 21 Jun 2017 07:49:53 -0000 Hi Shreransh, Inline [PT02], 2017-06-21 13:35 GMT+08:00 Shreyansh Jain : > Hi Paul, > > Inline, with [SJ02] > > From: Paul Tsvika [mailto:mozloverinweb@gmail.com] > Sent: Wednesday, June 21, 2017 8:47 AM > To: Shreyansh Jain > Cc: users@dpdk.org > Subject: Re: [dpdk-users] Run testpmd application and encountered no free > page issues > > Thanks Shreyansh. > > My comment prepended with [P01] > > > 2017-06-20 19:10 GMT+08:00 Shreyansh Jain = : > Hello Paul, > > Some comments inline, prepended with [SJ01]: > (Would it be possible for you to send text mails to this mailing list - i= t > helps in keeping replies contextual) > > From: Paul Tsvika [mailto:mailto:mozloverinweb@gmail.com] > Sent: Tuesday, June 20, 2017 2:27 PM > To: Shreyansh Jain > Cc: mailto:users@dpdk.org > Subject: Re: [dpdk-users] Run testpmd application and encountered no free > page issues > > Hi Shreyansh, > > Thanks for the reply. > > By using the set-up script in DPDK: > > the hugepage memory looks to be allocated properly: > > cat /proc/meminfo > > HugePages_Total: 240 > HugePages_Free: 240 > HugePages_Rsvd: 0 > HugePages_Surp: 0 > Hugepagesize: 2048 kB > > > and then i run the commands below in sequence: > > $ sudo modprobe uio > $ sudo insmod ./build/kmod/igb_uio.ko > $ sudo ./usertools/dpdk-devbind.py -b igb_uio xxx:xx.0 xxx:xx.1 ( > xxx.xx.0, xxx.xx.1 <-- 10G port pci address ) > $ sudo ./build/app/testpmd -l 1,2,3 -n 2 -- -i > > EAL: Detected 16 lcore(s) > EAL: No free hugepages reported in hugepages-1048576kB > > [SJ01] DPDK iterates over all directories in /sys/kernel/mm/hugepages > which contains one directory for each supported hugepage size. This log > above is appearing because nothing was found for a directory named > "hugepages-1048576kB". That is probably because you have '0' hugepages of > size 1G in your system. This should not impact you until you are were > expecting 1G hugepage size. > > EAL: Probing VFIO support... > EAL: VFIO support initialized > EAL: PCI device 0000:03:00.0 on NUMA socket 0 > EAL: probe driver: 8086:15ad net_ixgbe > EAL: PCI device 0000:03:00.1 on NUMA socket 0 > EAL: probe driver: 8086:15ad net_ixgbe > EAL: PCI device 0000:05:00.0 on NUMA socket 0 > EAL: probe driver: 8086:1521 net_e1000_igb > EAL: PCI device 0000:05:00.1 on NUMA socket 0 > EAL: probe driver: 8086:1521 net_e1000_igb > Interactive-mode selected > USER1: create a new mbuf pool : n=3D163456, size=3D21= 76, > socket=3D0 > Configuring Port 0 (socket 0) > PMD: ixgbe_dev_link_status_print(): Port 0: Link Down > Port 0: 00:25:90:5C:E9:58 > Configuring Port 1 (socket 0) > PMD: ixgbe_dev_link_status_print(): Port 1: Link Down > Port 1: 00:25:90:5C:E9:59 > Checking link statuses... > Done > testpmd> > > > Questions below: > > 1. It looks like the application can enter the interactive mode. however, > I have no idea why EAL: No free hugepages reported in hugepages-1048576kB > keeps popping out. > > [SJ01] Lets ignore that for while. You have about 240 pages of 2M =3D > ~480Mb. Application is demanding ~339Mb (n=3D163456, size=3D2176) > > > 2. Is there any reason why the ports went down why I run the commands? Th= e > Link was up before running it. > > [SJ01] This I am not sure. If the links were up _before_, they should be > up now as well. Just out of curiosity, how did you check that links were = up > before? These links are not assigned to Linux kernel and are not visible = in > the ifconfig list. > > [P01] I don't know why you mentioned that these links are not assigned to > Linux kernel and not visible in the ifconfig list. ixgbe is the inbox > driver of the kernel and eno3 and eno4 ( 10G ports ) appear in ifconfig > list. > However, eno3 and eno4 gone away ( disappeared in ifconfig ) when running > this command. I am still investigating the issue. > > [SJ02] That is not an issue. That is how it is supposed to work. When you > start DPDK, it would unlink the devices from their standard ixgbe kernel > module driver and link to uio/vfio driver for direct userspace interactio= n. > That is the reason these links would not appear in ifconfig list =E2=80= =93 and that > is the right way. Were you able to use these links when they were bound t= o > ixgbe kernel module - that is, ping worked before DPDK was started? > > [PT02] > You are correct. For some reasons that my 10G ports on board A did not work even before running DPDK. After changing a new board and run the steps mentioned above, it worked. Thank you for the discussion in this mail thread. > > 3. The hugepage will be gone after running this application. > > HugePages_Total: 240 > HugePages_Free: 0 > HugePages_Rsvd: 0 > HugePages_Surp: 0 > Hugepagesize: 2048 kB > > It became this. However, how can i free it again ? I tried to umount and > mount again but it did not work. > > [SJ01] Just go and delete all files created in /mnt/hugepages/ folder. Yo= u > would have "HugePages_Free" available again. But, only if you have the > application stopped. > > > Please advice if any. > > [SJ01] Above is all what I know. I have no idea why your links are > appearing down. > > - > Shreyansh > > > > > Paul > -- > P.T > --=20 P.T