3 ms·
Some of these things could be fixed upstream and everyone see real perf gains... For example, having dhclient (a very popular dhcp client) leave open an AF_PAC
by londons_explore 6y ago
Some of these things could be fixed upstream and everyone see real perf gains...
For example, having dhclient (a very popular dhcp client) leave open an AF_PACKET socket causing a 3% slowdown in incoming packet processing for all network packets seems... suboptimal!
Surely it can be patched to not cause a systemwide 3% slowdown (or at least to only do it very briefly while actively refreshing the DHCP lease)?
- talawahtech 6y agoI would also love to see that dhclient issue resolved upstream, or at least a cleaner way to work around it. But we should also be mindful that for most workloads the impact is probably way, way less. Some of these things really only show up when you push things to their extremes, so it probably just wasn't on the developer's radar before.
- lttlrck 6y agoI believe systemd-networkd has its own implementation of DHCP and therefore doesn't use dhclient. But I wonder if it's behavior is any better in this respect. This has piqued my interest.
- mercora 6y agosystemd-networkd keeps open that kind of socket for LLDP but apparently not for the DHCP client code. wpa_supplicant also keeps open this type of socket on my local system. and the dhcpd daemons on my routers have some of those too for each interface... i wonder if the slow path here could be avoided by using separate network namespaces in a way these sockets don't even get to see the packets...
- lttlrck 6y agoInteresting. Looks like LLDP can be switched off in the network config. https://systemd.network/systemd.network.html https://systemd.network/systemd.network.html
- zokier 6y agoSpecifically on EC2 I don't think you actually need to keep dhcp client running anyways, afaik EC2 instance ips are static so you can just keep using the one you got on boot.