Commit 9c52cafd authored by Litao Jiao's avatar Litao Jiao
Browse files

anolis: net/smc: Introduce multiple tcp listen works to enhance tcp_listen_work

anolis inclusion
from anolis-v5.10-134
commit c9aebf36d4dcc5005f8f58f5202c58f668a33380
category: performance
bugzilla: https://gitee.com/openeuler/kernel/issues/I782PA
CVE: NA

Reference: https://gitee.com/anolis/hpn-cloud-kernel/commit/c9aebf36d4dcc5005f8f58f5202c58f668a33380



--------------------------------

ANBZ: #1742

Introduce multiple tcp listen works to enhance tcp_listen_work, as
each tcp listen work can be enqueued independently to workqueue and
can be executed concurrently. Since kernel_accept cannot accept
concurrently, too many tcp listen works will only lead to excessive
kernel_accept competition and waste CPU, the number of the tcp listen
works is now set to 2, which has been tested to be the best performance.

Signed-off-by: default avatarGuangguan Wang <guangguan.wang@linux.alibaba.com>
Acked-by: default avatarTony Lu <tonylu@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/577
Link: https://gitee.com/anolis/cloud-kernel/pulls/906


Signed-off-by: default avatarLitao Jiao <jiaolitao@sangfor.com.cn>
parent 5ea54f58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment