Thread (30 messages) 30 messages, 9 authors, 2020-09-30

Re: [RFC PATCH net-next 0/6] implement kthread based napi poll

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2020-09-25 19:00:39

On Fri, 25 Sep 2020 20:23:37 +0200
Eric Dumazet [off-list ref] wrote:
On Fri, Sep 25, 2020 at 8:16 PM Stephen Hemminger
[off-list ref] wrote:
quoted
On Fri, 25 Sep 2020 10:15:25 -0700
Wei Wang [off-list ref] wrote:
 
quoted
quoted
quoted
In terms of performance, I ran tcp_rr tests with 1000 flows with
various request/response sizes, with RFS/RPS disabled, and compared
performance between softirq vs kthread. Host has 56 hyper threads and
100Gbps nic.  
It would be good to similar tests on othere hardware. Not everyone has
server class hardware. There are people running web servers on untuned
servers over 10 years old; this may cause a regression there.

Not to mention the slower CPU's in embedded systems. How would this
impact OpenWrt or Android?  
Most probably you won't notice a significant difference.

Switching to a kthread is quite cheap, since you have no MMU games to play with.
That makes sense, and in the past when doing stress tests the napi
work was mostly on the kthread already.
quoted
Another potential problem is that if you run real time (SCH_FIFO)
threads they have higher priority than kthread. So for that use
case, moving networking to kthread would break them.  
Sure, playing with FIFO threads is dangerous.

Note that our plan is still to have softirqs by default.

If an admin chose to use kthreads, it is its choice, not ours.

This is also why I very much prefer the kthread approach to the work
queue, since the work queue could not be fine tuned.
Agree with you, best to keep this as opt-in.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help