Skip to content

Commit

Permalink
[Arista]: Set SYNCD_SHM_SIZE for Arista DNX Devices (sonic-net#17205)
Browse files Browse the repository at this point in the history
SAI 9.x requires a SYNCD_SHM_SIZE specified otherwise it will default to 64mb which is insufficient for syncd.

E.G. of a few failures seen when insufficient shmem was set

ha_init:  The file: warmboot_data_0 is of size=762[MB] and is beyond the directory: /dev/shm available storage of size=64[MB]sonic-net#15
syncd.sh[26074]: Cannot get SYNCD_SHM_SIZE for chip: [869] in /usr/share/sonic/device/x86_64-broadcom_common/syncd_shm.ini. Skip set SYNCD_SHM_SIZE.

Syncd hangs here:

syncd#syncd: [none] SAI_API_SWITCH:_brcm_sai_shr_ha_section_resize:536 start=0x7f6e641b4000, end=0x7f6e645b4000, len=302276608, free=0x7f6e641b4000
Broadcom recommended using 1gb for DNX devices.

Since currently we don't use SAI9.x on master and 202305 this change won't fix anything until we upgrade the SAI on those branches.
  • Loading branch information
arista-nwolfe authored and mssonicbld committed Nov 23, 2023
1 parent aa8a540 commit cc80931
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7280cr3_32p4/platform_env.conf
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SYNCD_SHM_SIZE=1gb
usemsi=1
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
SYNCD_SHM_SIZE=1gb
usemsi=1
dmasize=512M
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
SYNCD_SHM_SIZE=1gb
usemsi=1
dmasize=512M
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SYNCD_SHM_SIZE=1gb
usemsi=1
dmasize=64M
macsec_enabled=1

0 comments on commit cc80931

Please sign in to comment.