Skip to content

Move stats collection of eNB stats into s1ap thread#7758

Merged
amarpad merged 1 commit intomagma:masterfrom
amarpad:stats
Jun 25, 2021
Merged

Move stats collection of eNB stats into s1ap thread#7758
amarpad merged 1 commit intomagma:masterfrom
amarpad:stats

Conversation

@amarpad
Copy link
Copy Markdown
Contributor

@amarpad amarpad commented Jun 24, 2021

Summary

The current access pattern violates the ITTI framework so
1 - Create a stats timer for S1ap to send stats to service303
2 - Remove fields from mme_app structure relating to eNB (s1).
3 - Move the increment of enb stats to post s1setup request vs when the
association gets enabled. This makes more sense and maps to where the
increment used to happen for the cross thread stats
Also was missing a break for handling APPLICATION_MME_APP_STATS_MSG which
triggered the premature termination of the service303 thread, regression
introduced in by me in 118e113. Fixed that as well.

Test Plan

1 - Added instrumentation logs to validate that the timer was getting triggered multiple times

2 - make integ_test (on debian)

Additional Information

  • This change is backwards-breaking

@amarpad amarpad requested a review from a team as a code owner June 24, 2021 21:31
@amarpad amarpad requested review from a team, ulaskozat and uri200 June 24, 2021 21:31
@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label Jun 24, 2021
@magmabot magmabot added the component: agw Access gateway-related issue label Jun 24, 2021
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a PR! 💯 Please note that all commits must be signed off. This is enforced by the DCO check.

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

case APPLICATION_MME_APP_STATS_MSG: {
service303_mme_app_statistics_read(
&received_message_p->ittiMsg.application_mme_app_stats_msg);
} break;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ulaskozat , @themarwhal : Oversight on missing the break here, so the first sample gets recorded correctly but subsequent samples don't as the thread exists. Apologies.

@ulaskozat
Copy link
Copy Markdown
Contributor

Can you move stats printing in debug mode from mme app to 303 as it has now all the stats?

@amarpad
Copy link
Copy Markdown
Contributor Author

amarpad commented Jun 25, 2021

Can you move stats printing in debug mode from mme app to 303 as it has now all the stats?

I think that is a separate cleanup. This is a correctness fix.

Copy link
Copy Markdown
Contributor

@ulaskozat ulaskozat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@ardzoht ardzoht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

The current access pattern violates the ITTI framework so
1 - Create a stats timer for S1ap to send stats to service303
2 - Remove fields from mme_app structure relating to eNB (s1).
3 - Move the increment of enb stats to post s1setup request vs when the
association gets enabled. This makes more sense and maps to where the
increment used to happen for the cross thread stats
Also was missing a break for handling APPLICATION_MME_APP_STATS_MSG which
triggered the premature termination of the service303 thread, regression
introduced in by me in 118e113. Fixed that as well.

Signed-off-by: Amar Padmanabhan <[email protected]>
@amarpad amarpad enabled auto-merge (squash) June 25, 2021 19:43
@amarpad amarpad merged commit 2cdcaa4 into magma:master Jun 25, 2021
themarwhal pushed a commit that referenced this pull request Jun 25, 2021
The current access pattern violates the ITTI framework so
1 - Create a stats timer for S1ap to send stats to service303
2 - Remove fields from mme_app structure relating to eNB (s1).
3 - Move the increment of enb stats to post s1setup request vs when the
association gets enabled. This makes more sense and maps to where the
increment used to happen for the cross thread stats
Also was missing a break for handling APPLICATION_MME_APP_STATS_MSG which
triggered the premature termination of the service303 thread, regression
introduced in by me in 118e113. Fixed that as well.

Signed-off-by: Amar Padmanabhan <[email protected]>

Co-authored-by: Amar Padmanabhan <[email protected]>
@amarpad amarpad deleted the stats branch June 25, 2021 21:50
rmeleromira pushed a commit to rmeleromira/magma that referenced this pull request Jul 24, 2021
The current access pattern violates the ITTI framework so
1 - Create a stats timer for S1ap to send stats to service303
2 - Remove fields from mme_app structure relating to eNB (s1).
3 - Move the increment of enb stats to post s1setup request vs when the
association gets enabled. This makes more sense and maps to where the
increment used to happen for the cross thread stats
Also was missing a break for handling APPLICATION_MME_APP_STATS_MSG which
triggered the premature termination of the service303 thread, regression
introduced in by me in 118e113. Fixed that as well.

Signed-off-by: Amar Padmanabhan <[email protected]>

Co-authored-by: Amar Padmanabhan <[email protected]>
Signed-off-by: Ramon Melero <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apply-v1.6 backported-v1.6 component: agw Access gateway-related issue size/L Denotes a Pull Request that changes 100-499 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants