Expose per-node job memory to slurmd Prolog#211
Open
fabrizio2210 wants to merge 1 commit into
Open
Conversation
Changelog: Add SLURM_JOB_ALLOC_MEM_PER_NODE to the slurmd Prolog environment with effective memory allocation for the current node. Signed-off-by: Fabrizio Waldner <fabrizio@nebius.com>
5167421 to
bfaa260
Compare
Author
|
@agilmor (randomly picking last active user in the repo, sorry), do you know what the procedure to merge this PR is? |
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.
Summary
Expose
SLURM_JOB_ALLOC_MEM_PER_NODEto slurmd Prolog scripts. The value is the effective job memory allocation for the current slurmd node, in MiB.Implementation
This does not add an RPC or change scheduling or memory enforcement behavior. The variable is intentionally available only in slurmd Prolog, not Epilog.
Testing
make -j4./run-tests -i '31.3'(new assertion passed; 17 subtests passed, 2 optional GPU/MPS subtests skipped, 0 failed)git clang-format --diff origin/master -- src/plugins/prep/script/prep_script_slurmd.cpre-commit run --show-diff-on-failure --files doc/html/prolog_epilog.shtml src/plugins/prep/script/prep_script_slurmd.c testsuite/expect/test31.3git diff --check origin/master...HEAD