Skip to content

Add batch_size option for sctp sendmmsg/recvmmsg usage#75

Open
pschlangen wants to merge 1 commit into
uperf:masterfrom
pschlangen:mmsg
Open

Add batch_size option for sctp sendmmsg/recvmmsg usage#75
pschlangen wants to merge 1 commit into
uperf:masterfrom
pschlangen:mmsg

Conversation

@pschlangen

Copy link
Copy Markdown

Add a batch_size option to SCTP read/write operations to enable the use of recvmmsg() and sendmmsg() (see #69).

When batch_size is greater than 1, recvmmsg()/sendmmsg() are used instead of recvmsg()/sendmsg(). For small batch sizes (<= 16), stack allocation is used to avoid the performance overhead of heap allocations.

Tested on:

  • Linux 6.12 (Debian Trixie 13)
  • FreeBSD 16.0-CURRENT
  • FreeBSD 15.0-RELEASE
  • Solaris 11.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants