Description
Description
This issue was observed on ACL test, from the log can see that although the ACL table and rules has been created in SWSS level,
but related SAI API calls haven't been called till the PTF start to send verification traffic.
And system is busying calling "mlnx_create_next_hop_group_member" and "mlnx_remove_next_hop_group_member" to update route.
seems that there is no "fairness" scheduling when SWSS is busy, some task could be significantly delayed.
Steps to reproduce the issue:
trigger massive route update and then start ACL test, it could be reproduced.
Describe the results you received:
only SWSS ACL log observed, no syncd log observed.
Jun 16 18:19:07.228802 arc-mtbc-1001 INFO ansible-<stdin>: Invoked with warn=True executable=None chdir=None _raw_params=sonic-cfggen -j /home/admin/acl/acl_table_DATAINGRESS.json --write-to-db removes=None creates=None _uses_shell=False
Jun 16 18:19:07.800210 arc-mtbc-1001 NOTICE swss#orchagent: :- addAclTable: Created ACL table DATAINGRESS oid:7000000001a25
Jun 16 18:19:23.800192 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_16 in table DATAINGRESS
Jun 16 18:19:23.800374 arc-mtbc-1001 INFO caclmgrd: ACL configuration changed. Updating iptables rules for control plane ACLs...
Jun 16 18:19:23.803423 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_8 in table DATAINGRESS
Jun 16 18:19:23.815132 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule DEFAULT_RULE in table DATAINGRESS
Jun 16 18:19:23.831588 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_11 in table DATAINGRESS
Jun 16 18:19:23.831588 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_12 in table DATAINGRESS
Jun 16 18:19:23.837167 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_14 in table DATAINGRESS
Jun 16 18:19:23.847532 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_15 in table DATAINGRESS
Jun 16 18:19:23.847532 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_2 in table DATAINGRESS
Jun 16 18:19:23.847532 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_22 in table DATAINGRESS
Jun 16 18:19:23.847532 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_25 in table DATAINGRESS
Jun 16 18:19:23.881256 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_3 in table DATAINGRESS
Jun 16 18:19:23.881256 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_6 in table DATAINGRESS
Jun 16 18:19:23.881256 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_7 in table DATAINGRESS
Jun 16 18:19:23.912002 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_1 in table DATAINGRESS
Jun 16 18:19:23.923543 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_10 in table DATAINGRESS
Jun 16 18:19:23.923543 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_13 in table DATAINGRESS
Jun 16 18:19:23.923543 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_17 in table DATAINGRESS
Jun 16 18:19:23.930624 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_18 in table DATAINGRESS
Jun 16 18:19:23.930624 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_19 in table DATAINGRESS
Jun 16 18:19:23.938537 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_20 in table DATAINGRESS
Jun 16 18:19:23.938537 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_21 in table DATAINGRESS
Jun 16 18:19:23.938537 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_23 in table DATAINGRESS
Jun 16 18:19:23.946755 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_24 in table DATAINGRESS
Jun 16 18:19:23.946755 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_27 in table DATAINGRESS
Jun 16 18:19:23.954589 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_28 in table DATAINGRESS
Jun 16 18:19:23.954589 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_4 in table DATAINGRESS
Jun 16 18:19:23.954589 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_5 in table DATAINGRESS
Jun 16 18:19:23.963551 arc-mtbc-1001 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_9 in table DATAINGRESS
Describe the results you expected:
SAI API calls shall follow SWSS ACL table and rules creation.
Additional information you deem important (e.g. issue happens only occasionally):
**Output of `show version`:**
```
SONiC Software Version: SONiC.HEAD.70-cf9adfe
Distribution: Debian 9.9
Kernel: 4.9.0-8-amd64
Build commit: cf9adfe
Build date: Sun Jun 16 23:28:12 UTC 2019
Built by: johnar@jenkins-worker-4
```
**Attach debug file `sudo generate_dump`:**
```
(paste your output here)
```