sonic-buildimage/device/arista
Richard.Yu fe1fc4cf6a
[broadcom]: Set default SYNCD_SHM_SIZE for Broadcom XGS devices (#13297) (#13807)
After upgrade to brcmsai 8.1, the sdk running environment (container) recommended with mininum memory size as below

TH4/TD4(ltsw) uses 512MB
TH3 used 300MB
Helix4/TD2/TD3/TH/TH 256 MB
Base on this requirement, adjust the default syncd share memory size and set the memory size for special ACISs in platform_env.conf file for different types of Broadcom ASICs.

How I did it
Add the platform_env.conf file if none of it for broadcom platform (base on platform_asic file)
Add the 'SYNCD_SHM_SIZE' and set the value

for ltsw(TD4/TH4) devices set to 512M at least (update the platform_env.conf)
for Td2/TH2/TH devices set to 256M
for TH3 set to 300M

verify

How to verify it
verify the image with code fix
Check with UT
Check on lab devices

On a problematic device which cannot start successfully
Run with the command
$ cat /proc/linux-kernel-bde
Broadcom Device Enumerator (linux-kernel-bde)
Module parameters:
        maxpayload=128
        usemsi=0
        dmasize=32M
        himem=(null)
        himemaddr=(null)
DMA Memory (kernel): 33554432 bytes, 0 used, 33554432 free, local mmap
No devices found
$ docker rm -f syncd
syncd
$ sudo /usr/bin/syncd.sh start
Cannot get Broadcom Chip Id. Skip set SYNCD_SHM_SIZE.
Creating new syncd container with HWSKU Force10-S6000
a4862129a7fea04f00ed71a88715eac65a41cdae51c3158f9cdd7de3ccc3dd31
$ docker inspect syncd | grep -i shm
            "ShmSize": 67108864,
                "Tag": "fix_8.1_shm_issue.67873427-9f7ca60a0e",
On Normal device
$ docker inspect syncd | grep -i shm
            "ShmSize": 268435456,
                "Tag": "fix_8.1_shm_issue.67873427-9f7ca60a0e"
change the config syncd_shm.ini to b85=128m

$ docker rm -f syncd
syncd
$ sudo /usr/bin/syncd.sh start
Creating new syncd container with HWSKU Force10-S6000
3209ffc1e5a7224b99640eb9a286c4c7aa66a2e6a322be32fb7fe2113bb9524c
$  docker inspect syncd | grep -i shm
            "ShmSize": 134217728,
                "Tag": "fix_8.1_shm_issue.67873427-9f7ca60a0e",
change the config under
/usr/share/sonic/device/x86_64-dell_s6000_s1220-r0/Force10-S6000/platform_env.conf
and run command

$ cat /usr/share/sonic/device/x86_64-dell_s6000_s1220-r0/platform_env.conf
SYNCD_SHM_SIZE=300m

$ sudo /usr/bin/syncd.sh start
Creating new syncd container with HWSKU Force10-S6000
897f6fcde1f669ad2caab7da4326079abd7e811bf73f018c6dacc24cf24bfda5
$  docker inspect syncd | grep -i shm
            "ShmSize": 314572800,
                "Tag": "fix_8.1_shm_issue.67873427-9f7ca60a0e",

Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
2023-02-15 15:58:49 +08:00
..
x86_64-arista_720dt_48s [Arista 720DT] Create SKU alias Arista-720DT-G48S4 (#12905) 2023-02-06 12:36:59 +08:00
x86_64-arista_7050_qx32 [Profile separation] MMU infrastructure update for TD2 (#12626) 2022-11-17 12:58:11 -08:00
x86_64-arista_7050_qx32s [Profile separation] MMU infrastructure update for TD2 (#12626) 2022-11-17 12:58:11 -08:00
x86_64-arista_7050cx3_32s Apply separated DSCP_TO_TC_MAP and TC_TO_QUEUE_MAP to uplink ports on dualtor (#12730) 2022-12-10 10:33:21 +08:00
x86_64-arista_7050dx4_32s [broadcom]: Set default SYNCD_SHM_SIZE for Broadcom XGS devices (#13297) (#13807) 2023-02-15 15:58:49 +08:00
x86_64-arista_7050px4_32s [broadcom]: Set default SYNCD_SHM_SIZE for Broadcom XGS devices (#13297) (#13807) 2023-02-15 15:58:49 +08:00
x86_64-arista_7050sx3_48c8 [broadcom]: td2/td3 change cpu cos num to 10 (#9301) 2021-11-17 20:56:46 -08:00
x86_64-arista_7050sx3_48yc8 [broadcom]: td2/td3 change cpu cos num to 10 (#9301) 2021-11-17 20:56:46 -08:00
x86_64-arista_7060_cx32s [Arista] Update platform.json for 7060CX-32S (#12783) 2022-12-10 10:33:21 +08:00
x86_64-arista_7060cx2_32s Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7060dx4_32 [Arista] Add 1x100G over 4 lanes configuration for 7060DX4 (#10655) 2022-04-25 08:11:32 -07:00
x86_64-arista_7060dx5_64s [broadcom]: Set default SYNCD_SHM_SIZE for Broadcom XGS devices (#13297) (#13807) 2023-02-15 15:58:49 +08:00
x86_64-arista_7060px4_32 Disable ALPM distributed hitbit thread that is used for debug purpose only but interfered with Other functional operations (#9199) 2021-11-09 07:21:57 -08:00
x86_64-arista_7060px5_64s [broadcom]: Set default SYNCD_SHM_SIZE for Broadcom XGS devices (#13297) (#13807) 2023-02-15 15:58:49 +08:00
x86_64-arista_7170_32c [BFN] Update configuration files (#9913) 2022-03-09 09:57:08 +05:30
x86_64-arista_7170_32cd [BFN] Update configuration files (#9913) 2022-03-09 09:57:08 +05:30
x86_64-arista_7170_64c Updated format of generating BUFFER_QUEUE in buffers_defaults templates (#9850) 2022-04-13 09:11:01 -07:00
x86_64-arista_7170b_64c [Arista] Update driver submodules (#9393) 2021-12-08 11:33:36 -08:00
x86_64-arista_7260cx3_64 [Arista]: Add hwSku Arista-7260CX3-D108C10 (#13242) 2023-02-04 10:48:14 +08:00
x86_64-arista_7280cr3_32d4 [device/arista] Reduce SDK stat polling freq in DNX devices (#13429) 2023-02-11 02:38:01 +08:00
x86_64-arista_7280cr3_32p4 [device/arista] Reduce SDK stat polling freq in DNX devices (#13429) 2023-02-11 02:38:01 +08:00
x86_64-arista_7280cr3mk_32d4 [Arista] Add pcie.yaml to 7280CR3-32D4 variants (#12700) 2022-11-14 13:29:30 -08:00
x86_64-arista_7280cr3mk_32p4 [Arista] Add pcie.yaml to 7280CR3-32D4 variants (#12700) 2022-11-14 13:29:30 -08:00
x86_64-arista_7800_sup [arista] [chassis] Add psu/thermal info in platform.json for sup (#12667) 2022-11-14 11:03:52 -08:00
x86_64-arista_7800r3_48cq2_lc [device/arista] Reduce SDK stat polling freq in DNX devices (#13429) 2023-02-11 02:38:01 +08:00
x86_64-arista_7800r3_48cqm2_lc [Arista] [platform] Add thermal info in platform.json (#12714) 2022-11-17 11:05:16 -08:00
x86_64-arista_7800r3a_36d2_lc [device/arista] Reduce SDK stat polling freq in DNX devices (#13429) 2023-02-11 02:38:01 +08:00
x86_64-arista_common Implement ssd_util plugin for Arista products (#11981) 2022-09-21 14:56:14 +08:00
x86_64-arista_7280cr3k_32d4 [arista]: Add SmartsvilleDDBK and SmartsvilleBkMs (#4662) 2020-05-28 14:59:00 -07:00
x86_64-arista_7280cr3k_32p4 [arista] Add support for more 7280CR3 variants (#3711) 2019-11-06 10:11:38 -08:00
x86_64-arista_7800r3a_36d_lc [Arista] Add support for Wolverine linecards (#8887) 2022-05-20 14:11:06 -07:00
x86_64-arista_7800r3a_36dm2_lc [Arista] Add support for Wolverine linecards (#8887) 2022-05-20 14:11:06 -07:00
x86_64-arista_7800r3a_36p_lc [Arista] Add support for Wolverine linecards (#8887) 2022-05-20 14:11:06 -07:00
x86_64-arista_7800r3ak_36d2_lc [Arista] Add support for Wolverine linecards (#8887) 2022-05-20 14:11:06 -07:00
x86_64-arista_7800r3ak_36dm2_lc [Arista] Add support for Wolverine linecards (#8887) 2022-05-20 14:11:06 -07:00