# US 2009/0276205 A1 · Stablizing operation of an emulated system

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

- Number: US 2009/0276205 A1
- Document ID: US20090276205A1
- Status: Published application
- Kind: A1
- Application number: 12/114,233
- Filed: 2008-05-02
- Published: 2009-11-05
- Earliest claimed: 2008-05-02
- Inventors: Andrew T. Jennings; Michael J. Rieschl; David W. Schroth
- Web page: https://patentgrep.com/patent/US20090276205A1

## CPC

- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/45554: {Instruction set architectures of guest OS and hypervisor or native processor differ, e.g. Bochs or VirtualPC on PowerPC MacOS}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 2209/504: Resource capping
- G06F 2209/508: Monitor
- 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

Disclosure of approaches for stabilizing an emulated system. In one approach, a first operating system (OS) is executed on an instruction processor, the first OS including instructions native to the instruction processor. A second OS and a plurality of application programs are emulated on the first OS. The second OS polls the first OS for memory statistics of the first OS. The memory statistics indicate a current state of operating parameters of the memory of the data processing system used by the first OS in managing the data processing system. The second OS controls a number of the application programs allowed to execute in response to the memory statistics provided by the first OS to the second OS.

## Claims

### Claim 1

A method for stabilizing an emulated system, comprising:
executing a first operating system (OS) on an instruction processor of a data processing system, wherein the first OS includes instructions of a first instruction set that are native to the instruction processor;
emulating a second OS and a plurality of application programs on the first OS on the data processing system, wherein the second OS and application programs include instructions of a second instruction set that are not native to the instruction processor;
polling the first OS by the emulated second OS for memory statistics, wherein the memory statistics indicate a current state of operating parameters of the memory of the data processing system used by the first OS in managing the data processing system; and
controlling a number of the application programs allowed to execute by the second OS in response to the memory statistics provided by the first OS to the second OS.

### Claim 2 (depends on 1)

The method of claim 1, wherein the controlling includes denying initiation of execution of an additional application program beyond currently executing ones of the plurality of application programs.

### Claim 3 (depends on 1)

The method of claim 1, wherein the controlling includes terminating execution of one or more of currently executing ones of the plurality of application programs.

### Claim 4 (depends on 3)

The method of claim 3, wherein the terminated one or more application programs is an interactive program, the method further comprising:
after the terminating step, requesting by the emulated second OS to the first OS for the first OS to provide the memory statistics, and determining by the second OS whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable; and
in response to the current state of the operating parameters being unacceptable, repeating the terminating and requesting steps until the current state of the operating parameters is acceptable.

### Claim 5 (depends on 4)

The method of claim 4, wherein the terminating and requesting steps are repeated until there is no interactive program available to terminate.

### Claim 6 (depends on 5)

The method of claim 5, wherein at least one currently executing application program is a batch program, the method further comprising:
in response to the current state of the operating parameters being unacceptable and there being no interactive program available to terminate, the terminating step terminates execution of at least one currently executing batch program.

### Claim 7 (depends on 3)

The method of claim 3, wherein the plurality of application programs include interactive programs and batch programs, wherein the terminating includes selecting interactive programs for termination before selecting batch programs for termination.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining by the second OS whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable; and
wherein the controlling includes,
denying initiation of execution of an additional application program beyond currently executing ones of the plurality of application programs in response to the current state being unacceptable, and
allowing initiation of execution of an additional application program beyond currently executing ones of the plurality of application programs in response to the current state being acceptable.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
determining by the second OS whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable; and
in response to the current state being unacceptable, returning by the second OS to the first OS, memory that is allocated to the second OS and that the second OS has not allocated to any of the plurality of application programs.

### Claim 10

