sonic-buildimage icon indicating copy to clipboard operation
sonic-buildimage copied to clipboard

[Marvell][Nokia-M0] Set custom create switch timeout

Open pavannaregundi opened this issue 1 year ago • 8 comments

Why I did it

Migrating Nokia-M0 armhf platform from SONiC 202311 to master and 202405 branch, resulted in syncd create_switch timeout. It is analyzed to see that SAI SDK code remains the same and time consume by SAI SDK during init when some(snmp mgmt-framework lldp gnmi dhcp_relay radv teamd pmon bgp) of the docker in sonic are disabled is same as running on 202311(with same environment).

Some of the other observations are:

  • Switch create time varies from 50sec to 85 sec randomly depending on CPU load.
  • Running bullseye based 5.10 sonic kernel yielded same result on latest master.
  • Running docker ps -a in 202405 shows all dockers attempting to start, while in 202311 it delays most dockers.
  • No single docker seems to have a significant impact.
Work item tracking
  • Microsoft ADO (number only):

How I did it

Added changes to support custom create_switch timeout value to orchagent from hwsku. Orchagent changes are captured in PR https://github.com/sonic-net/sonic-swss/pull/3258

How to verify it

Verified by running SONIC PTF run on Nokia-M0.

Which release branch to backport (provide reason below if selected)

  • [ ] 201811
  • [ ] 201911
  • [ ] 202006
  • [ ] 202012
  • [ ] 202106
  • [ ] 202111
  • [ ] 202205
  • [ ] 202211
  • [ ] 202305
  • [x] 202405

Tested branch (Please provide the tested image version)

  • [ ]
  • [ ]

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

pavannaregundi avatar Aug 16 '24 06:08 pavannaregundi

@Blueve @Pavan-Nokia Please check.

pavannaregundi avatar Aug 16 '24 07:08 pavannaregundi

/azpw run Azure.sonic-buildimage

pavannaregundi avatar Aug 27 '24 02:08 pavannaregundi

/AzurePipelines run Azure.sonic-buildimage

mssonicbld avatar Aug 27 '24 02:08 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Aug 27 '24 02:08 azure-pipelines[bot]

/azpw ms_checker

liushilongbuaa avatar Aug 27 '24 05:08 liushilongbuaa

/azpw run Azure.sonic-buildimage

pavannaregundi avatar Sep 05 '24 15:09 pavannaregundi

/AzurePipelines run Azure.sonic-buildimage

mssonicbld avatar Sep 05 '24 15:09 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 05 '24 15:09 azure-pipelines[bot]

ADO: 29208990

Blueve avatar Oct 11 '24 01:10 Blueve

MSADO 29208990

bingwang-ms avatar Oct 11 '24 16:10 bingwang-ms

Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-buildimage/pull/20477

mssonicbld avatar Oct 11 '24 16:10 mssonicbld