Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media_settings.json tuning values are lost in APPL_DB after swss container is restarted #21902

Open
arista-nwolfe opened this issue Mar 3, 2025 · 1 comment
Assignees
Labels
Triaged this issue has been triaged

Comments

@arista-nwolfe
Copy link
Contributor

arista-nwolfe commented Mar 3, 2025

The media_settings.json tuning file is used on certain SKUs to apply L1 tuning to ports.
E.G. https://github.com/sonic-net/sonic-buildimage/blob/master/device/arista/x86_64-arista_7800r3a_36d2_lc/media_settings.json

However that tuning seems to go away if the swss container is restarted.

Steps to reproduce:

  1. I see the media_settings tuning in APPL_DB:
    root@cmp206-4:~# sonic-db-cli -n asic0 APPL_DB hgetall "PORT_TABLE:Ethernet96"
    {'admin_status': 'up', 'alias': 'Ethernet13/1', 'asic_port_name': 'Eth96', 'core_id': '0', 'core_port_id': '13', 'description': 'ARISTA13T3:Ethernet1', 'fec': 'rs', 'index': '13', 'lanes': '40,41,42,43', 'mtu': '9100', 'num_voq': '8', 'pfc_asym': 'off', 'role': 'Ext', 'speed': '100000', 'tpid': '0x8100', 'oper_status': 'up', 'flap_count': '1', 'main': '0x4e,0x4e,0x53,0x4b', 'post1': '0xffffffea,0xffffffea,0xffffffea,0xffffffec', 'post2': '0x0,0x0,0x0,0x0', 'post3': '0x0,0x0,0x0,0x0', 'pre1':'0xfffffffb,0xfffffffb,0xfffffffb,0xfffffffb', 'pre2': '0x0,0x0,0x0,0x0', 'last_up_time': 'Fri Feb 28 23:16:47 2025'}

  2. Then I restarted the swss service or the swss0 docker:
    systemctl restart [email protected]
    docker restart swss0

  3. Now I no longer see the media_settings tuning on the ports:
    root@cmp206-4:~# sonic-db-cli -n asic0 APPL_DB hgetall "PORT_TABLE:Ethernet96"
    {'admin_status': 'up', 'alias': 'Ethernet13/1', 'asic_port_name': 'Eth96', 'core_id': '0', 'core_port_id': '13', 'description': 'ARISTA13T3:Ethernet1', 'fec': 'rs', 'index': '13', 'lanes': '40,41,42,43', 'mtu': '9100', 'num_voq': '8', 'pfc_asym': 'off', 'role': 'Ext', 'speed': '100000', 'tpid': '0x8100', 'oper_status': 'up', 'flap_count': '1', 'last_up_time': 'Fri Feb 28 23:56:34 2025'}

Note: Bringing the port down and up doesn't bring back the tuning values, however, restarting the pmon service will bring back the tuning values systemctl restart pmon.service

@arlakshm
Copy link
Contributor

arlakshm commented Mar 3, 2025

@prgeor can you help triage

@arlakshm arlakshm added the Triaged this issue has been triaged label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triaged this issue has been triaged
Projects
Status: No status
Development

No branches or pull requests

3 participants