diff options
author | 2022-02-10 17:11:34 +0800 | |
---|---|---|
committer | 2022-02-11 11:14:57 +0000 | |
commit | 3079e342d2655c127dc700bfc1ea67382dff455c (patch) | |
tree | bdfa206a6866d4b57dbe2aeed6d6ffe411a1b0b1 /drivers/net | |
parent | dt-bindings: net: dsa: realtek: convert to YAML schema, add MDIO (diff) | |
download | linux-dev-3079e342d2655c127dc700bfc1ea67382dff455c.tar.xz linux-dev-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 'drivers/net')
0 files changed, 0 insertions, 0 deletions