Repository navigation
Report the limits the daemon actually applies - #333
Merged
Merged
Conversation
The runtime profile now carries memory, memory+swap, pids, CPU and writable-layer enforcement next to the requested memory. A limit the daemon will not apply reads as zero, so an advertised limit is never reported as if it were in effect. ApplyDiskQuota had no caller: it set storage-opt size on every container, where a read-only root can never grow. It is now wired to storage.container_writable_mb and applied only when the root is writable. The profile states that this cap is not a world quota, because /data is a bind mount. Warnings, never blockers: no memory limit, swap re-enabled, no pids limit, an unbounded writable layer, a writable-layer cap that cannot take effect, and a writable-layer cap presented as a world bound. Refs OSS-239
staticcheck QF1008: container.Resources is embedded, so the selectors can name Memory and MemorySwap directly. Refs OSS-239
athNdev
force-pushed
the
feat/resource-limits
branch
from
November 4, 2026 01:43
b2e8d32 to
c9a192f
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of OSS-239.
RuntimeProfile.Limitsrecords requested memory beside the applied memory, memory+swap, pids, CPU and writable-layer values. A limit the daemon will not apply reads as zero, so the panel never presents an ignored limit as enforced.ApplyDiskQuotahad no production caller and setstorage-opt sizeon every container, including a read-only root that can never grow. It is now driven by the newstorage.container_writable_mbsetting and applied only when the root is writable./datais a bind mount, so it is measured by the metrics collector and bounded only by the node filesystem or a volume quota. Recorded inknowledge/failures/known-gaps.md.memory_limit_unset,swap_enabled,pids_limit_unset,writable_layer_unbounded,writable_layer_cap_ignored,storage_quota_is_not_a_world_quota.Verified:
go build ./...,go vet ./...,go test ./..., knowledge-lint 10/10.