Thank you for your reply,when 'netplan --debug apply', you can see in the output of logs with time printing that many udevadm operations take a long time to complete.
in cloudinit, also have a function _net_setup_link, cycle without any filtering, (Cloudinit also needs optimization, a bug has been submitted for tracking, https://bugs.launchpad.net/ubuntu/+source/cloud- init/+bug/2098843, ), but cloudinit have a check, when Predictable interface names disabled. skip net_setup_link, so i submit a pr add this check, Perhaps this is a small optimization https://github.com/canonical/netplan/pull/544/files -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2098831 Title: netplan apply very slow when there are many veth devices To manage notifications about this bug go to: https://bugs.launchpad.net/netplan/+bug/2098831/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
