DPDK usage discussions
 help / color / mirror / Atom feed
From: SAKTHIVEL ANAND S <anand.sa88@gmail.com>
To: "Nikhila,
	Athaluri (Nokia - IN/Bangalore)" <athaluri.nikhila@nokia.com>,
	users@dpdk.org
Subject: Re: [dpdk-users] Issue on running kni application
Date: Mon, 18 Apr 2016 12:27:23 +0530	[thread overview]
Message-ID: <CAOP5GAyJRRHb=o6g=J2DLdGZWCV2ri5i55hxQ0zhQR7+QJik8w@mail.gmail.com> (raw)
In-Reply-To: <12A43467A5F69640B90142DFE5470A180184F97A@SGSIMBX004.nsn-intra.net>

Hi

I was about to say that , you have to change(increase) the hugepages. To be
simple , please follow the below step to increase number of hugepages(from
my script) and then run your KNI app.


#setting huge pages for DPDK program
mkdir -p /mnt/huge

mount -t hugetlbfs nodev /mnt/huge

echo 1024 >
/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

you can cross check (last few lines):  cat /proc/meminfo

Regards
Sakthivel S

On Mon, Apr 18, 2016 at 10:10 AM, Nikhila, Athaluri (Nokia - IN/Bangalore) <
athaluri.nikhila@nokia.com> wrote:

> Hi,
>
>
>
>                 When I check option 21 ,I get the following details.
>
>
>
> Option: 21
>
> chmod /dev/vfio
> OK
> chmod /dev/vfio/*
> OK
>
> Current user memlock limit: 0 MB
>
> This is the maximum amount of memory you will be
> able to use with DPDK and VFIO if run as current user.
> To change this, please adjust limits.conf memlock limit for current user.
>
> ## WARNING: memlock limit is less than 64MB
> ## DPDK with VFIO may not be able to initialize if run as current user.
>
>
>
> Rgds,
>
> Nikhila
>
>
>
>
>
> *From:* EXT SAKTHIVEL ANAND S [mailto:anand.sa88@gmail.com]
> *Sent:* Friday, April 15, 2016 6:15 PM
> *To:* Nikhila, Athaluri (Nokia - IN/Bangalore) <athaluri.nikhila@nokia.com
> >
> *Cc:* users@dpdk.org
> *Subject:* Re: [dpdk-users] Issue on running kni application
>
>
>
> Hi
> Not sure , how much memory needed for KNI application. I am using 2MB *
> 1024 pages and it is working fine.That is enough i guess. for setting up
> hugepages /tools/setup.sh <option 21>
>
> Thanks
>
> Sakthivel S
>
>
>
> On Fri, Apr 15, 2016 at 10:53 AM, Nikhila, Athaluri (Nokia - IN/Bangalore)
> <athaluri.nikhila@nokia.com> wrote:
>
> Hi,
>
>      I am trying to run the kni application which is an example of DPDK
> and I am getting the following error. Can anyone please help me out.
>
> Hugepages - 303 hugepages (2 MB)
> Error: exiting with code 1
>  Cause : could not initialize mbuf pool.
>
> Thanks in advance.
>
>
> sudo ./build/app/kni -c 0xf -n 4 -- -P -p 0x3 --config="(0,0,1),(1,2,3)"
> EAL: Detected lcore 0 as core 0 on socket 0
> EAL: Detected lcore 1 as core 1 on socket 0
> EAL: Detected lcore 2 as core 2 on socket 0
> EAL: Detected lcore 3 as core 3 on socket 0
> EAL: Support maximum 128 logical core(s) by configuration.
> EAL: Detected 4 lcore(s)
> EAL: Setting up physically contiguous memory...
> EAL: Ask a virtual area of 0x600000 bytes
> EAL: Virtual area found at 0x7f0ee1600000 (size = 0x600000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ee1200000 (size = 0x200000)
> EAL: Ask a virtual area of 0x400000 bytes
> EAL: Virtual area found at 0x7f0ee0c00000 (size = 0x400000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ee0800000 (size = 0x200000)
> EAL: Ask a virtual area of 0x600000 bytes
> EAL: Virtual area found at 0x7f0ee0000000 (size = 0x600000)
> EAL: Ask a virtual area of 0x4800000 bytes
> EAL: Virtual area found at 0x7f0edb600000 (size = 0x4800000)
> EAL: Ask a virtual area of 0x4c00000 bytes
> EAL: Virtual area found at 0x7f0ed6800000 (size = 0x4c00000)
> EAL: Ask a virtual area of 0x1e00000 bytes
> EAL: Virtual area found at 0x7f0ed4800000 (size = 0x1e00000)
> EAL: Ask a virtual area of 0xc00000 bytes
> EAL: Virtual area found at 0x7f0ed3a00000 (size = 0xc00000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ed3600000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ed3200000 (size = 0x200000)
> EAL: Ask a virtual area of 0x400000 bytes
> EAL: Virtual area found at 0x7f0ed2c00000 (size = 0x400000)
> EAL: Ask a virtual area of 0x600000 bytes
> EAL: Virtual area found at 0x7f0ed2400000 (size = 0x600000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ed2000000 (size = 0x200000)
> EAL: Ask a virtual area of 0x800000 bytes
> EAL: Virtual area found at 0x7f0ed1600000 (size = 0x800000)
> EAL: Ask a virtual area of 0x800000 bytes
> EAL: Virtual area found at 0x7f0ed0c00000 (size = 0x800000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ed0800000 (size = 0x200000)
> EAL: Ask a virtual area of 0x600000 bytes
> EAL: Virtual area found at 0x7f0ed0000000 (size = 0x600000)
> EAL: Ask a virtual area of 0x600000 bytes
> EAL: Virtual area found at 0x7f0ecf800000 (size = 0x600000)
> EAL: Ask a virtual area of 0x1c00000 bytes
> EAL: Virtual area found at 0x7f0ecda00000 (size = 0x1c00000)
> EAL: Ask a virtual area of 0x2800000 bytes
> EAL: Virtual area found at 0x7f0ecb000000 (size = 0x2800000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ecac00000 (size = 0x200000)
> EAL: Ask a virtual area of 0x4600000 bytes
> EAL: Virtual area found at 0x7f0ec6400000 (size = 0x4600000)
> EAL: Ask a virtual area of 0x1c00000 bytes
> EAL: Virtual area found at 0x7f0ec4600000 (size = 0x1c00000)
> EAL: Ask a virtual area of 0xe00000 bytes
> EAL: Virtual area found at 0x7f0ec3600000 (size = 0xe00000)
> EAL: Ask a virtual area of 0x2000000 bytes
> EAL: Virtual area found at 0x7f0ec1400000 (size = 0x2000000)
> EAL: Ask a virtual area of 0x1200000 bytes
> EAL: Virtual area found at 0x7f0ec0000000 (size = 0x1200000)
> EAL: Ask a virtual area of 0x1000000 bytes
> EAL: Virtual area found at 0x7f0ebee00000 (size = 0x1000000)
> EAL: Ask a virtual area of 0xa00000 bytes
> EAL: Virtual area found at 0x7f0ebe200000 (size = 0xa00000)
> EAL: Ask a virtual area of 0x600000 bytes
> EAL: Virtual area found at 0x7f0ebda00000 (size = 0x600000)
> EAL: Ask a virtual area of 0xa00000 bytes
> EAL: Virtual area found at 0x7f0ebce00000 (size = 0xa00000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0ebca00000 (size = 0x200000)
> EAL: Ask a virtual area of 0x400000 bytes
> EAL: Virtual area found at 0x7f0ebc400000 (size = 0x400000)
> EAL: Ask a virtual area of 0x1400000 bytes
> EAL: Virtual area found at 0x7f0ebae00000 (size = 0x1400000)
> EAL: Ask a virtual area of 0x800000 bytes
> EAL: Virtual area found at 0x7f0eba400000 (size = 0x800000)
> EAL: Ask a virtual area of 0x800000 bytes
> EAL: Virtual area found at 0x7f0eb9a00000 (size = 0x800000)
> EAL: Ask a virtual area of 0xc00000 bytes
> EAL: Virtual area found at 0x7f0eb8c00000 (size = 0xc00000)
> EAL: Ask a virtual area of 0x1000000 bytes
> EAL: Virtual area found at 0x7f0eb7a00000 (size = 0x1000000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0eb7600000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0eb7200000 (size = 0x200000)
> EAL: Ask a virtual area of 0x200000 bytes
> EAL: Virtual area found at 0x7f0eb6e00000 (size = 0x200000)
> EAL: Requesting 303 pages of size 2MB from socket 0
> EAL: TSC frequency is ~2690619 KHz
> EAL: Master lcore 0 is ready (tid=e428f900;cpuset=[0])
> EAL: lcore 3 is ready (tid=b5dfd700;cpuset=[3])
> EAL: lcore 1 is ready (tid=b6dff700;cpuset=[1])
> EAL: lcore 2 is ready (tid=b65fe700;cpuset=[2])
> EAL: PCI device 0000:00:03.0 on NUMA socket -1
> EAL:   probe driver: 8086:100e rte_em_pmd
> EAL:   PCI memory mapped at 0x7f0ee1c00000
> PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x100e
> EAL: PCI device 0000:00:08.0 on NUMA socket -1
> EAL:   probe driver: 8086:100e rte_em_pmd
> EAL:   PCI memory mapped at 0x7f0ee1c20000
> PMD: eth_em_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x100e
> EAL: PCI device 0000:00:09.0 on NUMA socket -1
> EAL:   probe driver: 8086:100e rte_em_pmd
> EAL:   Not managed by a supported kernel driver, skipped
> EAL: PCI device 0000:00:0a.0 on NUMA socket -1
> EAL:   probe driver: 8086:100e rte_em_pmd
> EAL:   Not managed by a supported kernel driver, skipped
> APP: Port ID: 0
> APP: Rx lcore ID: 0, Tx lcore ID: 1
> APP: Port ID: 1
> APP: Rx lcore ID: 2, Tx lcore ID: 3
> EAL: Error - exiting with code: 1
>   Cause: Could not initialise mbuf pool
>
>
>

  parent reply	other threads:[~2016-04-18  6:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15  5:23 Nikhila, Athaluri (Nokia - IN/Bangalore)
2016-04-15 12:45 ` SAKTHIVEL ANAND S
     [not found]   ` <12A43467A5F69640B90142DFE5470A180184F97A@SGSIMBX004.nsn-intra.net>
2016-04-18  6:57     ` SAKTHIVEL ANAND S [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-12-08 18:05 [dpdk-users] Issue on Running KNI application P D, Arun (Nokia - IN/Bangalore)
2015-12-08 19:48 ` Ilir Iljazi
2015-12-08 22:07 ` Pattan, Reshma
2015-12-09  5:48   ` P D, Arun (Nokia - IN/Bangalore)
2015-12-09 11:41     ` Pattan, Reshma
2015-12-11 11:27       ` P D, Arun (Nokia - IN/Bangalore)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOP5GAyJRRHb=o6g=J2DLdGZWCV2ri5i55hxQ0zhQR7+QJik8w@mail.gmail.com' \
    --to=anand.sa88@gmail.com \
    --cc=athaluri.nikhila@nokia.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).