Skip to content

Commit

Permalink
PP-149: Fix scheduler performance while preempting jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
arungrover committed Jun 29, 2016
1 parent 8357696 commit b6947ba
Show file tree
Hide file tree
Showing 3 changed files with 335 additions and 81 deletions.
7 changes: 7 additions & 0 deletions src/scheduler/constant.h
Expand Up @@ -82,6 +82,13 @@ enum skip
SKIP_NON_NORMAL_JOBS
};

/* return value of select_index_to_preempt function */
enum select_job_status
{
NO_JOB_FOUND = -1, /* fails to find a job to preempt */
ERR_IN_SELECT = -2 /* error while selecting a job to preempt */
};

#define INIT_ARR_SIZE 2048

/* Unspecified resource value */
Expand Down

1 comment on commit b6947ba

@arungrover
Copy link
Contributor Author

@arungrover arungrover commented on b6947ba Jun 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test case & test results are present in the JIRA ticket - "https://pbspro.atlassian.net/browse/PP-149"

Please sign in to comment.