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
fe8b04fb
Commit
fe8b04fb
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Make frequency with which we purge jobs (and resend terminate job
RPC) a parameter, effectively raise the time from 1 to 5 mins.
parent
74b17867
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/slurmctld/controller.c
+9
-3
9 additions, 3 deletions
src/slurmctld/controller.c
src/slurmctld/slurmctld.h
+4
-0
4 additions, 0 deletions
src/slurmctld/slurmctld.h
with
13 additions
and
3 deletions
src/slurmctld/controller.c
+
9
−
3
View file @
fe8b04fb
...
@@ -729,6 +729,7 @@ static void *_slurmctld_background(void *no_data)
...
@@ -729,6 +729,7 @@ static void *_slurmctld_background(void *no_data)
static
time_t
last_group_time
;
static
time_t
last_group_time
;
static
time_t
last_ping_node_time
;
static
time_t
last_ping_node_time
;
static
time_t
last_ping_srun_time
;
static
time_t
last_ping_srun_time
;
static
time_t
last_purge_job_time
;
static
time_t
last_timelimit_time
;
static
time_t
last_timelimit_time
;
static
time_t
last_assert_primary_time
;
static
time_t
last_assert_primary_time
;
time_t
now
;
time_t
now
;
...
@@ -755,6 +756,7 @@ static void *_slurmctld_background(void *no_data)
...
@@ -755,6 +756,7 @@ static void *_slurmctld_background(void *no_data)
/* Let the dust settle before doing work */
/* Let the dust settle before doing work */
now
=
time
(
NULL
);
now
=
time
(
NULL
);
last_sched_time
=
last_checkpoint_time
=
last_group_time
=
now
;
last_sched_time
=
last_checkpoint_time
=
last_group_time
=
now
;
last_purge_job_time
=
now
;
last_timelimit_time
=
last_assert_primary_time
=
now
;
last_timelimit_time
=
last_assert_primary_time
=
now
;
if
(
slurmctld_conf
.
slurmd_timeout
)
{
if
(
slurmctld_conf
.
slurmd_timeout
)
{
/* We ping nodes that haven't responded in SlurmdTimeout/2,
/* We ping nodes that haven't responded in SlurmdTimeout/2,
...
@@ -830,12 +832,16 @@ static void *_slurmctld_background(void *no_data)
...
@@ -830,12 +832,16 @@ static void *_slurmctld_background(void *no_data)
unlock_slurmctld
(
part_write_lock
);
unlock_slurmctld
(
part_write_lock
);
}
}
if
(
difftime
(
now
,
last_
sched
_time
)
>=
P
ERIODIC_SCHEDULE
)
{
if
(
difftime
(
now
,
last_
purge_job
_time
)
>=
P
URGE_JOB_INTERVAL
)
{
last_
sched
_time
=
now
;
last_
purge_job
_time
=
now
;
debug2
(
"Performing purge of old job records"
);
debug2
(
"Performing purge of old job records"
);
lock_slurmctld
(
job_write_lock
);
lock_slurmctld
(
job_write_lock
);
purge_old_job
();
/* remove defunct job recs */
purge_old_job
();
unlock_slurmctld
(
job_write_lock
);
unlock_slurmctld
(
job_write_lock
);
}
if
(
difftime
(
now
,
last_sched_time
)
>=
PERIODIC_SCHEDULE
)
{
last_sched_time
=
now
;
if
(
schedule
())
if
(
schedule
())
last_checkpoint_time
=
0
;
/* force state save */
last_checkpoint_time
=
0
;
/* force state save */
}
}
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/slurmctld.h
+
4
−
0
View file @
fe8b04fb
...
@@ -108,6 +108,10 @@
...
@@ -108,6 +108,10 @@
/* Check for jobs reaching their time limit every PERIODIC_TIMEOUT seconds */
/* Check for jobs reaching their time limit every PERIODIC_TIMEOUT seconds */
#define PERIODIC_TIMEOUT 60
#define PERIODIC_TIMEOUT 60
/* Attempt to purge defunct job records and resend job kill requests
* every PURGE_JOB_INTERVAL seconds */
#define PURGE_JOB_INTERVAL 300
/* Pathname of group file record for checking update times */
/* Pathname of group file record for checking update times */
#define GROUP_FILE "/etc/group"
#define GROUP_FILE "/etc/group"
...
...
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