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

Add rundown files compression as an option to ebpf_tracing.cmd. #2537

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

gtrevi
Copy link
Collaborator

@gtrevi gtrevi commented Jun 1, 2023

Closes #2429

Description

This PR:

  • Adds a compress_rundown_state_files parameter to ebpf_tracing.cmd (default active), so to opportunistically address CPU spikes, while keeping backwards compatibility with the previous "hardcoded" implementation.
  • Turns off the compression for the call in ebpf_tracing_periodic_task.xml.

Testing

Local VM run, 4h.

Documentation

Integrated in the script.

@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Merging #2537 (89ac251) into main (d6bcf19) will increase coverage by 0.01%.
The diff coverage is n/a.

❗ Current head 89ac251 differs from pull request most recent head 7048967. Consider uploading reports for the commit 7048967 to get more accurate results

@@            Coverage Diff             @@
##             main    #2537      +/-   ##
==========================================
+ Coverage   83.99%   84.00%   +0.01%     
==========================================
  Files         157      157              
  Lines       29116    29116              
==========================================
+ Hits        24455    24460       +5     
+ Misses       4661     4656       -5     

see 3 files with indirect coverage changes

scripts/ebpf_tracing.cmd Outdated Show resolved Hide resolved
dthaler
dthaler previously approved these changes Jun 1, 2023
Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

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

Looks good to me, other than one typo

matthewige
matthewige previously approved these changes Jun 1, 2023
@gtrevi gtrevi dismissed stale reviews from matthewige and dthaler via 7048967 June 1, 2023 18:13
@gtrevi gtrevi enabled auto-merge June 1, 2023 18:13
@gtrevi gtrevi requested a review from matthewige June 1, 2023 23:44
@gtrevi gtrevi added this pull request to the merge queue Jun 5, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 5, 2023
@gtrevi gtrevi added this pull request to the merge queue Jun 5, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 5, 2023
@gtrevi gtrevi added this pull request to the merge queue Jun 5, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 5, 2023
@dthaler dthaler added this pull request to the merge queue Jun 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 6, 2023
@dthaler dthaler added this pull request to the merge queue Jun 6, 2023
Merged via the queue into microsoft:main with commit 1ec8e90 Jun 6, 2023
gtrevi added a commit that referenced this pull request Jun 6, 2023
)

* Add 'compress_rundown_state_files' option

* nit

* typo
@gtrevi gtrevi mentioned this pull request Jun 6, 2023
@gtrevi gtrevi deleted the gtrevi/tracing-script-add-parameters branch June 19, 2023 17:10
saxena-anurag added a commit that referenced this pull request Jun 19, 2023
* Fix build errors with Visual Studio 17.6.0 (#2483)

* Fix build errors with Visual Studio 17.6.0

Signed-off-by: Dave Thaler <[email protected]>

* PR feedback

Signed-off-by: Dave Thaler <[email protected]>

---------

Signed-off-by: Dave Thaler <[email protected]>

* Cherry-pick #2499, #2483.

* Remove wfp compression

* Move the timestamp calculation.

* wip

* feedback

* Update scripts/ebpf_tracing.cmd

Co-authored-by: Dave Thaler <[email protected]>

* Setting max_file_size_mb to the final max allowed.

* maximize sizes

---------

Co-authored-by: Dave Thaler <[email protected]>

* Source update to v0.9.1

* Revert "Cherry-pick #2499, #2483."

This reverts commit eab9bbe.

* Capture bpftool output in diagnostic scripts (#2484)

* tmp working commit

* working script

* working E2E scripts

* minor formatting

* Tune ebpf_tracing.cmd to use the least amount of CPU. (#2499)

* Remove wfp compression

* Move the timestamp calculation.

* wip

* feedback

* Update scripts/ebpf_tracing.cmd

Co-authored-by: Dave Thaler <[email protected]>

* Setting max_file_size_mb to the final max allowed.

* maximize sizes

---------

Co-authored-by: Dave Thaler <[email protected]>

* Add rundown files compression as an option to `ebpf_tracing.cmd`. (#2537)

* Add 'compress_rundown_state_files' option

* nit

* typo

* fix CICD failure (#2548)

Co-authored-by: Dhiren Vispute <[email protected]>

* nit src refresh (whitespace)

* Fix redirected_by_self check for dual stack sockets (#2562)

* Cherry -picks from #2600

* fix typo

---------

Signed-off-by: Dave Thaler <[email protected]>
Co-authored-by: Dave Thaler <[email protected]>
Co-authored-by: Matthew Ige <[email protected]>
Co-authored-by: Delaram Amiri <[email protected]>
Co-authored-by: Dhiren Vispute <[email protected]>
Co-authored-by: Anurag Saxena <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tune ebpf_tracing.cmd to use the least amount of CPU.
3 participants