-
Notifications
You must be signed in to change notification settings - Fork 25
Profiling #260
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
Merged
Merged
Profiling #260
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9f1e7fa
Allow 'apptainer' as singularity alias
jhiemstrawisc 115a6a1
Create knob that adds profiling flag to config object
jhiemstrawisc e917b91
Create peer cgroup for PRM containers and aggregate usage stats
jhiemstrawisc b3bc8ff
Package new cgroup wrapper
jhiemstrawisc 1598a43
Fix minor things
jhiemstrawisc ed92219
Restore docker:// prefix for remote containers
jhiemstrawisc 11c8e63
fix(run_container): support paths
tristan-f-r 79b6688
Move apptainer profiling functions to separate file
jhiemstrawisc be6adb1
Restore some comments about apptainer image unpacking
jhiemstrawisc 29f0001
Incorporate review feedback
jhiemstrawisc c5c3529
Add outdir and switch run_container-->run_container_and_log for RNet,…
jhiemstrawisc f186659
Fixup artifacts from rebase
jhiemstrawisc e86f959
Capture container stderr when profiling w/ Apptainer
jhiemstrawisc d0cad77
Add note about profiling/HTCondor version requirement
jhiemstrawisc 4e8a080
Add out_dir to bowtiebuilder
jhiemstrawisc b454fa4
Fix switched work_dir/out_dir in DOMINO
jhiemstrawisc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| include spras/cgroup_wrapper.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #!/bin/bash | ||
|
|
||
| # This script gets invoked by run_singularity_container when enable_profiling is set to true. | ||
| # Its arguments are <cgroup_path> <apptainer exec command and args> | ||
| # If profiling is enabled, we've already created a new cgroup that has no running processes and | ||
| # we've started this script with its own PID. To isolate the inner container's resource usage stats, | ||
| # we add this script's PID to the new cgroup and then run the apptainer command. Since the generic | ||
| # snakemake/spras stuff is outside this cgroup, we can monitor the inner container's resource usage | ||
| # without conflating it with the overhead from spras itself. | ||
|
|
||
| CGROUP_PATH="$1" | ||
| echo "My cgroup path is: $CGROUP_PATH" | ||
| # Pop the first argument off the list so remaining args are just the apptainer command to exec | ||
| shift | ||
jhiemstrawisc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| echo $$ > "$CGROUP_PATH/cgroup.procs" | ||
|
|
||
| # Start apptainer | ||
| echo "Executing command: $@" | ||
| exec "$@" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.