Skip to content

Speedup remote bitbang server by setting TCP_NODELAY #2944

@jiegec

Description

@jiegec

Type of issue: other enhancement

Impact: no functional change

Development Phase: proposal

Other information

If the current behavior is a bug, please provide the steps to reproduce the problem:

What is the current behavior?

The remote bitbang server runs slowly. By setting TCP_NODELAY, debugging can speed up by 2x.

The problem is that the server sends char by char to OpenOCD, which will be cached by Nagle algorithm instead of sending them immediately. This can incur large latency between OpenOCD and the server. I have observed a 2x speedup in a similar remote bitbang implementation for my CPU design.

What is the expected behavior?

Please tell us about your environment:

What is the use case for changing the behavior?

Speedup debugging in simulation environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions