Skip to content

Conversation

@stronnag
Copy link
Collaborator

The SITL UART workload (small packets, essential half-duplex for MSP) performs badly on systems where Nagle is enabled by default.

This PR sets TCP_NODELAY on TCP (UART) sockets, resulting in an order of magnitude increase in MSP throughput. This is likely to be similar for other workloads, as they all use small packet sizes.

MSP test:

  • Prior to this PR, typically c. 25 messages / second (c.f. 70 messages/second on real hardware/VCP).
  • After this PR, c. 1990 messages / second.

@stronnag stronnag merged commit 8cd3383 into master May 28, 2023
mmosca pushed a commit that referenced this pull request May 29, 2023
sensei-hacker pushed a commit to sensei-hacker/inav_unofficial_targets that referenced this pull request Oct 4, 2023
@DzikuVx DzikuVx deleted the jh_sitl_disable_nagle branch December 8, 2023 09:24
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