anolis: net/smc: do not send msg in receiving process when tx is not blocked.
anolis inclusion from anolis-devel-5.10 commit 3806a340553e7d27229df4b0a86c77b334783d3a category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I77V5Z CVE: NA Reference: https://gitee.com/anolis/cloud-kernel/commit/3806a340553e7d27229df4b0a86c77b334783d3a -------------------------------- ANBZ: #1742 As user send thread(normal send path) and tx completion tasklet(corked send path) will send msgs, there is no need to send msg in recv completion tasklet when RMB's ci updated and smc_tx_prepared_sends, which may slower the recv performance as recv completion tasklet is shared by multiple connections, but write_blocked condition. In netty benchamrk, show 28% improvement in throughput: Before: throughput cpu sys usr thread-480 connect-48 len-8: 1653807.614 124.755 69.0489 55.7061 After: throughput cpu sys usr thread-480 connect-48 len-8: 2113879.617 132.117 67.9467 64.1707 Signed-off-by:Guangguan Wang <guangguan.wang@linux.alibaba.com> Reviewed-by:
Tony Lu <tonylu@linux.alibaba.com> Acked-by:
Tony Lu <tonylu@linux.alibaba.com> Link: https://gitee.com/anolis/cloud-kernel/pulls/577 Signed-off-by:
Yingyu Zeng <zengyingyu@sangfor.com.cn>
Loading
Please sign in to comment