Yangfisher1 commented on issue #3132:
URL: https://github.com/apache/brpc/issues/3132#issuecomment-3465995700
我不太Get到你的意思, send cqe前有多少个unsignaled的请求不是固定的吗, 是` _local_window_capacity /
4`这个数值. 为什么不能确定呢.
同时brpc本身保证了一个Socket只会有一个bthread在写(即调用`CutFromIOBufList`,
其他的bthread只是把新的写请求加到队列当中), 那你这里提到的ibv_post_send的顺序跟记录unsignaled的顺序又是什么意思呢,
他们不是本来就是一致的吗
``` cpp
++_sq_unsignaled;
if (_sq_unsignaled >= _local_window_capacity / 4) {
// Refer to:
//
http::www.rdmamojo.com/2014/06/30/working-unsignaled-completions/
wr.send_flags |= IBV_SEND_SIGNALED;
_sq_unsignaled = 0;
}
ibv_send_wr* bad = NULL;
int err = ibv_post_send(_resource->qp, &wr, &bad);
```
--
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]