Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Misc

82599 chipset and DNA TNAPI

 

 

NTop misc RSS feed   Index | Next | Previous | View Threaded


soumyendra.saha at veheretech

Nov 24, 2011, 7:11 AM

Post #1 of 5 (644 views)
Permalink
82599 chipset and DNA TNAPI

I have a couple of non-Silicom Intel 82599 chipset cards and trying
to send using DNA over one and receive using TNAPIv2. I am using
PF_RING_5.1.0 from svn . My Rx stats are all over the place with
pfcount_multichannel .Some 72 threads are spawned for a 32 CPU Xeon
x86_64 server and most threads have no traffic. One or two channels
have close to 5 Gbps traffic ! Sometimes stats for some channels show
numbers even when not transmitting.
I am wondering is it the hardware, the svn code which may be work in
progress or the way I load the drivers. I have simple settings for
the TNAPIv2 driver

insmod ./ixgbe.ko MQ=1 , RSS=8,8 FlowDir=0,0

Thanks !
Soumyendra
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


deri at ntop

Nov 24, 2011, 8:22 AM

Post #2 of 5 (624 views)
Permalink
Re: 82599 chipset and DNA TNAPI [In reply to]

Hi
The RSS hardware balancer splits the traffic across queues. I believe you have traffic not easily balanceable. Note that with 82599 you can steer selected traffic to selected queues, by specifying filtering rules. This to help balancing. Kernel 3.x series are kindly suggested if ou want to use these features, that are otherwise available also on late 2.6 kernel series,

Luca

Sent from my iPad

On 24/nov/2011, at 16:11, "Soumyendra Narayan Saha (Vehere)" <soumyendra.saha [at] veheretech> wrote:

> I have a couple of non-Silicom Intel 82599 chipset cards and trying
> to send using DNA over one and receive using TNAPIv2. I am using
> PF_RING_5.1.0 from svn . My Rx stats are all over the place with
> pfcount_multichannel .Some 72 threads are spawned for a 32 CPU Xeon
> x86_64 server and most threads have no traffic. One or two channels
> have close to 5 Gbps traffic ! Sometimes stats for some channels show
> numbers even when not transmitting.
> I am wondering is it the hardware, the svn code which may be work in
> progress or the way I load the drivers. I have simple settings for
> the TNAPIv2 driver
>
> insmod ./ixgbe.ko MQ=1 , RSS=8,8 FlowDir=0,0
>
> Thanks !
> Soumyendra
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


soumyendra at gmail

Nov 25, 2011, 7:28 PM

Post #3 of 5 (615 views)
Permalink
82599 chipset and DNA TNAPI [In reply to]

Many thanks for your earlier reply.
Though the load is not shared evenly I got a setting combining both FlowDir
and RSS that does a decent job.
I am dealing with packets at national gateway. Hence there are many
encapsulating headers like pseudowire, PPP,VLAN, MPLS etc...so the hardware
obviously is at a loss to parse all that and get to IP or TCP headers.
Hence the fallback to queue 0 ( from both FlowDir and RSS ) which is
getting a high amount of traffic in comparison.
Hopefully I can distribute packets to cores/queues in a round robin fashion
with a hack in ixgbe. I don't need to track flows ( that will be done in
userspace ), just packets are fine spread across CPUs.

Who is supposed to set the timestamp on packets ? I can see all packets
with time offset 0.
Is it ixgbe / pf_ring / userland . gettimeofday() is very costly from
userspace. This is slowing down pfcount processing in my case I think( but
I need to verify that )

Also I found PF_RING pfring_open_multichannel() to create too many threads
(72 )for any number of RSS settings on a 32-cpu machine running kernel
2.6.38 with MQ=1,1 RSS=8,8 FlowDir=1,1

Regards,
Soumyendra


deri at ntop

Nov 25, 2011, 11:21 PM

Post #4 of 5 (607 views)
Permalink
Re: 82599 chipset and DNA TNAPI [In reply to]

On Nov 26, 2011, at 4:28 AM, Soumyendra Saha wrote:

