# US 2008/0313639 A1 · Policy based scheduling of software applications

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

- Number: US 2008/0313639 A1
- Document ID: US20080313639A1
- Status: Published application
- Kind: A1
- Application number: 11/762,708
- Filed: 2007-06-13
- Published: 2008-12-18
- Earliest claimed: 2007-06-13
- Inventors: KRISHNA KUMAR; Murali Krishna; Thiruvalluvan M.G.
- Web page: https://patentgrep.com/patent/US20080313639A1

## CPC

- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 2209/504: Resource capping
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method and apparatus for using policies to limit resource usage by software applications is disclosed herein. The policies define rules that specify a maximum amount of a resource that a particular application is allowed to use given the current state of the computer system, in one embodiment. The state can be defined based on conditions such as user activity, resource usage, time of day, etc. A scheduler monitors the computer system and the application and enforces the policies to control the resource usage of each application. If the scheduler determines that an application has been using more of a particular resource than is allowed then the scheduler takes some action to reduce resource usage until actual resource usage is at or below allowed resource usage. Each application has its own set of policies associated that allow the application to define rules to limit resource usage, in one embodiment.

## Claims

### Claim 1

A method of scheduling in a computer system, comprising:
monitoring one or more conditions of the computer system;
based on the one or more conditions and a policy associated with an application, determining a maximum allowed usage of a particular resource by the application;
determining whether actual usage of the particular resource by the application is greater than the maximum allowed usage; and
in response to determining that the actual resource usage is greater than the maximum allowed usage, performing one or more actions to reduce the actual resource usage until the actual resource usage is at or below the maximum allowed usage.

### Claim 2 (depends on 1)

The method of claim 1, wherein performing one or more actions includes changing a scheduling priority of an activity of the application.

### Claim 3 (depends on 1)

The method of claim 1, wherein performing one or more actions includes controlling execution of the application in order to reduce usage of the particular resource by the application.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the actual usage of the particular resource by the application includes usage of the particular resource by a process external to the application that the application invokes; and
performing one or more actions includes controlling execution of the application in order to reduce usage of the particular resource by the process external to the application.

### Claim 5 (depends on 1)

The method of claim 1, wherein performing one or more actions includes controlling usage of another resource by the application in order to reduce usage of the particular resource by the application.

### Claim 6 (depends on 1)

The method of claim 1, wherein the application is divided into one or more activities that each have a specified urgency, and determining the maximum allowed usage is based on the urgency of each of the activities that is currently running.

### Claim 7 (depends on 6)

The method of claim 6, further comprising the application altering an urgency of one or more of its activities.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
based on user input, establishing the maximum allowed usage for the particular resource by the application for a state of the computer system.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
based on user input, determining a value for a condition of the computer system that defines a state of the computer system, wherein the maximum allowed usage is based on the state.

### Claim 10

A computer readable storage medium comprising instructions which when executed on a processor cause the processor to execute the steps of:
monitoring one or more conditions of the computer system;
based on the one or more conditions and a policy associated with an application, determining a maximum allowed usage of a particular resource by the application;
determining whether actual usage of the particular resource by the application is greater than the maximum allowed usage; and
in response to determining that the actual resource usage is greater than the maximum allowed usage, performing one or more actions to reduce the actual resource usage until the actual resource usage is at or below the maximum allowed usage.

### Claim 11 (depends on 10)

The computer readable storage medium of claim 10, wherein the instructions which when executed on the processor cause the processor to execute the step of performing one or more actions includes instructions which when executed on the processor cause the processor to execute the step of changing a scheduling priority of an activity of the application.

### Claim 12 (depends on 10)

The computer readable storage medium of claim 10, wherein the instructions which when executed on the processor cause the processor to execute the step of performing one or more actions includes instructions which when executed on the processor cause the processor to execute the step of controlling execution of the application in order to reduce usage of the particular resource by the application.

### Claim 13 (depends on 10)

The computer readable storage medium of claim 10, wherein:
the actual usage of the particular resource by the application includes usage of the particular resource by a process external to the application that the application invokes; and
the instructions which when executed on the processor cause the processor to execute the step of performing one or more actions include instructions which when executed on the processor cause the processor to execute the step of controlling execution of the application in order to reduce usage of the particular resource by the process external to the application.

### Claim 14 (depends on 10)

The computer readable storage medium of claim 10, wherein the instructions which when executed on the processor cause the processor to execute the step of performing one or more actions include instructions which when executed on the processor cause the processor to execute the step of controlling usage of another resource by the application in order to reduce usage of the particular resource by the application.

### Claim 15 (depends on 10)

The computer readable storage medium of claim 10, wherein the application is divided into one or more activities that each have a specified urgency, and wherein the instructions which when executed on the processor cause the processor to execute the step of determining the maximum allowed usage include instructions which when executed on the processor cause the processor to execute the step of determining the maximum allowed usage based on the urgency of each of the activities that is currently running.

### Claim 16 (depends on 15)

The computer readable storage medium of claim 15, further comprising instructions which when executed on the processor cause the processor to execute the step of the application altering an urgency of one or more of its activities.

### Claim 17 (depends on 10)

The computer readable storage medium of claim 10, further comprising instructions which when executed on the processor cause the processor to execute the step of:
based on user input, establishing the maximum allowed usage for the particular resource by the application for a state of the computer system.

### Claim 18 (depends on 10)

The computer readable storage medium of claim 10, further comprising instructions which when executed on the processor cause the processor to execute the step of:
based on user input, determining a value for a condition of the computer system that defines a state of the computer system, wherein the maximum allowed usage is based on the state.

### Claim 19

A system comprising:
a processor; and
a computer readable storage medium coupled to the processor, the computer readable medium comprising instructions which when executed on a processor cause the processor to execute the steps of:
monitoring one or more conditions of the computer system;
based on the one or more conditions and a policy associated with an application, determining a maximum allowed usage of a particular resource by the application;
determining whether actual usage of the particular resource by the application is greater than the maximum allowed usage; and
in response to determining that the actual resource usage is greater than the maximum allowed usage, performing one or more actions to reduce the actual resource usage until the actual resource usage is at or below the maximum allowed usage.

### Claim 20 (depends on 19)

The system of claim 19, wherein the instructions which when executed on the processor cause the processor to execute the step of performing one or more actions includes instructions which when executed on the processor cause the processor to execute the step of controlling execution of the application in order to reduce usage of the particular resource by the application.