An emulation system, comprising:
a data processing system including at least one instruction processor coupled to a memory;
a first operating system (OS) executing on the at least one instruction processor, wherein the first OS includes instructions of a first instruction set that are native to the instruction processor;
means for emulating a second OS and a plurality of application programs on the first OS, wherein the second OS and application programs include instructions of a second instruction set that are not native to the instruction processor;
means for periodically requesting by the emulated second OS for memory statistics from the first OS, wherein the memory statistics indicate a current state of operating parameters of the memory of the data processing system used by the first OS in managing the data processing system; and
means for limiting execution of the application programs by the second OS in response to the memory statistics provided by the first OS to the second OS.

### Claim 11

An emulation system, comprising:
a data processing system including at least one instruction processor coupled to a memory, and a first operating system (OS) executing on the at least one instruction processor, wherein the first OS includes instructions of a first instruction set that are native to the instruction processor;
an instruction processor emulator executable on the at least one instruction processor, wherein the instruction processor emulator emulates execution of instructions of a second instruction set that are not native to the at least one instruction processor;
a second OS and a plurality of application programs emulated on the instruction processor emulator, wherein the second OS and application programs include instructions of a second instruction set that are not native to the instruction processor;
wherein the second OS executes program code that performs the steps including,
periodically requesting memory statistics from the first OS, wherein the memory statistics indicate a current state of operating parameters of the memory of the data processing system used by the first OS in managing the data processing system;
determining whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable;
selecting, in response to the current state being unacceptable, between terminating one or more of the plurality of application programs and returning to the first OS memory that is allocated to the second OS; and
performing the selected one of terminating one or more application programs and freeing memory.

### Claim 12 (depends on 1)

The emulation system of claim 1, wherein the selecting includes selecting between denying initiation of execution of an additional application program beyond currently executing ones of the plurality of application programs, terminating one or more of the plurality of application programs and returning to the first OS memory that is allocated to the second OS.

### Claim 13 (depends on 12)

The emulation system of claim 12, wherein the terminated one or more application programs is an interactive program, the steps further including,
after the terminating step, requesting by the emulated second OS to the first OS for the first OS to provide the memory statistics, and determining by the second OS whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable; and
in response to the current state of the operating parameters being unacceptable, repeating the terminating and requesting steps until the current state of the operating parameters is acceptable.

### Claim 14 (depends on 13)

The emulation system of claim 13, wherein the terminating and requesting steps are repeated until there is no interactive program available to terminate.

### Claim 15 (depends on 14)

The emulation system of claim 14, wherein at least one currently executing application program is a batch program, the steps further including, in response to the current state of the operating parameters being unacceptable and there being no interactive program available to terminate, the terminating step terminates execution of at least one currently executing batch program.

### Claim 16 (depends on 12)

The emulation system of claim 12, wherein the plurality of application programs include interactive programs and batch programs, wherein the terminating includes selecting interactive programs for termination before selecting batch programs for termination.

### Claim 17 (depends on 11)

The emulation system of claim 11, the steps further including,
determining by the second OS whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable;
denying initiation of execution of an additional application program beyond currently executing ones of the plurality of application programs in response to the current state being unacceptable, and
allowing initiation of execution of an additional application program beyond currently executing ones of the plurality of application programs in response to the current state being acceptable.

### Claim 18 (depends on 11)

The emulation system of claim 11, the steps further including,
determining by the second OS whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable, and
in response to the current state being unacceptable, returning by the second OS to the first OS, memory that is allocated to the second OS and that the second OS has not allocated to any of the plurality of application programs.

### Claim 19 (depends on 11)

The emulation system of claim 11, wherein the terminated one or more application programs is an interactive program, the steps further including,
after the terminating step, requesting by the emulated second OS to the first OS for the first OS to provide the memory statistics, and determining by the second OS whether the current state of operating parameters indicated by the memory statistics is acceptable or unacceptable, and
in response to the current state of the operating parameters being unacceptable, repeating the terminating and requesting steps until the current state of the operating parameters is acceptable.

### Claim 20 (depends on 19)

The emulation system of claim 19, wherein the terminating and requesting steps are repeated until there is no interactive program available to terminate.
