Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
2d0df2ed
Commit
2d0df2ed
authored
7 years ago
by
Danny Auble
Committed by
Alejandro Sanchez
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix problem setting SLURMSTEPD_OOM_ADJ introduced in
8325e9f8
.
Bug 4478 comment 25.
parent
dd80bc57
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmd/common/slurmd_cgroup.c
+2
-3
2 additions, 3 deletions
src/slurmd/common/slurmd_cgroup.c
with
2 additions
and
3 deletions
src/slurmd/common/slurmd_cgroup.c
+
2
−
3
View file @
2d0df2ed
...
@@ -188,7 +188,6 @@ extern int init_system_memory_cgroup(void)
...
@@ -188,7 +188,6 @@ extern int init_system_memory_cgroup(void)
{
{
int
fstatus
=
SLURM_ERROR
;
int
fstatus
=
SLURM_ERROR
;
char
*
slurm_cgpath
;
char
*
slurm_cgpath
;
const
char
*
oom_score_min
=
(
const
char
*
)
OOM_SCORE_ADJ_MIN
;
/* read cgroup configuration */
/* read cgroup configuration */
if
(
read_slurm_cgroup_conf
(
&
slurm_cgroup_conf
))
if
(
read_slurm_cgroup_conf
(
&
slurm_cgroup_conf
))
...
@@ -260,10 +259,10 @@ extern int init_system_memory_cgroup(void)
...
@@ -260,10 +259,10 @@ extern int init_system_memory_cgroup(void)
* OOM killer behavior, keep it, otherwise set the
* OOM killer behavior, keep it, otherwise set the
* OOM_SCORE_ADJ_MIN value, wich means do not let OOM killer kill it
* OOM_SCORE_ADJ_MIN value, wich means do not let OOM killer kill it
*
*
* FYI, setting "export SLURMSTEPD_OOM_ADJ=-1000"
* FYI, setting "export SLURMSTEPD_OOM_ADJ=
OOM_SCORE_ADJ_MIN (
-1000
)
"
* in /etc/sysconfig/slurm would be the same
* in /etc/sysconfig/slurm would be the same
*/
*/
setenv
(
"SLURMSTEPD_OOM_ADJ
"
,
oom_score_min
,
0
);
setenv
fs
(
"SLURMSTEPD_OOM_ADJ
=%d"
,
OOM_SCORE_ADJ_MIN
);
/* create slurm root cg in this cg namespace */
/* create slurm root cg in this cg namespace */
slurm_cgpath
=
_system_cgroup_create_slurm_cg
(
&
memory_ns
);
slurm_cgpath
=
_system_cgroup_create_slurm_cg
(
&
memory_ns
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment