chenBright commented on PR #3145:
URL: https://github.com/apache/brpc/pull/3145#issuecomment-3653934541

   > So how should this window be set up reasonably? It seems the number of imm 
items generated is not quite certain?
   
   The window size is related to SendAck.
   
   When _remote_window_capacity is divisible by 2, a maximum of 2 imm are 
required.
   
   When _remote_window_capacity is not divisible by 2, a maximum of 3 imm are 
required.
   
   Therefore, RESERVED_WR_NUM is a reasonable value.
   
   
https://github.com/apache/brpc/blob/7cd0c25a720262267531dcbb1135158b25de09ca/src/brpc/rdma/rdma_endpoint.cpp#L518-L519
   
   
https://github.com/apache/brpc/blob/7cd0c25a720262267531dcbb1135158b25de09ca/src/brpc/rdma/rdma_endpoint.cpp#L911-L916


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to