# US 2008/0082979 A1 · Job scheduling to maximize use of reusable resources and minimize resource deallocation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0082979 A1
- Document ID: US20080082979A1
- Status: Published application
- Kind: A1
- Application number: 11/537,429
- Filed: 2006-09-29
- Published: 2008-04-03
- Earliest claimed: 2006-09-29
- Assignees: International Business Machines Corporation
- Inventors: Richard J. Coppinger; Alexander Druyan
- Web page: https://patentgrep.com/patent/US20080082979A1

## CPC

- G06F 9/5033: {considering data affinity}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Jobs are scheduled such that resource reuse is maximized and deallocation of reusable resources is minimized. A multi-phase scheduling capability is provided in which during a first phase, weights are assigned to the reusable resources, and during a second phase, the jobs are scheduled. If reusable resources are available for the job, the job is assigned to those resources. Otherwise, a search is performed for a solution which minimizes the weight and number of reusable resources that are to be deallocated.

## Claims

### Claim 1

A computer implemented method of scheduling jobs in a processing environment, said method comprising:
assigning a plurality of weights to a plurality of reusable resources, wherein the assigning of a weight to a reusable resource is based upon a selected criteria;
determining whether one or more reusable resources of the plurality of reusable resources usable in scheduling a selected job are available for the selected job;
assigning the selected job to the one or more reusable resources, in response to the determining indicating the one or more reusable resources are available for the selected job; and
deallocating, in response to the determining indicating unavailability, at least one reusable resource of the plurality of reusable resources to provide the one or more reusable resources usable in scheduling the selected job, wherein the deallocating selects the at least one reusable resource to be deallocated based on a consideration of at least one of one or more assigned weights and a minimizing of a number of reusable resources to be deallocated.

### Claim 2 (depends on 1)

The computer implemented method of claim 1, wherein the selected criteria comprises priority of zero or more jobs capable of using the reusable resource.

### Claim 3 (depends on 2)

The computer implemented method of claim 2, wherein the higher the priority of a job that can use the reusable resource to be assigned the weight, the higher the weight assigned to that reusable reuse.

### Claim 4 (depends on 1)

The computer implemented method of claim 1, wherein the deallocating comprises selecting the at least one reusable resource to be deallocated to maximize resource reuse and minimize start time of highest priority jobs.

### Claim 5 (depends on 1)

The computer implemented method of claim 1, further comprising, in response to the determining indicating unavailability:
finding one or more solutions for scheduling the selected job, wherein each solution includes an indication of one or more reusable resources to be assigned to the selected job;
choosing a best solution from the one or more solutions, wherein the best solution includes the at least one reusable resource to be deallocated; and
assigning the selected job to the chosen solution, in response to deallocating the at least one reusable resource.

### Claim 6 (depends on 5)

The computer implemented method of claim 5, further comprising for each solution of the one or more solutions:
determining whether the solution requires a deallocation of one or more reusable resources;
setting a weight variable to a maximum weight of the one or more reusable resources of the solution requiring deallocation, in response to the determining indicating deallocation is required; and
setting a count variable to indicate how many reusable resources of the solution requires deallocation, in response to the determining indicating deallocation is required.

### Claim 7 (depends on 6)

The computer implemented method of claim 6, wherein the choosing the best solution comprises employing the weight variable and the count variable in choosing the best solution.

### Claim 8 (depends on 6)

The computer implemented method of claim 6, wherein a plurality of solutions are found, and the choosing comprises comparing the weight variable and the count variable of multiple solutions of the plurality of solutions to choose the best solution.

### Claim 9 (depends on 8)

The computer implemented method of claim 8, wherein the best solution is the solution with one or more of a minimum weight variable and a minimum count variable.

### Claim 10 (depends on 1)

The computer implemented method of claim 1, wherein the assigning comprises:
choosing a job to be scheduled;
determining whether the chosen job can be started in a reusable resource;
incrementing a variable max, in response to the determining indicating the chosen job can be started in the reusable resource, wherein max is a total number of jobs preassigned to use reusable resources;
setting a weight of the reusable resource to max, in response to the determining indicating the job can be started in the reusable resource; and
repeating the choosing, determining, incrementing and setting should there be one or more other jobs to be scheduled.

### Claim 11 (depends on 10)

The computer implemented method of claim 10, wherein the assigning further comprises:
selecting a reusable resource from one or more reusable resources;
re-setting the weight of the reusable resource, the reset weight being the weight to be used in scheduling; and
repeating the selecting and re-setting for zero or more reusable resources.

### Claim 12 (depends on 11)

The computer implemented method of claim 11, wherein the re-setting for a reusable resource comprises:
determining whether the weight of the reusable resource is zero;
setting the weight of the reusable resource to a selected value, in response to the determining indicating a zero value; and
setting the weight to max+2−the weight of the reusable resource, in response to the determining indicating a non-zero value.

