Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SITL] disable nagle for UART TCP #9079

Merged
merged 1 commit into from
May 28, 2023
Merged

[SITL] disable nagle for UART TCP #9079

merged 1 commit into from
May 28, 2023

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.

1 participant