I am working on a networking application that receives a lot of messages per second over a few thousand actual tcp connections. The app uses an epoll() loop and and has to recv() on a lot of traffic. These std.os.recv() calls are now bottlenecking the app and taking up to 100 microseconds and an median of what seems like 30. How can I debug this? I'm pretty sure this used to be not always the case
#recv() calls taking up to 0.1ms to complete
1 messages · Page 1 of 1 (latest)
to get the basics out of the way, whats the zig version (given std.os.recv) and are you compiling in release?
0.12.0-dev.1800+559e216f3, and ReleaseFast yes
Median is 3.5 microseconds, 75th percentile is 26 microseconds, and 90th percentile is like 70 microseconds
95th percentile is 0.15ms