From 00a9412880b54162fcb0ffdf1f31fb7a3ac07bc6 Mon Sep 17 00:00:00 2001 From: arista-nwolfe <94405414+arista-nwolfe@users.noreply.github.com> Date: Fri, 17 Nov 2023 09:06:25 -0800 Subject: [PATCH] [Arista]: Set SYNCD_SHM_SIZE for Arista DNX Devices (#17205) 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]#015 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. --- device/arista/x86_64-arista_7280cr3_32p4/platform_env.conf | 1 + device/arista/x86_64-arista_7800r3_48cq2_lc/platform_env.conf | 1 + device/arista/x86_64-arista_7800r3_48cqm2_lc/platform_env.conf | 1 + device/arista/x86_64-arista_7800r3a_36d2_lc/platform_env.conf | 1 + 4 files changed, 4 insertions(+) diff --git a/device/arista/x86_64-arista_7280cr3_32p4/platform_env.conf b/device/arista/x86_64-arista_7280cr3_32p4/platform_env.conf index 283e1c0ce7..a6e93033fa 100644 --- a/device/arista/x86_64-arista_7280cr3_32p4/platform_env.conf +++ b/device/arista/x86_64-arista_7280cr3_32p4/platform_env.conf @@ -1 +1,2 @@ +SYNCD_SHM_SIZE=1gb usemsi=1 diff --git a/device/arista/x86_64-arista_7800r3_48cq2_lc/platform_env.conf b/device/arista/x86_64-arista_7800r3_48cq2_lc/platform_env.conf index 89102035fc..76c93ccf17 100644 --- a/device/arista/x86_64-arista_7800r3_48cq2_lc/platform_env.conf +++ b/device/arista/x86_64-arista_7800r3_48cq2_lc/platform_env.conf @@ -1,2 +1,3 @@ +SYNCD_SHM_SIZE=1gb usemsi=1 dmasize=512M diff --git a/device/arista/x86_64-arista_7800r3_48cqm2_lc/platform_env.conf b/device/arista/x86_64-arista_7800r3_48cqm2_lc/platform_env.conf index 89102035fc..76c93ccf17 100644 --- a/device/arista/x86_64-arista_7800r3_48cqm2_lc/platform_env.conf +++ b/device/arista/x86_64-arista_7800r3_48cqm2_lc/platform_env.conf @@ -1,2 +1,3 @@ +SYNCD_SHM_SIZE=1gb usemsi=1 dmasize=512M diff --git a/device/arista/x86_64-arista_7800r3a_36d2_lc/platform_env.conf b/device/arista/x86_64-arista_7800r3a_36d2_lc/platform_env.conf index 0f19ad3cad..9cce2f4dce 100644 --- a/device/arista/x86_64-arista_7800r3a_36d2_lc/platform_env.conf +++ b/device/arista/x86_64-arista_7800r3a_36d2_lc/platform_env.conf @@ -1,3 +1,4 @@ +SYNCD_SHM_SIZE=1gb usemsi=1 dmasize=64M macsec_enabled=1