diff options
author | D. Wythe <alibuda@linux.alibaba.com> | 2022-02-10 17:11:34 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-11 11:14:57 +0000 |
commit | 3079e342d2655c127dc700bfc1ea67382dff455c (patch) | |
tree | bdfa206a6866d4b57dbe2aeed6d6ffe411a1b0b1 /net/smc/smc.h | |
parent | 429c83c78ab213d9656721cf46ae05366098485c (diff) |
net/smc: Make smc_tcp_listen_work() independent
In multithread and 10K connections benchmark, the backend TCP connection
established very slowly, and lots of TCP connections stay in SYN_SENT
state.
Client: smc_run wrk -c 10000 -t 4 http://server
the netstate of server host shows like:
145042 times the listen queue of a socket overflowed
145042 SYNs to LISTEN sockets dropped
One reason of this issue is that, since the smc_tcp_listen_work() shared
the same workqueue (smc_hs_wq) with smc_listen_work(), while the
smc_listen_work() do blocking wait for smc connection established. Once
the workqueue became congested, it's will block the accept() from TCP
listen.
This patch creates a independent workqueue(smc_tcp_ls_wq) for
smc_tcp_listen_work(), separate it from smc_listen_work(), which is
quite acceptable considering that smc_tcp_listen_work() runs very fast.
Signed-off-by: D. Wythe <alibuda@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc.h')
0 files changed, 0 insertions, 0 deletions