DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] problem in running KNI application
@ 2013-10-28 11:58 cr singh
  2013-10-28 12:03 ` [dpdk-dev] Fwd: " cr singh
  0 siblings, 1 reply; 4+ messages in thread
From: cr singh @ 2013-10-28 11:58 UTC (permalink / raw)
  To: dev

Hi Devs,

I am trying to run KNI application on my system (whose lstopo result is
attached herewith) , basically i am unable to insert correct

 --config="(port,lcore_rx,lcore_tx[,lcore_kthread,...])"
option while running it.
            I am getting this
[root@localhost DPDK-1.5.0]# ./examples/kni/build/kni -c 0x3 -n 2 -- -P -p
0x3 --config="(0,2,4,0),(1,1,3,0)"

EAL: Cannot read numa node link for lcore 0 - using physical package id
instead

EAL: Detected lcore 0 as core 0 on socket 0

EAL: Cannot read numa node link for lcore 1 - using physical package id
instead

EAL: Detected lcore 1 as core 1 on socket 0

EAL: Setting up hugepage memory...

EAL: cannot open /proc/self/numa_maps, consider that all memory is in
socket_id 0

EAL: Ask a virtual area of 0x398458880 bytes

EAL: Virtual area found at 0x9e800000 (size = 0x17c00000)

EAL: Ask a virtual area of 0x20971520 bytes

EAL: Virtual area found at 0x9d000000 (size = 0x1400000)

EAL: Ask a virtual area of 0x8388608 bytes

EAL: Virtual area found at 0x9c400000 (size = 0x800000)

EAL: Requesting 102 pages of size 4MB from socket 0

EAL: TSC frequency is ~2893448 KHz

EAL: Master core 0 is ready (tid=b7741800)

EAL: Core 1 is ready (tid=b6e44b40)

APP: Port ID: 0

APP: Rx lcore ID: 2, Tx lcore ID: 4

APP: Kernel thread lcore ID: 0

APP: Port ID: 1

APP: Rx lcore ID: 1, Tx lcore ID: 3

APP: Kernel thread lcore ID: 0

EAL: Error - exiting with code: 1

Cause: lcore id 2 for port 0 receiving not enabled

can anybody please explain me the details of the --config option in kni
application


Thanks in advance

--

cr singh

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

* [dpdk-dev] Fwd: problem in running KNI application
  2013-10-28 11:58 [dpdk-dev] problem in running KNI application cr singh
@ 2013-10-28 12:03 ` cr singh
  2013-12-25  5:46   ` Jose Gavine Cueto
  0 siblings, 1 reply; 4+ messages in thread
From: cr singh @ 2013-10-28 12:03 UTC (permalink / raw)
  To: dev

Hi Devs,

I am trying to run KNI application on my system (whose lstopo result is
attached herewith) , basically i am unable to insert correct

 --config="(port,lcore_rx,lcore_tx[,lcore_kthread,...])"
option while running it.
            I am getting this
[root@localhost DPDK-1.5.0]# ./examples/kni/build/kni -c 0x3 -n 2 -- -P -p
0x3 --config="(0,2,4,0),(1,1,3,0)"

EAL: Cannot read numa node link for lcore 0 - using physical package id
instead

EAL: Detected lcore 0 as core 0 on socket 0

EAL: Cannot read numa node link for lcore 1 - using physical package id
instead

EAL: Detected lcore 1 as core 1 on socket 0

EAL: Setting up hugepage memory...

EAL: cannot open /proc/self/numa_maps, consider that all memory is in
socket_id 0

EAL: Ask a virtual area of 0x398458880 bytes

EAL: Virtual area found at 0x9e800000 (size = 0x17c00000)

EAL: Ask a virtual area of 0x20971520 bytes

EAL: Virtual area found at 0x9d000000 (size = 0x1400000)

EAL: Ask a virtual area of 0x8388608 bytes

EAL: Virtual area found at 0x9c400000 (size = 0x800000)

EAL: Requesting 102 pages of size 4MB from socket 0

EAL: TSC frequency is ~2893448 KHz

EAL: Master core 0 is ready (tid=b7741800)

EAL: Core 1 is ready (tid=b6e44b40)

APP: Port ID: 0

APP: Rx lcore ID: 2, Tx lcore ID: 4

APP: Kernel thread lcore ID: 0

APP: Port ID: 1

APP: Rx lcore ID: 1, Tx lcore ID: 3

APP: Kernel thread lcore ID: 0

EAL: Error - exiting with code: 1

Cause: lcore id 2 for port 0 receiving not enabled

can anybody please explain me the details of the --config option in kni
application


Thanks in advance

--

cr singh

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

* Re: [dpdk-dev] Fwd: problem in running KNI application
  2013-10-28 12:03 ` [dpdk-dev] Fwd: " cr singh
