diff options
author | D. Wythe <alibuda@linux.alibaba.com> | 2022-02-10 10:11:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-11 12:14:57 +0100 |
commit | 3079e342d2655c127dc700bfc1ea67382dff455c (patch) | |
tree | bdfa206a6866d4b57dbe2aeed6d6ffe411a1b0b1 /security | |
parent | dt-bindings: net: dsa: realtek: convert to YAML schema, add MDIO (diff) | |
download | linux-3079e342d2655c127dc700bfc1ea67382dff455c.tar.xz linux-3079e342d2655c127dc700bfc1ea67382dff455c.zip |
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 'security')
0 files changed, 0 insertions, 0 deletions