3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/doc/manual/release-notes
Andreas Rammhold 55c09a884a nixos/modules/system/boot/networkd: enable socket activation
Since cd1dedac67 systemd-networkd has it's
netlink socket created via a systemd.socket unit. One might think that
this doesn't make much sense since networkd is just going to create it's
own socket on startup anyway. The difference here is that we have
configuration-time control over things like socket buffer sizes vs
compile-time constants.

For larger setups where networkd has to create a lot of (virtual)
devices the default buffer size of currently 128MB is not enough.

A good example is a machine with >100 virtual interfaces (e.g.,
wireguard tunnels, VLANs, …) that all have to be brought up during
startup. The receive buffer size will spike due to all the generated
message from the new interfaces. Eventually some of the message will be
dropped since there is not enough (permitted) buffer space available.

By having networkd start through / with a netlink socket created by
systemd we can configure the `ReceiveBufferSize` parameter in the socket
options without recompiling networkd.

Since the actual memory requirements depend on hardware, timing, exact
configurations etc. it isn't currently possible to infer a good default
from within the NixOS module system. Administrators are advised to
monitor the logs of systemd-networkd for `rtnl: kernel receive buffer
overrun` spam and increase the memory as required.

Note: Increasing the ReceiveBufferSize doesn't allocate any memory.  It
just increases the upper bound on the kernel side. The memory allocation
depends on the amount of messages that are queued on the kernel side of
the netlink socket.
2020-06-16 00:41:41 +02:00
..
release-notes.xml 20.09 is Nightingale 2020-02-10 14:14:18 -05:00
rl-1310.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rl-1404.xml treewide: use https for nixos.org and hydra.nixos.org 2020-05-03 22:14:21 -07:00
rl-1412.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
rl-1509.xml treewide: use https for nixos.org and hydra.nixos.org 2020-05-03 22:14:21 -07:00
rl-1603.xml treewide: use https for nixos.org and hydra.nixos.org 2020-05-03 22:14:21 -07:00
rl-1609.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
rl-1703.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
rl-1709.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
rl-1803.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
rl-1809.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
rl-1903.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
rl-1909.xml doc/rl-1909: fix language 2019-11-15 00:32:09 +01:00
rl-2003.xml Fix typos (#85693) 2020-04-22 01:02:11 +02:00
rl-2009.xml nixos/modules/system/boot/networkd: enable socket activation 2020-06-16 00:41:41 +02:00