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
552c01d7
Commit
552c01d7
authored
14 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
remove logic to remove multiple jobs at a time as part of backfill scheduling logic.
effect was minimal.
parent
66042e14
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/plugins/select/cons_res/select_cons_res.c
+1
-29
1 addition, 29 deletions
src/plugins/select/cons_res/select_cons_res.c
with
1 addition
and
29 deletions
src/plugins/select/cons_res/select_cons_res.c
+
1
−
29
View file @
552c01d7
...
...
@@ -109,23 +109,6 @@
#define NODEINFO_MAGIC 0x82aa
/* The following parameters can be used to speed up the logic used to determine
* when and where a pending job will be able to start, but it will reduce
* the accuracy with which backfill scheduling is performed. It may improve
* performance of sched/backfill considerably if there are many running jobs.
* The original logic would simulate removing running jobs one at a time from
* an emulated system and test if the pending job could start on the resources
* then available. The new logic will remove jobs individually until
* SCHED_SKIP_START jobs have been removed then remove SCHED_SKIP_COUNT jobs
* at each iteration until the job can be scheduled. */
#ifndef SCHED_SKIP_START
#define SCHED_SKIP_START 50
#endif
#ifndef SCHED_SKIP_COUNT
#define SCHED_SKIP_COUNT 10
#endif
/* These are defined here so when we link with something other than
* the slurmctld we will have these symbols defined. They will get
* overwritten when linking with the slurmctld.
...
...
@@ -1484,12 +1467,8 @@ static int _will_run_test(struct job_record *job_ptr, bitstr_t *bitmap,
}
/* Remove the running jobs one at a time from exp_node_cr and try
* scheduling the pending job after each one. For larger job counts,
* remove multiple jobs between tests to reduce overhead. */
* scheduling the pending job after each one. */
if
(
rc
!=
SLURM_SUCCESS
)
{
int
jobs_rm_last_test
=
0
;
int
jobs_rm_total
=
0
;
int
jobs_run_total
=
list_count
(
cr_job_list
);
list_sort
(
cr_job_list
,
_cr_job_list_sort
);
job_iterator
=
list_iterator_create
(
cr_job_list
);
if
(
job_iterator
==
NULL
)
...
...
@@ -1497,13 +1476,6 @@ static int _will_run_test(struct job_record *job_ptr, bitstr_t *bitmap,
while
((
tmp_job_ptr
=
list_next
(
job_iterator
)))
{
_rm_job_from_res
(
future_part
,
future_usage
,
tmp_job_ptr
,
0
);
jobs_rm_total
++
;
jobs_rm_last_test
++
;
if
((
jobs_rm_total
>
SCHED_SKIP_START
)
&&
(
jobs_rm_total
<
jobs_run_total
)
&&
(
jobs_rm_last_test
<
SCHED_SKIP_COUNT
))
continue
;
jobs_rm_last_test
=
0
;
bit_or
(
bitmap
,
orig_map
);
rc
=
cr_job_test
(
job_ptr
,
bitmap
,
min_nodes
,
max_nodes
,
req_nodes
,
...
...
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