[Bug 2098831] [NEW] netplan apply very slow when there are many veth devices

jinkangkang 2098831 at bugs.launchpad.net
Wed Feb 19 06:08:13 UTC 2025


Public bug reported:

my instance

root at iZbp12x7bx8gp999t1zp62Z:~# cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

netplan version:  1.1.1-1~ubuntu24.04.1


add many veth in instance
```
for nu in $(seq 20 2000);do                                                                                                                                                                                                           
   ip link add "veth${nu}" type veth peer name "vethoer${nu}"                                                                                                                                                                         
done

```
and execute  `netplany apply` command execution is slow

root at iZbp12x7bx8gp999t1zp62Z:~# time netplan apply

real    1m20.402s
user    0m40.302s
sys     0m22.891s

in netplan_cli/cli/commands/apply.py function  command_apply  traverse
all network card devices for UDEV processing  (udevadm', 'test-builtin'
...). I think this may not be necessary. Should we only process the
devices in the netplan configuration file

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- netplan apply very slow when there are many veth devices,
+ netplan apply very slow when there are many veth devices

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2098831

Title:
  netplan apply very slow when there are many veth devices

Status in netplan.io package in Ubuntu:
  New

Bug description:
  my instance

  root at iZbp12x7bx8gp999t1zp62Z:~# cat /etc/os-release 
  PRETTY_NAME="Ubuntu 24.04.1 LTS"
  NAME="Ubuntu"
  VERSION_ID="24.04"
  VERSION="24.04.1 LTS (Noble Numbat)"
  VERSION_CODENAME=noble
  ID=ubuntu
  ID_LIKE=debian
  HOME_URL="https://www.ubuntu.com/"
  SUPPORT_URL="https://help.ubuntu.com/"
  BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
  PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
  UBUNTU_CODENAME=noble
  LOGO=ubuntu-logo

  netplan version:  1.1.1-1~ubuntu24.04.1

  
  add many veth in instance
  ```
  for nu in $(seq 20 2000);do                                                                                                                                                                                                           
     ip link add "veth${nu}" type veth peer name "vethoer${nu}"                                                                                                                                                                         
  done

  ```
  and execute  `netplany apply` command execution is slow

  root at iZbp12x7bx8gp999t1zp62Z:~# time netplan apply

  real    1m20.402s
  user    0m40.302s
  sys     0m22.891s

  in netplan_cli/cli/commands/apply.py function  command_apply  traverse
  all network card devices for UDEV processing  (udevadm', 'test-
  builtin' ...). I think this may not be necessary. Should we only
  process the devices in the netplan configuration file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2098831/+subscriptions




More information about the foundations-bugs mailing list