Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1014615: networkd-dispatcher: don't start networkd-dispatcher if it has nothing to do

27 views
Skip to first unread message

Steve Langasek

unread,
Jul 8, 2022, 5:00:03 PM7/8/22
to
Package: networkd-dispatcher
Version: 2.1-2
Severity: normal
Tags: patch
User: ubuntu...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch

Hi Julian,

Since Ubuntu installs networkd-dispatcher by default as part of a complete
replacement for the ifupdown user experience (i.e. support for post-up hook
scripts), the fact that networkd-dispatcher is running by default even when
it has nothing to do has a significant impact on the memory footprint of the
smallest Ubuntu deployments (VMs and containers): it is the fourth largest
process in 'top' output in a pristine Ubuntu container sorted by memory
usage.

I've therefore applied the attached patch to networkd-dispatcher in Ubuntu,
so that the systemd unit for networkd-dispatcher will only start if
networkd-dispatcher has been configured on the system.

Although Debian doesn't use networkd-dispatcher by default, I think it's
good practice to not start systemd units when they are not useful.

The only notable difference vs existing behavior is that this patch does not
watch the contents of the config directories; so on first configuration, the
user will have to either reboot the system, or manually start the
networkd-dispatcher service, in order for the changes to take effect.

If you think this difference is important, I am happy to prepare an
additional .path unit which would watch these directories for additions and
start the service dynamically.

Thanks for consdering,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slan...@ubuntu.com vor...@debian.org
networkd-dispatcher_2.1-2ubuntu1.debdiff
0 new messages