From: Harald Welte <laforge@gnumonks.org>
To: linux-sctp@vger.kernel.org
Subject: Re: Expected SCTP DATA chunk per second performance
Date: Mon, 02 Mar 2020 13:47:43 +0000 [thread overview]
Message-ID: <20200302134743.GP43827@nataraja> (raw)
In-Reply-To: <20200302093532.GE43827@nataraja>
Hi Michael,
On Mon, Mar 02, 2020 at 02:28:26PM +0100, Michael Tuexen wrote:
> I consider it a bug.
Agreed.
> Nagle normally is implemented by not sending small packets.
> From the numbers you provided, I guess the SCTP packets are about 1500 bytes. But
> I guess Linux has an MTU on the loopback interface which is much larger.
Actually, it depends on the type of sender code I use. With Eclipse TITAN IPL4asp
(my ultimate target for writing the tests), the packets indeed are pnly 1500 bytes
in size.
When using the small C program attached, I'm seeing ~34 kByte sized IP
packets on loopback, but only at 500-510 DATA chunks per second overall
rate.
When disabling NAGLE ('client -d' of the attached program), I'm getting
much higher throughput, but there is no single IP packet with more than
a single DATA chunk inside at all anymore. The latter is expected on
the one hand side (every syscall goes all the way to build a packet and
send it), but given at the high sender rate I would have expected that
every so often multiple DATA chunks arrive from userspace before a
packet has been sent (socket send buffer)? In any case, no complaints
in this case.
Also interesting: With the application code (TITAN) in place, I am
seeing higher DATA chunk throughput over actual Ethernet than I'm seeing
over loopback.
I'd appreciate any feedback from the lksctp hackers here if I should
open a bugzilla issue about the poor performance with Nagle.
Regards,
Harald
--
- Harald Welte <laforge@gnumonks.org> http://laforge.gnumonks.org/
======================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
next prev parent reply other threads:[~2020-03-02 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-02 9:35 Expected SCTP DATA chunk per second performance Harald Welte
2020-03-02 11:41 ` Michael Tuexen
2020-03-02 12:37 ` Harald Welte
2020-03-02 13:28 ` Michael Tuexen
2020-03-02 13:47 ` Harald Welte [this message]
2020-03-02 15:26 ` David Laight
2021-11-07 21:09 ` SCTP <= 500 pps unless SCTP_NODELAY set (was: Expected SCTP DATA chunk per second performance) Harald Welte
2026-05-13 22:52 ` Jonas Falkevik
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=20200302134743.GP43827@nataraja \
--to=laforge@gnumonks.org \
--cc=linux-sctp@vger.kernel.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 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.