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

sonic-swss: Code changes for WRED and ECN statistics

Open rpmarvell opened this issue 2 years ago • 7 comments

  • New flex counter group for per-Queue WRED and ECN statistics

  • New flex counter group for per-Port WRED and ECN statistics

    Signed-off-by: [email protected]

What I did WRED and ECN statistics support

Why I did it Implemented as per the HLD : https://github.com/sonic-net/SONiC/blob/ebcd2a4a987f1d6027cd57677dc6806b8a9adcdb/doc/qos/ECN_and_WRED_statistics_HLD.md

How I verified it Verfied it using Marvell DUT and SWSS unit tests.

Details if related

  • Two new flex counters added for per-Queue and per-Port WRED ECN statistics.

Build dependency on sonic-swss-common pull request : https://github.com/sonic-net/sonic-swss-common/pull/777

Expected order of dependent pull-request to be committed :

  1. sonic-swss common pull request : https://github.com/sonic-net/sonic-swss-common/pull/777
  2. sonic-sairedis pull request : https://github.com/sonic-net/sonic-sairedis/pull/1234
  3. sonic-swss : pull request : https://github.com/sonic-net/sonic-swss/pull/2750
  4. sonic-yang-model pull requests : https://github.com/sonic-net/sonic-buildimage/pull/14758
  5. sonic-utilities pull request : https://github.com/sonic-net/sonic-utilities/pull/2807

rpmarvell avatar Apr 24 '23 16:04 rpmarvell

@rpmarvell can you please fix the build failure? So that @prsunny can merge after it passed. Thanks.

zhangyanzhao avatar Jun 14 '23 04:06 zhangyanzhao

@rpmarvell can you please fix the build failure? So that @prsunny can merge after it passed. Thanks.

I have rebased the branch and it got fixed now.. Thank you..!

rpmarvell avatar Jun 16 '23 15:06 rpmarvell

@prsunny @msosyak @stephenxs can you please approve the PR and merge? Thanks.

zhangyanzhao avatar Sep 06 '23 06:09 zhangyanzhao

Please resolve conflicts

prsunny avatar Sep 19 '23 21:09 prsunny

@rpmarvell Could you resolve the conflicts

kperumalbfn avatar Aug 02 '24 04:08 kperumalbfn

@rpmarvell Could you add more tests for the code coverage? We could merge these changes for 202411 release.

image

kperumalbfn avatar Sep 25 '24 17:09 kperumalbfn

@rpmarvell Could you merge your branch to master and resolve any conflicts.

kperumalbfn avatar Sep 25 '24 17:09 kperumalbfn

@rpmarvell , reminder to rebase. Would like to get this for 202411 branch

prsunny avatar Nov 04 '24 21:11 prsunny

@rpmarvell

There are failures related to WRED queue counters, pls check test_flex_counters.py::TestFlexCounters::test_flex_counters[wred_queue_counter] FAILED [ 48%]

https://dev.azure.com/mssonic/build/_build/results?buildId=694021&view=logs&j=3f6395b2-1619-5ebe-f305-2aedcf353cb5&t=56fb64f8-b013-579d-11b0-5843431d20c9&l=1534

kperumalbfn avatar Nov 18 '24 19:11 kperumalbfn

@rpmarvell , can you please look into the failure?

prsunny avatar Dec 04 '24 00:12 prsunny

Finding the following error, I could also see the same issue in other PRs.

ERROR: failed to solve: process "/bin/sh -c dpkg -i /debs/libdashapi_1.0.0_amd64.deb /debs/libswsscommon_1.0.0_amd64.deb /debs/python3-swsscommon_1.0.0_amd64.deb /debs/sonic-db-cli_1.0.0_amd64.deb /debs/libsaimetadata_1.0.0_amd64.deb /debs/libsairedis_1.0.0_amd64.deb /debs/libsaivs_1.0.0_amd64.deb /debs/syncd-vs_1.0.0_amd64.deb /debs/swss_1.0.0_amd64.deb" did not complete successfully: exit code: 1

rpmarvell avatar Dec 05 '24 03:12 rpmarvell

/azp run

mssonicbld avatar Jan 06 '25 23:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 06 '25 23:01 azure-pipelines[bot]

/azp run

mssonicbld avatar Jan 17 '25 04:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 17 '25 04:01 azure-pipelines[bot]

/azp run

mssonicbld avatar Jan 17 '25 10:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 17 '25 10:01 azure-pipelines[bot]

/azp run

mssonicbld avatar Jan 17 '25 22:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 17 '25 22:01 azure-pipelines[bot]

The tests are running for more than 13hours.

rpmarvell avatar Jan 18 '25 11:01 rpmarvell

The tests are hanging for last two days. I have noticed that other PRs are also having this test hanging issue. For example : https://github.com/sonic-net/sonic-swss/pull/3476

rpmarvell avatar Jan 20 '25 06:01 rpmarvell

/azp run

mssonicbld avatar Jan 22 '25 08:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 22 '25 08:01 azure-pipelines[bot]

@kperumalbfn , @prsunny : The tests are hanging for more than 18hours. Could you please let me know if it is being looked at.

rpmarvell avatar Jan 23 '25 02:01 rpmarvell

/azp run

mssonicbld avatar Jan 23 '25 03:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 23 '25 03:01 azure-pipelines[bot]

/azp run

mssonicbld avatar Jan 28 '25 18:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 28 '25 18:01 azure-pipelines[bot]

/azp run

mssonicbld avatar Jan 31 '25 02:01 mssonicbld

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 31 '25 02:01 azure-pipelines[bot]