Re: [systemd-devel] Configure netdev RPS using systemd-networkd

2023-12-04 Thread Cristian Rodríguez
On Mon, Dec 4, 2023 at 5:01 AM Renjaya Raga Zenta 
wrote:

> Hi,
>
> We want to implement our networking using systemd-networkd. We think
> systemd is stable enough right now, so we want to try more "systemd-only"
> solution.
>
> In our environment, we use RPS (Receive Packet Steering) for load balancing
> and scaling. It's a kernel feature implemented a long time ago. You could
> visit the documentation at
> https://www.kernel.org/doc/html/latest/networking/scaling.html.
>
> Currently, we manually do this after network interface is configured:
>
> echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus
>
> where f is bitmap mask , it means to utilize 4 cpus.
>
> Will this use case be implemented in systemd-networkd? Or should we use a
> third party solution such as networkd-broker or networkd-dispatcher?
>
> Thanks.
>

It is kinda sad the kernel never choose other default than disabled..
If you post a patchset it would be nice if it also cover the other scaling
features and to have an "auto" or "yes" mode that sets it up magically for
you.


Re: [systemd-devel] Configure netdev RPS using systemd-networkd

2023-12-04 Thread Lennart Poettering
On Mo, 04.12.23 14:59, Renjaya Raga Zenta (ragaze...@gmail.com) wrote:

> Hi,
>
> We want to implement our networking using systemd-networkd. We think
> systemd is stable enough right now, so we want to try more "systemd-only"
> solution.
>
> In our environment, we use RPS (Receive Packet Steering) for load balancing
> and scaling. It's a kernel feature implemented a long time ago. You could
> visit the documentation at
> https://www.kernel.org/doc/html/latest/networking/scaling.html.
>
> Currently, we manually do this after network interface is configured:
>
> echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus
>
> where f is bitmap mask , it means to utilize 4 cpus.
>
> Will this use case be implemented in systemd-networkd? Or should we use a
> third party solution such as networkd-broker or networkd-dispatcher?

I see no reason why we wouldn't add a high-level option for this to
.link files.

We are happy to review/merge a patch. Please submit via GitHub.

Lennart

--
Lennart Poettering, Berlin