@ 2013-12-25  5:46   ` Jose Gavine Cueto
  2013-12-25  5:48     ` Jose Gavine Cueto
  0 siblings, 1 reply; 4+ messages in thread
From: Jose Gavine Cueto @ 2013-12-25  5:46 UTC (permalink / raw)
  To: cr singh; +Cc: dev

Looking back in your first email and reading some of the kni sample
application code, it seems to me that the application maps an lcore to one
port.

Based on these snippets,

1.) --- kni/main.c:930

rte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);

2.) -- kni/main.c:379

if (flag == LCORE_RX) {
RTE_LOG(INFO, APP, "Lcore %u is reading from port %d\n",
   ............
} else if (flag == LCORE_TX) {
RTE_LOG(INFO, APP, "Lcore %u is writing to port %d\n",
  .............

#1 runs the lcores one by one (once only) and #2 checks the function
(tx/rx) to perform for the lcore.  So, if this is correct, then assigning
lcores to two ports will not work since the logic simply works on lcores
one by one in one pass only.  IOW, the second param. of --config is useless
since lcore 1 is already assigned when mapping the first.

Again if this is correct, the kni application is the one restricting this
option and not DPDK.  I've tried using 1 lcore to both read and write
to/from 2 ports.

Cheers,
Pepe


On Mon, Oct 28, 2013 at 8:03 PM, cr singh <cr.singh200@gmail.com> wrote:

> Hi Devs,
>
> I am trying to run KNI application on my system (whose lstopo result is
> attached herewith) , basically i am unable to insert correct
>
>  --config="(port,lcore_rx,lcore_tx[,lcore_kthread,...])"
> option while running it.
>             I am getting this
> [root@localhost DPDK-1.5.0]# ./examples/kni/build/kni -c 0x3 -n 2 -- -P -p
> 0x3 --config="(0,2,4,0),(1,1,3,0)"
>
> EAL: Cannot read numa node link for lcore 0 - using physical package id
> instead
>
> EAL: Detected lcore 0 as core 0 on socket 0
>
> EAL: Cannot read numa node link for lcore 1 - using physical package id
> instead
>
> EAL: Detected lcore 1 as core 1 on socket 0
>
> EAL: Setting up hugepage memory...
>
> EAL: cannot open /proc/self/numa_maps, consider that all memory is in
> socket_id 0
>
> EAL: Ask a virtual area of 0x398458880 bytes
>
> EAL: Virtual area found at 0x9e800000 (size = 0x17c00000)
>
> EAL: Ask a virtual area of 0x20971520 bytes
>
> EAL: Virtual area found at 0x9d000000 (size = 0x1400000)
>
> EAL: Ask a virtual area of 0x8388608 bytes
>
> EAL: Virtual area found at 0x9c400000 (size = 0x800000)
>
> EAL: Requesting 102 pages of size 4MB from socket 0
>
> EAL: TSC frequency is ~2893448 KHz
>
> EAL: Master core 0 is ready (tid=b7741800)
>
> EAL: Core 1 is ready (tid=b6e44b40)
>
> APP: Port ID: 0
>
> APP: Rx lcore ID: 2, Tx lcore ID: 4
>
> APP: Kernel thread lcore ID: 0
>
> APP: Port ID: 1
>
> APP: Rx lcore ID: 1, Tx lcore ID: 3
>
> APP: Kernel thread lcore ID: 0
>
> EAL: Error - exiting with code: 1
>
> Cause: lcore id 2 for port 0 receiving not enabled
>
> can anybody please explain me the details of the --config option in kni
> application
>
>
> Thanks in advance
>
> --
>
> cr singh
>



-- 
To stop learning is like to stop loving.

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

* Re: [dpdk-dev] Fwd: problem in running KNI application
  2013-12-25  5:46   ` Jose Gavine Cueto
@ 2013-12-25  5:48     ` Jose Gavine Cueto
  0 siblings, 0 replies; 4+ messages in thread
From: Jose Gavine Cueto @ 2013-12-25  5:48 UTC (permalink / raw)
  To: cr singh; +Cc: dev

Cr,

Sorry, my previous reply is meant for the PM you've sent.  Please ignore
the preceeding reply.

Cheers,
Pepe


On Wed, Dec 25, 2013 at 1:46 PM, Jose Gavine Cueto <pepedocs@gmail.com>wrote:

> Looking back in your first email and reading some of the kni sample
> application code, it seems to me that the application maps an lcore to one
> port.
>
> Based on these snippets,
>
> 1.) --- kni/main.c:930
>
> rte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);
>
> 2.) -- kni/main.c:379
>
> if (flag == LCORE_RX) {
> RTE_LOG(INFO, APP, "Lcore %u is reading from port %d\n",
>    ............
> } else if (flag == LCORE_TX) {
>  RTE_LOG(INFO, APP, "Lcore %u is writing to port %d\n",
>   .............
>
> #1 runs the lcores one by one (once only) and #2 checks the function
> (tx/rx) to perform for the lcore.  So, if this is correct, then assigning
> lcores to two ports will not work since the logic simply works on lcores
> one by one in one pass only.  IOW, the second param. of --config is useless
> since lcore 1 is already assigned when mapping the first.
>
> Again if this is correct, the kni application is the one restricting this
> option and not DPDK.  I've tried using 1 lcore to both read and write
> to/from 2 ports.
>
> Cheers,
> Pepe
>
>
> On Mon, Oct 28, 2013 at 8:03 PM, cr singh <cr.singh200@gmail.com> wrote:
>
>> Hi Devs,
>>
>> I am trying to run KNI application on my system (whose lstopo result is
>> attached herewith) , basically i am unable to insert correct
>>
>>  --config="(port,lcore_rx,lcore_tx[,lcore_kthread,...])"
>> option while running it.
>>             I am getting this
>> [root@localhost DPDK-1.5.0]# ./examples/kni/build/kni -c 0x3 -n 2 -- -P
>> -p
>> 0x3 --config="(0,2,4,0),(1,1,3,0)"
>>
>> EAL: Cannot read numa node link for lcore 0 - using physical package id
>> instead
>>
>> EAL: Detected lcore 0 as core 0 on socket 0
>>
>> EAL: Cannot read numa node link for lcore 1 - using physical package id
>> instead
>>
>> EAL: Detected lcore 1 as core 1 on socket 0
>>
>> EAL: Setting up hugepage memory...
>>
>> EAL: cannot open /proc/self/numa_maps, consider that all memory is in
>> socket_id 0
>>
>> EAL: Ask a virtual area of 0x398458880 bytes
>>
>> EAL: Virtual area found at 0x9e800000 (size = 0x17c00000)
>>
>> EAL: Ask a virtual area of 0x20971520 bytes
>>
>> EAL: Virtual area found at 0x9d000000 (size = 0x1400000)
>>
>> EAL: Ask a virtual area of 0x8388608 bytes
>>
>> EAL: Virtual area found at 0x9c400000 (size = 0x800000)
>>
>> EAL: Requesting 102 pages of size 4MB from socket 0
>>
>> EAL: TSC frequency is ~2893448 KHz
>>
>> EAL: Master core 0 is ready (tid=b7741800)
>>
>> EAL: Core 1 is ready (tid=b6e44b40)
>>
>> APP: Port ID: 0
>>
>> APP: Rx lcore ID: 2, Tx lcore ID: 4
>>
>> APP: Kernel thread lcore ID: 0
>>
>> APP: Port ID: 1
>>
>> APP: Rx lcore ID: 1, Tx lcore ID: 3
>>
>> APP: Kernel thread lcore ID: 0
>>
>> EAL: Error - exiting with code: 1
>>
>> Cause: lcore id 2 for port 0 receiving not enabled
>>
>> can anybody please explain me the details of the --config option in kni
>> application
>>
>>
>> Thanks in advance
>>
>> --
>>
>> cr singh
>>
>
>
>
> --
> To stop learning is like to stop loving.
>



-- 
To stop learning is like to stop loving.

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

end of thread, other threads:[~2013-12-25  5:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-28 11:58 [dpdk-dev] problem in running KNI application cr singh
2013-10-28 12:03 ` [dpdk-dev] Fwd: " cr singh
2013-12-25  5:46   ` Jose Gavine Cueto
2013-12-25  5:48     ` Jose Gavine Cueto

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).