-
Notifications
You must be signed in to change notification settings - Fork 894
feat: implement agent process management #9461
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
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4ed4069
feat: implement agent process management
sreya 7e59db6
improve process detection
sreya 8c65216
add agentproc tests
sreya 760cbb3
some minor agent tests
sreya f4b864e
add a proper test for proc management
sreya cbcb854
custom nice
sreya 8230247
refactor into build files
sreya 3e1defd
tick tock
sreya 2fe9c70
make fmt
sreya ef41e9a
pr comments
sreya 05baba0
lint
sreya 478d57c
whoops
sreya 0ced5ce
skip non-linux
sreya 8aaa6d5
skip non-linux
sreya cea4851
prevent race
sreya 5020eb4
only prioritize ourselves
sreya 11ab047
Revert "only prioritize ourselves"
sreya 46ef05a
only prioritize coder agent
sreya d132480
remove oom_score_adj
sreya 04ee5cb
defer first
sreya ffbeab9
avoid resetting niceness for already niced procs
sreya 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
Revert "only prioritize ourselves"
This reverts commit 5020eb4.
- Loading branch information
commit 11ab047a6e8903c2ea72a0ab2694aa9f631c9719
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
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
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.
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.
We want to specifically prioritize the agent and not other coder processes right? If I'm reading this code correctly it would treat
coder server
andcoder stat
the same as the agent.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.
This is a good catch, I don't see that as being a big deal but we can be more discriminate about which processes we want to prioritize by also parsing command arguments. WDYT?
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.
why not just check if its the current process?