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

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

Merged
merged 8 commits into from
May 30, 2023

Conversation

gtrevi
Copy link
Collaborator

@gtrevi gtrevi commented May 22, 2023

Closes #2429

Description

Remove compression of the wfpstate.xml file before moving it to the .\committed folder, and in turn, its max size check should be raised to account for the final compression ratio.

Testing

Local testing

Documentation

Moved embedded documentation comments into usage.

@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Merging #2499 (74f33e6) into main (667a948) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2499      +/-   ##
==========================================
- Coverage   84.06%   84.06%   -0.01%     
==========================================
  Files         155      157       +2     
  Lines       28847    28978     +131     
==========================================
+ Hits        24251    24360     +109     
- Misses       4596     4618      +22     

see 11 files with indirect coverage changes

scripts/ebpf_tracing.cmd Outdated Show resolved Hide resolved
scripts/ebpf_tracing.cmd Outdated Show resolved Hide resolved
matthewige
matthewige previously approved these changes May 23, 2023
Alan-Jowett
Alan-Jowett previously approved these changes May 24, 2023
@Alan-Jowett Alan-Jowett added this pull request to the merge queue May 24, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks May 24, 2023
scripts/ebpf_tracing.cmd Outdated Show resolved Hide resolved
@gtrevi gtrevi dismissed stale reviews from Alan-Jowett and matthewige via c61fe57 May 24, 2023 23:38
@gtrevi gtrevi enabled auto-merge May 24, 2023 23:39
@gtrevi gtrevi disabled auto-merge May 25, 2023 00:05
@dthaler
Copy link
Collaborator

dthaler commented May 26, 2023

Previously it looks like it was tuned to use the least amount of disk space. Can you add more details to issue #2429 as to why it's more important to optimize for CPU than disk space? (It's not clear to me.) Thanks!

@dthaler dthaler added the optimization Affects perf but not correctness or applicability label May 26, 2023
@gtrevi gtrevi added this pull request to the merge queue May 30, 2023
Merged via the queue into microsoft:main with commit 0b398db May 30, 2023
@gtrevi gtrevi deleted the gtrevi/tracing-script-perf branch May 30, 2023 23:29
gtrevi added a commit that referenced this pull request May 31, 2023
* 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]>
@gtrevi gtrevi mentioned this pull request May 31, 2023
gtrevi added a commit that referenced this pull request May 31, 2023
gtrevi added a commit that referenced this pull request May 31, 2023
* 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]>
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
optimization Affects perf but not correctness or applicability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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