Skip to content

Commit

Permalink
mxqd: Limit maximum number of jobs when requested by user
Browse files Browse the repository at this point in the history
this finally implements mariux64#28
  • Loading branch information
mariux committed Sep 22, 2015
1 parent 78065a2 commit 603a8c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ void group_init(struct mxq_group_list *group)
}
jobs_max /= g->job_threads;

/* limit maximum number of jobs on user/group request */
if (jobs_max > g->job_max_per_node)
jobs_max = g->job_max_per_node;

slots_max = jobs_max * slots_per_job;
memory_max = jobs_max * g->job_memory;

Expand Down

0 comments on commit 603a8c8

Please sign in to comment.