> Many thanks for your earlier reply.
> Though the load is not shared evenly I got a setting combining both FlowDir and RSS that does a decent job.
> I am dealing with packets at national gateway. Hence there are many encapsulating headers like pseudowire, PPP,VLAN, MPLS etc...so the hardware obviously is at a loss to parse all that and get to IP or TCP headers. Hence the fallback to queue 0 ( from both FlowDir and RSS ) which is getting a high amount of traffic in comparison.
> Hopefully I can distribute packets to cores/queues in a round robin fashion with a hack in ixgbe. I don't need to track flows ( that will be done in userspace ), just packets are fine spread across CPUs.
>
I don;t see how you can do that. What you can do instead is to distribute (if possible) packets across queues based on the port.

> Who is supposed to set the timestamp on packets ? I can see all packets with time offset 0.
the DNA driver does set the timestamp if you pass a buffer, if not (you pass a pointer) we return 0 as timestamp. This is because computing it is costly and not everyone needs it (e.g. if you route/bridge packets you don't care).
> Is it ixgbe / pf_ring / userland . gettimeofday() is very costly from userspace. This is slowing down pfcount processing in my case I think( but I need to verify that )

It is costly everywhere.

>
> Also I found PF_RING pfring_open_multichannel() to create too many threads (72 )for any number of RSS settings on a 32-cpu machine running kernel 2.6.38 with MQ=1,1 RSS=8,8 FlowDir=1,1
>

I hope you can provide us a patch as I don't have a computer with so many CPU cores :-)

Luca


> Regards,
> Soumyendra
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

---
Keep looking, don't settle - Steve Jobs

_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


soumyendra at gmail

Nov 26, 2011, 2:40 AM

Post #5 of 5 (617 views)
Permalink
Re: 82599 chipset and DNA TNAPI [In reply to]

I shall send the patch once I find the correct fix for it .

Interestingly the jump from around 16 threads to 72 ( of the 32 cores, 16
was the max I could use for Rx and 16 was for Tx )
happened when I moved from Ubuntu Lucid to Oneiric so I think it's got to
do with Linux side changes

Rgs
Soumyendra

Note: The 32 cores are overkill from above presumably because of a lack of
confidence on myself and to some extent the open source community's
capability to do packet capture and multi-key search at 10 Gbps . We "can"
definitely do it with this processing power :)

On 26 November 2011 12:51, Luca Deri <deri [at] ntop> wrote:

>
> On Nov 26, 2011, at 4:28 AM, Soumyendra Saha wrote:
>
> > Many thanks for your earlier reply.
> > Though the load is not shared evenly I got a setting combining both
> FlowDir and RSS that does a decent job.
> > I am dealing with packets at national gateway. Hence there are many
> encapsulating headers like pseudowire, PPP,VLAN, MPLS etc...so the hardware
> obviously is at a loss to parse all that and get to IP or TCP headers.
> Hence the fallback to queue 0 ( from both FlowDir and RSS ) which is
> getting a high amount of traffic in comparison.
> > Hopefully I can distribute packets to cores/queues in a round robin
> fashion with a hack in ixgbe. I don't need to track flows ( that will be
> done in userspace ), just packets are fine spread across CPUs.
> >
> I don;t see how you can do that. What you can do instead is to distribute
> (if possible) packets across queues based on the port.
>
> > Who is supposed to set the timestamp on packets ? I can see all packets
> with time offset 0.
> the DNA driver does set the timestamp if you pass a buffer, if not (you
> pass a pointer) we return 0 as timestamp. This is because computing it is
> costly and not everyone needs it (e.g. if you route/bridge packets you
> don't care).
> > Is it ixgbe / pf_ring / userland . gettimeofday() is very costly from
> userspace. This is slowing down pfcount processing in my case I think( but
> I need to verify that )
>
> It is costly everywhere.
>
> >
> > Also I found PF_RING pfring_open_multichannel() to create too many
> threads (72 )for any number of RSS settings on a 32-cpu machine running
> kernel 2.6.38 with MQ=1,1 RSS=8,8 FlowDir=1,1
> >
>
> I hope you can provide us a patch as I don't have a computer with so many
> CPU cores :-)
>
> Luca
>
>
> > Regards,
> > Soumyendra
> >
> > _______________________________________________
> > Ntop-misc mailing list
> > Ntop-misc [at] listgateway
> > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
> ---
> Keep looking, don't settle - Steve Jobs
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>

NTop misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.