netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SCTP performance?
@ 2013-08-09 23:11 Ben Greear
  2013-08-09 23:21 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Greear @ 2013-08-09 23:11 UTC (permalink / raw)
  To: netdev

I just added some support for SCTP to my traffic-generator tool.

I tried to send 1Gbps of traffic, bi-directional, across two
10G interfaces.  TCP does this without any trouble at all,
but SCTP was asymetric and never got above around 700Mbps,
and was usually stuck at < 500Mbps.

perf top didn't show any obvious CPU bottlenecks.

Has anyone done any recent performance testing with SCTP?

I'd be interested to know the results if so...

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

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

* Re: SCTP performance?
  2013-08-09 23:11 SCTP performance? Ben Greear
@ 2013-08-09 23:21 ` Eric Dumazet
  2013-08-10  0:04   ` Ben Greear
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Dumazet @ 2013-08-09 23:21 UTC (permalink / raw)
  To: Ben Greear; +Cc: netdev

On Fri, 2013-08-09 at 16:11 -0700, Ben Greear wrote:
> I just added some support for SCTP to my traffic-generator tool.
> 
> I tried to send 1Gbps of traffic, bi-directional, across two
> 10G interfaces.  TCP does this without any trouble at all,
> but SCTP was asymetric and never got above around 700Mbps,
> and was usually stuck at < 500Mbps.
> 
> perf top didn't show any obvious CPU bottlenecks.
> 
> Has anyone done any recent performance testing with SCTP?
> 
> I'd be interested to know the results if so...

You mean there is no SCTP offload on the NIC and/or GRO, yes that's too
bad.

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

* Re: SCTP performance?
  2013-08-09 23:21 ` Eric Dumazet
@ 2013-08-10  0:04   ` Ben Greear
  2013-08-10  0:54     ` David Miller
  2013-08-12 20:10     ` Vlad Yasevich
  0 siblings, 2 replies; 5+ messages in thread
From: Ben Greear @ 2013-08-10  0:04 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: netdev

On 08/09/2013 04:21 PM, Eric Dumazet wrote:
> On Fri, 2013-08-09 at 16:11 -0700, Ben Greear wrote:
>> I just added some support for SCTP to my traffic-generator tool.
>>
>> I tried to send 1Gbps of traffic, bi-directional, across two
>> 10G interfaces.  TCP does this without any trouble at all,
>> but SCTP was asymetric and never got above around 700Mbps,
>> and was usually stuck at < 500Mbps.
>>
>> perf top didn't show any obvious CPU bottlenecks.
>>
>> Has anyone done any recent performance testing with SCTP?
>>
>> I'd be interested to know the results if so...
>
> You mean there is no SCTP offload on the NIC and/or GRO, yes that's too
> bad.
>

I'm sure that is part of the problem.

I got much better results when I explicitly set the
tx/rx socket buffer sizes to 2MB, so maybe it just sucks
at auto-tuning it's socket buffer sizes.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

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

* Re: SCTP performance?
  2013-08-10  0:04   ` Ben Greear
@ 2013-08-10  0:54     ` David Miller
  2013-08-12 20:10     ` Vlad Yasevich
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2013-08-10  0:54 UTC (permalink / raw)
  To: greearb; +Cc: eric.dumazet, netdev

From: Ben Greear <greearb@candelatech.com>
Date: Fri, 09 Aug 2013 17:04:59 -0700

> I got much better results when I explicitly set the
> tx/rx socket buffer sizes to 2MB, so maybe it just sucks
> at auto-tuning it's socket buffer sizes.

TCP is the only protocol in our stack which does socket buffer
size autotuning.

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

* Re: SCTP performance?
  2013-08-10  0:04   ` Ben Greear
  2013-08-10  0:54     ` David Miller
@ 2013-08-12 20:10     ` Vlad Yasevich
  1 sibling, 0 replies; 5+ messages in thread
From: Vlad Yasevich @ 2013-08-12 20:10 UTC (permalink / raw)
  To: Ben Greear; +Cc: Eric Dumazet, netdev

On 08/09/2013 08:04 PM, Ben Greear wrote:
> On 08/09/2013 04:21 PM, Eric Dumazet wrote:
>> On Fri, 2013-08-09 at 16:11 -0700, Ben Greear wrote:
>>> I just added some support for SCTP to my traffic-generator tool.
>>>
>>> I tried to send 1Gbps of traffic, bi-directional, across two
>>> 10G interfaces.  TCP does this without any trouble at all,
>>> but SCTP was asymetric and never got above around 700Mbps,
>>> and was usually stuck at < 500Mbps.
>>>
>>> perf top didn't show any obvious CPU bottlenecks.
>>>
>>> Has anyone done any recent performance testing with SCTP?
>>>
>>> I'd be interested to know the results if so...
>>
>> You mean there is no SCTP offload on the NIC and/or GRO, yes that's too
>> bad.
>>
>
> I'm sure that is part of the problem.
>
> I got much better results when I explicitly set the
> tx/rx socket buffer sizes to 2MB, so maybe it just sucks
> at auto-tuning it's socket buffer sizes.
>
> Thanks,
> Ben
>

There is no buffer autotunning.  There is also no GRO since SCTP doesn't
lend itself easily to GRO. :(

There has been some research efforts at autotunning, but nothing 
proposed.  I'll see if I can find the code and make it work better.

-vlad

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

end of thread, other threads:[~2013-08-12 20:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09 23:11 SCTP performance? Ben Greear
2013-08-09 23:21 ` Eric Dumazet
2013-08-10  0:04   ` Ben Greear
2013-08-10  0:54     ` David Miller
2013-08-12 20:10     ` Vlad Yasevich

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