Repository navigation
docs(multinode): follow-ups to the memory guard review - #2601
Merged
Defilan merged 2 commits intoNov 24, 2026
Merged
Conversation
The guard's last drop is skipped when a drop ran in the last 5 seconds. Argo CD needs the RespectIgnoreDifferences=true sync option beside ignoreDifferences, or a sync still applies the Git value of spec.suspend. /proc/zoneinfo counts pages, which are 16 or 64 KiB on some arm64 kernels; point at getconf PAGESIZE instead of assuming 4 KiB. Refs defilantech#1857 Signed-off-by: Cindy Singleton <cindy.singleton@skyloch.com>
TestMultiNodeMemoryGuardScriptSuspendsWhenCacheIsShmem did not check that the last drop ran, so it stayed green if that drop were made to depend on droppable page cache. It now checks the drop and the guard's log line for it, and fails in that case. Refs defilantech#1857 Signed-off-by: Cindy Singleton <cindy.singleton@skyloch.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Defilan
approved these changes
Nov 24, 2026
Defilan
left a comment
Member
There was a problem hiding this comment.
Approving. I checked each change against the code:
- The guard skips its last drop when the flush branch dropped within the last
GUARD_DROP_GAP_S(5 s), so "unless a drop already ran in the last 5 seconds" matchesinternal/controller/multinode.go. - The new assertion pins the
guard: last dropline the script writes, so the Shmem case can't lose its last drop without the test noticing. - The Argo CD note is right:
ignoreDifferenceson its own only hides the diff, and a sync still applies the Git value unlessRespectIgnoreDifferences=trueis set.
Thanks for closing out the review items, @cindy-pi.
2 tasks done
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.
What
The four small things from the approving review of #2570 ("for later, none needed here"), in two commits: three corrections to the multi-node guide and one assertion in the memory guard tests. No operator code changes.
Why
Each of them is text or a test that #2570 left a little short of the code it merged.
Refs #1857
How
Guide (
docs/site/guides/multi-node-inference.md, "Node memory while serving")ignoreDifferenceson/spec/suspendneeds the sync optionRespectIgnoreDifferences=true, or a sync still applies the Git value. The wording followsdocs/operations/gpu-sharing.md, which already explains this forreplicas./proc/zoneinfoare in pages, not "4 KiB pages": the guide now points atgetconf PAGESIZEand says the size is 4 KiB on most kernels, 16 or 64 KiB on some arm64 ones.Two of the touched paragraphs are reflowed, so the diff is a few lines larger than the changes.
Test (
internal/controller/multinode_memory_guard_test.go)TestMultiNodeMemoryGuardScriptSuspendsWhenCacheIsShmemthrew awaydropped, so it stayed green if the guard's last drop were made to depend on droppable page cache. It now assertsdropped == "3"and the guard's own log line for that drop (guard: last drop: MemFree 6416 -> 6416 MiB), so it checks which drop ran. With these inputs the flusher cannot be the one that drops: MemFree is above the flush floor and only 88 MiB ofCachedis not Shmem.Tested
droppable(&& [ "$(droppable)" -gt 512 ]on the guard's gap check), the test fails:--- FAIL: TestMultiNodeMemoryGuardScriptSuspendsWhenCacheIsShmem ... no last drop before the suspend when the cache is Shmem. On the script as merged it passes, three runs in a row.mainat20c001e2with these commits, ingolang:1.27.4on arm64:make lint-all,gofmt,make check-docs-linksand the memory guard unit tests pass on the final diff.make test,make test-envtest,make check-docs-reference,make validate-samples,make check-helm-rbacandhelm lintpassed on the diff before a last round of wording and reflow in the guide and the added log-line check in the test; I did not rerun those two long suites after it.Left as it is
main(docs: point the three-Spark ring lab at spec.multiNode.memory and use placeholder host names #2598), so it is not here.Assisted-by: Claude Code (wrote the changes and ran the checks; I reviewed them)
Checklist
make testpasses locallymake lintpasses locally (alsomake lint-all)git commit -s) per DCO🤖 Generated with Claude Code