lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Sun, 19 Feb 2023 22:00:26 +0100
From:   Eric Dumazet <edumazet@...gle.com>
To:     Felix Fietkau <nbd@....name>
Cc:     netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>, linux-kernel@...r.kernel.org
Subject: Re: [RFC v3] net/core: add optional threading for backlog processing

On Sun, Feb 19, 2023 at 4:08 PM Felix Fietkau <nbd@....name> wrote:
>
> On 19.02.23 14:10, Felix Fietkau wrote:
> > When dealing with few flows or an imbalance on CPU utilization, static RPS
> > CPU assignment can be too inflexible. Add support for enabling threaded NAPI
> > for backlog processing in order to allow the scheduler to better balance
> > processing. This helps better spread the load across idle CPUs.
> >
> > Signed-off-by: Felix Fietkau <nbd@....name>


> Sorry, the patch was missing these lines:

Also make sure the following loop won't leak kthreads.

while :
do
 echo 1 >/proc/sys/net/core/backlog_threaded
 echo 0 >/proc/sys/net/core/backlog_threaded
done

Some documentation would also be welcomed (
Documentation/admin-guide/sysctl/net.rst &
Documentation/networking/scaling.rst )

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