### Claim 13

A system of scheduling jobs in a processing environment, said system comprising:
a plurality of reusable resources having assigned thereto a plurality of weights, wherein a weight is assigned to a reusable resource based upon a selected criteria; and
a scheduler to:
determine whether one or more reusable resources of the plurality of reusable resources usable in scheduling a selected job are available for the selected job;
assign the selected job to the one or more reusable resources, in response to the determining indicating the one or more reusable resources are available for the selected job; and
deallocate, in response to the determining indicating unavailability, at least one reusable resource of the plurality of reusable resources to provide the one or more reusable resources usable in scheduling the selected job, wherein the deallocating selects the at least one reusable resource to be deallocated based on a consideration of at least one of one or more assigned weights and a minimizing of a number of reusable resources to be deallocated.

### Claim 14 (depends on 13)

The system of claim 13, wherein the scheduler is further adapted, in response to the determining indicating unavailability, to:
find one or more solutions for scheduling the selected job, wherein each solution includes an indication of one or more reusable resources to be assigned to the selected job;
choose a best solution from the one or more solutions, wherein the best solution includes the at least one reusable resource to be deallocated; and
assign the selected job to the chosen solution, in response to deallocating the at least one reusable resource.

### Claim 15 (depends on 14)

The system of claim 14, wherein the scheduler is further adapted, for each solution of the one or more solutions, to:
determine whether the solution requires a deallocation of one or more reusable resources;
set a weight variable to a maximum weight of the one or more reusable resources of the solution requiring deallocation, in response to the determining indicating deallocation is required;
set a count variable to indicate how many reusable resources of the solution require deallocation, in response to the determining indicating deallocation is required; and
choose the best solution by employing the weight variable and the count variable in choosing the best solution.

### Claim 16 (depends on 13)

The system of claim 13, wherein to assign, the scheduler is adapted to:
choose a job to be scheduled;
determine whether the chosen job can be started in a reusable resource;
increment a variable max, in response to the determining indicating the chosen job can be started in the reusable resource, wherein max is a total number of jobs preassigned to use reusable resources;
set a weight of the reusable resource to max, in response to the determining indicating the job can be started in the reusable resource; and
repeat the choosing, determining, incrementing and setting should there be one or more other jobs to be scheduled.

### Claim 17

An article of manufacture comprising:
at least one computer usable medium having computer readable program code logic to schedule jobs in a processing environment, the computer readable program code logic comprising:
assign logic to assign a plurality of weights to a plurality of reusable resources, wherein the assigning of a weight to a reusable resource is based upon a selected criteria;
determine logic to determine whether one or more reusable resources of the plurality of reusable resources usable in scheduling a selected job are available for the selected job;
assign logic to assign the selected job to the one or more reusable resources, in response to the determining indicating the one or more reusable resources are available for the selected job; and
deallocate logic to deallocate, in response to the determining indicating unavailability, at least one reusable resource of the plurality of reusable resources to provide the one or more reusable resources usable in scheduling the selected job, wherein the deallocating selects the at least one reusable resource to be deallocated based on a consideration of at least one of one or more assigned weights and a minimizing of a number of reusable resources to be deallocated.

### Claim 18 (depends on 17)

The article of manufacture of claim 17, wherein, in response to the determine logic indicating unavailability, the logic further includes:
find logic to find one or more solutions for scheduling the selected job, wherein each solution includes an indication of one or more reusable resources to be assigned to the selected job;
choose logic to choose a best solution from the one or more solutions, wherein the best solution includes the at least one reusable resource to be deallocated; and
assign logic to assign the selected job to the chosen solution, in response to deallocating the at least one reusable resource.

### Claim 19 (depends on 18)

The article of manufacture of claim 18, wherein for each solution of the one or more solutions, the logic comprises:
determine logic to determine whether the solution requires a deallocation of one or more reusable resources;
set logic to set a weight variable to a maximum weight of the one or more reusable resources of the solution requiring deallocation, in response to the determining indicating deallocation is required; and
set logic to set a count variable to indicate how many reusable resources of the solution requires deallocation, in response to the determine logic indicating deallocation is required, and wherein the choose logic employs the weight variable and the count variable in choosing the best solution.

### Claim 20 (depends on 17)

The article of manufacture of claim 17, wherein the assign logic comprises:
choose logic to choose a job to be scheduled;
determine logic to determine whether the chosen job can be started in a reusable resource;
increment logic to increment a variable max, in response to the determining indicating the chosen job can be started in the reusable resource, wherein max is a total number of jobs preassigned to use reusable resources;
set logic to set a weight of the reusable resource to max, in response to the determining indicating the job can be started in the reusable resource; and
repeat logic to repeat the choosing, determining, incrementing and setting should there be one or more other jobs to be scheduled.
