summaryrefslogtreecommitdiff
path: root/net/smc/smc.h
diff options
context:
space:
mode:
authorD. Wythe <alibuda@linux.alibaba.com>2022-02-10 12:11:34 +0300
committerDavid S. Miller <davem@davemloft.net>2022-02-11 14:14:57 +0300
commit3079e342d2655c127dc700bfc1ea67382dff455c (patch)
treebdfa206a6866d4b57dbe2aeed6d6ffe411a1b0b1 /net/smc/smc.h
parent429c83c78ab213d9656721cf46ae05366098485c (diff)
downloadlinux-3079e342d2655c127dc700bfc1ea67382dff455c.tar.xz
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