All of lore.kernel.org
 help / color / mirror / Atom feed
* Running kni with low amount of cores
@ 2014-07-09 20:12 Olson, Matt Lyle
       [not found] ` <0262E9805BD2664BBA70725A838003031C86BD-rNv2WLgZWGUSZAcGdq5asR6epYMZPwEe5NbjCUgZEJk@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Olson, Matt Lyle @ 2014-07-09 20:12 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

Hello,

I have two NIC devices and a quad core system that I'm trying to run kni on. I would like to leave two cores for general use and two cores for kni. When run kni on just one of the ports, everything works fine and I can use that vEth normally. The exact command I run is this: ./kni -c 0x0c -n 2 -- -P -p 0x1 -config="(0,2,3)" But when I try to run kni on both ports, I can't find a configuration to make it work. Here's all the configs that I have tried, but none of them seem to work properly, the same way as just a single port: "(0,2,3), (1,2,3)"     "(0,2,3), (1,3,2)"    "(0,2,2), (1,3,3)". I'm wondering if it is supposed to work this way,  where each port needs its own Tx and Rx core, or if there is a way to get around it. If it is supposed to work this way, would it be worth my time to edit the code to allow me to have all Rx information dealt with on one core and all Tx on another?

Thanks,
Matt Olson

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

* Re: Running kni with low amount of cores
       [not found] ` <0262E9805BD2664BBA70725A838003031C86BD-rNv2WLgZWGUSZAcGdq5asR6epYMZPwEe5NbjCUgZEJk@public.gmane.org>
@ 2014-07-11  2:53   ` Zhang, Helin
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Helin @ 2014-07-11  2:53 UTC (permalink / raw)
  To: Olson, Matt Lyle, dev-VfR2kkLFssw



> -----Original Message-----
> From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Olson, Matt Lyle
> Sent: Thursday, July 10, 2014 4:12 AM
> To: dev-VfR2kkLFssw@public.gmane.org
> Subject: [dpdk-dev] Running kni with low amount of cores
> 
> Hello,
> 
> I have two NIC devices and a quad core system that I'm trying to run kni on. I
> would like to leave two cores for general use and two cores for kni. When run
> kni on just one of the ports, everything works fine and I can use that vEth
> normally. The exact command I run is this: ./kni -c 0x0c -n 2 -- -P -p 0x1
> -config="(0,2,3)" But when I try to run kni on both ports, I can't find a
> configuration to make it work. Here's all the configs that I have tried, but none
> of them seem to work properly, the same way as just a single port: "(0,2,3),
> (1,2,3)"     "(0,2,3), (1,3,2)"    "(0,2,2), (1,3,3)". I'm wondering if it is
> supposed to work this way,  where each port needs its own Tx and Rx core, or
> if there is a way to get around it. If it is supposed to work this way, would it be
> worth my time to edit the code to allow me to have all Rx information dealt
> with on one core and all Tx on another?
> 
> Thanks,
> Matt Olson

Hi Matt

For the KNI example application, each lcore is used for RX or TX of a port only, you can check the first part of code in main_loop() in examples/kni/main.c.
It assumes that the number of lcores is not the bottle neck.

So for the scenario of yours, that might be supported. But it would not be too difficult to support your case by modifying the example application by yourself.

Regards,
Helin

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

end of thread, other threads:[~2014-07-11  2:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09 20:12 Running kni with low amount of cores Olson, Matt Lyle
     [not found] ` <0262E9805BD2664BBA70725A838003031C86BD-rNv2WLgZWGUSZAcGdq5asR6epYMZPwEe5NbjCUgZEJk@public.gmane.org>
2014-07-11  2:53   ` Zhang, Helin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.