trickle
trickle copied to clipboard
Performance Issue: CPU usage doesn't go down
ISSUE:
- Program CPU usage is expected to go down, when the network speed is reduced
- It doesn't
BACKGROUND
- Testing WAN Link in Cloud using iPerf3, through a TLS encryption tool written in Rust (Tokio/Async)
- 70% at 3gbps
- 70% when limited to 1gbps
LIKELY CAUSE
- Upon write to a socket, the OS will normally quickly copy the data and return
- Trickle doesn't copy the data and return, instead when it needs to limit the speed, it sleeps