You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My client polls for RPC completion after each RPC and before sending the next one. Something wired happens that I have a long-running RPC that runs for about 60us (I measured this in the server-side handler). But the client-side e2e latency I measured is over 200us, which far exceeds the RPC execution time so I can't attribute that to network delay. I've tried to put the RPC to the background by setting req_func_type to kBackGround but the result is the same. Other short-running RPCs work fine, an RPC with a few us execution time results in ~10us e2e latency on the client side.
This issue shares a bit of flavor with #116 and #104. The difference is there is no sleeping on either client or server side. Is there any way to debug this? At least to figure out whether the excessive latency is from server-side or client-side?
The text was updated successfully, but these errors were encountered:
I experimented with busy-waiting for different time in the rpc handler, the result is interesting:
wait time (us)
client-side latency (us)
10
24.337
20
34.294
30
44.375
40
54.743
50
228.659
When the wait time is below 50us the client-side latency is as expected. The latency shoots up after waiting time reaches 50us so it seems pretty obvious that some mechanism kicks in. Any hint on this?
Hi Anuj,
My client polls for RPC completion after each RPC and before sending the next one. Something wired happens that I have a long-running RPC that runs for about 60us (I measured this in the server-side handler). But the client-side e2e latency I measured is over 200us, which far exceeds the RPC execution time so I can't attribute that to network delay. I've tried to put the RPC to the background by setting
req_func_type
tokBackGround
but the result is the same. Other short-running RPCs work fine, an RPC with a few us execution time results in ~10us e2e latency on the client side.This issue shares a bit of flavor with #116 and #104. The difference is there is no sleeping on either client or server side. Is there any way to debug this? At least to figure out whether the excessive latency is from server-side or client-side?
The text was updated successfully, but these errors were encountered: