What is the exactly meaning of "Contentionless latency"?

25 views
Skip to first unread message

Robert Qiu

unread,
Aug 12, 2019, 2:48:28 AM8/12/19
to grpc.io
Hi There,

I am new to gRPC and browsing the website of gRPC test.   The link:    https://grpc.io/docs/guides/benchmarking/

The forgoing sentences confuse me on the website:
  • Contentionless latency - the median and tail response latencies seen with only 1 client sending a single message at a time using StreamingCall


What is the exact meaning of "Contentionless latency"?   Does it mean that very few data traffic on the network?  Something like:  only several messages or packets are sent over the network, the bandwidth of the network is NOT an issue,  the network is NOT a bottleneck. 

If my foregoing understand is right,  every RPC call is around the same latency, right?   Why do we need median latency and tail response latency? These two parameters(median latency and tail response latency) should be the same value if the network is NOT bottleneck?

Many thanks in advance!


Best,
Robert Q

Kun Zhang

unread,
Aug 14, 2019, 2:51:10 PM8/14/19
to grpc.io
My understanding: contentionless means the RPC being measured uses this connection exclusively, without competition from other RPCs. I think the reference doc also implies that the message is small, so that bandwidth is not an issue. The latency, however, can be affected by many factors -- network speed may not be stable, thread scheduling may fluctuate, so we can assume all RPCs have the same latency. In fact, when we measure performance, no matter it's local or distributed, we always get a distribution. It's a good thing if the deviation is small, but you cannot assume that beforehand.
Reply all
Reply to author
Forward
0 new messages