Skip to content

Fix incorrect cgroups memory usage#934

Merged
Sushisource merged 1 commit intomasterfrom
fix-bad-cgroups
Jun 9, 2025
Merged

Fix incorrect cgroups memory usage#934
Sushisource merged 1 commit intomasterfrom
fix-bad-cgroups

Conversation

@Sushisource
Copy link
Copy Markdown
Member

Fix this obviously wrong calculation.

No specific new tests here b/c this area needs more love in general and should get more tests w/ #903

Fixes #933

@Sushisource Sushisource requested a review from a team as a code owner June 9, 2025 20:20
Copy link
Copy Markdown
Contributor

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Nothing blocking

Ordering::Release,
);
} else {
self.cur_mem_usage.store(mem, Ordering::Release);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Might as well move let mem = lock.used_memory(); into this conditional too

@Sushisource Sushisource enabled auto-merge (squash) June 9, 2025 20:31
@Sushisource Sushisource merged commit 17f424c into master Jun 9, 2025
14 of 18 checks passed
@Sushisource Sushisource deleted the fix-bad-cgroups branch June 9, 2025 20:41
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.

[Bug] cur_mem_usage being overrided with cgroup limits

2 participants