sys is too slow when configuring NIC vlan operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Invalid
|
Low
|
Unassigned | ||
Ubuntu-20.04-hwe |
Invalid
|
Low
|
Unassigned |
Bug Description
[Bug Description]
It spend 1 - 1.5 hours to configure(add or delete)maximum number of VLANs about NIC Card . In process of configure nic vlan this sys involve ifquery service,but ifquery service result in high CPU load.
[Steps to Reproduce]
1) ip link add dev enp.<vlan_id> link <ethx> type vlan id <vlan_id> (vlan_id ranges from 0 to 4095.)
2) ip link del enp.<vlan_id>
3) Repeat steps 1 to 2 for 3 times.
[Actual Results]
1-2 hours
[Expected Results]
30min
[Reproducibility]
High probability
[Additional information]
(Firmware version, kernel version, affected hardware, etc. if required2022060
kernel version:Linux ubuntu 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:28:43 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
[Resolution]
With 5.13 kernel it only takes 2 seconds for 10 times loop of step 1 and 2. I will try 5.15 too.
ubuntu@segers:~$ uname -a;for i in `seq 1 10`; do echo === vlan $i `date` ===;echo ==== add ====;sudo ip link add dev enp.$i link enp125s0f0 type vlan id $i;echo ==== del ====;sudo ip link del enp.$i; done
Linux segers 5.13.0-51-generic #58~20.04.1-Ubuntu SMP Mon Jun 13 20:00:13 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
=== vlan 1 Wed 29 Jun 2022 06:09:01 AM UTC ===
==== add ====
==== del ====
=== vlan 2 Wed 29 Jun 2022 06:09:01 AM UTC ===
==== add ====
==== del ====
=== vlan 3 Wed 29 Jun 2022 06:09:01 AM UTC ===
==== add ====
==== del ====
=== vlan 4 Wed 29 Jun 2022 06:09:01 AM UTC ===
==== add ====
==== del ====
=== vlan 5 Wed 29 Jun 2022 06:09:01 AM UTC ===
==== add ====
==== del ====
=== vlan 6 Wed 29 Jun 2022 06:09:02 AM UTC ===
==== add ====
==== del ====
=== vlan 7 Wed 29 Jun 2022 06:09:02 AM UTC ===
==== add ====
==== del ====
=== vlan 8 Wed 29 Jun 2022 06:09:02 AM UTC ===
==== add ====
==== del ====
=== vlan 9 Wed 29 Jun 2022 06:09:02 AM UTC ===
==== add ====
==== del ====
=== vlan 10 Wed 29 Jun 2022 06:09:02 AM UTC ===
==== add ====
==== del ====