-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat/internal/memcmd: add internal/memcmd package to allow for memory tracking of exec.Cmd processes #62803
Merged
ggilmore
merged 3 commits into
main
from
05-20-wip_keep_expriementing_with_linux_memory_observations
Jun 10, 2024
Merged
feat/internal/memcmd: add internal/memcmd package to allow for memory tracking of exec.Cmd processes #62803
ggilmore
merged 3 commits into
main
from
05-20-wip_keep_expriementing_with_linux_memory_observations
Jun 10, 2024
Conversation
This file contains 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 stack of pull requests is managed by Graphite. Learn more about stacking. |
github-actions
bot
added
team/product-platform
team/source
Tickets under the purview of Source - the one Source to graph it all
labels
May 20, 2024
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
2 times, most recently
from
May 29, 2024 22:23
454ea2d
to
3200fec
Compare
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
7 times, most recently
from
June 5, 2024 23:25
6e01906
to
5477d17
Compare
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
2 times, most recently
from
June 7, 2024 08:14
8c7c2c8
to
fa9f739
Compare
ggilmore
changed the title
wip: keep expriementing with linux memory observations
add internal/memcmd package to allow for memory observation of Linux Processes
Jun 7, 2024
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
2 times, most recently
from
June 7, 2024 08:20
f34c905
to
7836694
Compare
ggilmore
changed the title
add internal/memcmd package to allow for memory observation of Linux Processes
add internal/memcmd package to allow for memory tracking of exec.Cmd processes
Jun 7, 2024
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
from
June 7, 2024 08:22
7836694
to
3e3654d
Compare
Strum355
reviewed
Jun 7, 2024
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
5 times, most recently
from
June 8, 2024 01:42
c5f3b77
to
182220b
Compare
eseliger
approved these changes
Jun 10, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending the bazel question from Noah and an approving review from the dev-infra team who own bazel
eseliger
reviewed
Jun 10, 2024
mmanela
reviewed
Jun 10, 2024
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
from
June 10, 2024 18:59
182220b
to
5f49f48
Compare
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
4 times, most recently
from
June 10, 2024 20:13
456f90e
to
a223c9a
Compare
Strum355
approved these changes
Jun 10, 2024
Co-authored-by: Noah Santschi-Cooney <[email protected]>
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
from
June 10, 2024 20:54
a223c9a
to
9dd391b
Compare
ggilmore
force-pushed
the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
from
June 10, 2024 21:10
2044667
to
ea401d0
Compare
ggilmore
changed the title
add internal/memcmd package to allow for memory tracking of exec.Cmd processes
feat/internal/memcmd: add internal/memcmd package to allow for memory tracking of exec.Cmd processes
Jun 10, 2024
ggilmore
deleted the
05-20-wip_keep_expriementing_with_linux_memory_observations
branch
June 10, 2024 21:20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cla-signed
team/product-platform
team/source
Tickets under the purview of Source - the one Source to graph it all
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.
This PR adds a new package memcmd, that adds a new abstraction called "Observer" that allows you to track the memory that a command (and all of its children) is using. (This package uses a polling approach with procfs, since maxRSS on Linux is otherwise unreliable for our purposes).
Example usage
Test plan
Unit tests
Note that some tests only work on darwin, so you'll have to run those locally.
Changelog
This feature adds a package that allows us to track the memory usage of commands invoked via exec.Cmd.