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

per-process cpu reservations #566

Merged
merged 3 commits into from
Dec 21, 2023
Merged

per-process cpu reservations #566

merged 3 commits into from
Dec 21, 2023

Conversation

frostbyte73
Copy link
Member

No description provided.


for pid, ps := range m.procStats {
if ps.egressID == egressID {
delete(m.procStats, pid)
Copy link
Member

Choose a reason for hiding this comment

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

why do we delete it here? seems like a GetXX should not have a side effect like this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll rename, it's only called after the egress ends

@frostbyte73 frostbyte73 merged commit 71a7187 into main Dec 21, 2023
2 checks passed
@frostbyte73 frostbyte73 deleted the per-process-res branch December 21, 2023 20:03
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.

3 participants