# US 2008/0301140 A1 · Method, Apparatus and Computer Program Product for Optimizing File Accesses for an Application Executing in a Virtual Container

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

- Number: US 2008/0301140 A1
- Document ID: US20080301140A1
- Status: Published application
- Kind: A1
- Application number: 11/757,511
- Filed: 2007-06-04
- Published: 2008-12-04
- Earliest claimed: 2007-06-04
- Assignees: International Business Machines Corporation
- Inventors: Bowen L. Alpern; Glenn Ammons; Vasanth Bala; Johannes C. Laffra; Todd W. Mummert; Darrell Christopher Reimer
- Web page: https://patentgrep.com/patent/US20080301140A1

## CPC

- G06F 16/10: File systems; File servers
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a method, apparatus and a computer program of a virtual execution environment. In one aspect thereof a data processor includes a disk-based storage system and a virtual machine monitor configured to execute a program in a virtual container. The virtual machine monitor is responsive, prior to execution of the application, to record a set of files accessed during a phase change in the disk-based storage system in a manner predetermined to minimize the time needed to retrieve the set of files. The virtual machine monitor is further responsive, at the occurrence of the phase change, or prior to the occurrence of a phase change if the files are prefetched, to retrieve the files from the disk-based storage system. In a further aspect thereof there is provided a server of the virtual execution environment that includes a unit, responsive to receiving notification from the at least one virtual machine monitor of an occurrence of contemporaneous file accesses not associated with a known phase change of a virtual container, for evaluating the occurrence as a candidate phase change and, responsive to the evaluation indicating a presence of a previously unknown phase change, for adding a list of the files accessed to a phase change template for use by the same or a different virtual machine monitor during another instance of execution of the application.

## Claims

### Claim 1

A method, comprising:
prior to execution of a program in a virtual container, recording a set of files accessed during a phase change on a physical storage medium in a manner predetermined to minimize the time needed to retrieve the set of files; and
at the occurrence of the phase change, or prior to the occurrence of a phase change if the files are prefetched, accessing the physical storage medium and retrieving the files.

### Claim 2 (depends on 1)

The method of claim 1, where the set of files are identified in a phase change template received from a server.

### Claim 3 (depends on 1)

The method of claim 1, where individual files of the set of files are recorded in the order that they are accessed at the phase change.

### Claim 4 (depends on 1)

The method of claim 1, where the physical storage medium comprises at least one disk.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
during execution of the application, detecting with a virtual machine monitor an event comprising an occurrence of contemporaneous file accesses not associated with a known phase change; and
evaluating the event as a candidate phase change.

### Claim 6 (depends on 5)

The method of claim 5, in response to the evaluation indicating a presence of a previously unknown phase change, adding a list of the files accessed to a phase change template for use by the same or a different virtual machine monitor during another instance of execution of the application.

### Claim 7

A tangible computer-readable storage medium storing data representing program instructions, the execution of which result in operations comprising:
prior to execution of a program in a virtual container, recording a set of files accessed during a phase change on a physical storage medium in a manner predetermined to minimize the time needed to retrieve the set of files; and
at the occurrence of the phase change, or prior to the occurrence of a phase change if the files are prefetched, accessing the physical storage medium and retrieving the files.

### Claim 8 (depends on 7)

The tangible computer-readable storage medium of claim 7, where the set of files are identified in a phase change template received from a server.

### Claim 9 (depends on 7)

The tangible computer-readable storage medium of claim 7, where individual files of the set of files are stored in the order that they are accessed at the phase change.

### Claim 10 (depends on 7)

The tangible computer-readable storage medium of claim 7, where the physical storage medium comprises at least one disk.

### Claim 11 (depends on 7)

The tangible computer-readable storage medium of claim 7, further comprising operations of:
during execution of the application, detecting with a virtual machine monitor an event comprising an occurrence of contemporaneous file accesses not associated with a known phase change; and
evaluating the event as a candidate phase change.

### Claim 12 (depends on 11)

The tangible computer-readable storage medium of claim 11, in response to the evaluation indicating a presence of a previously unknown phase change, adding a list of the files accessed to a phase change template for use by the same or a different virtual machine monitor during another instance of execution of the application.

### Claim 13 (depends on 12)

The tangible computer-readable storage medium of claim 12, where the operations of evaluating and adding occur at a server that is coupled to the virtual machine monitor through a communications network.

### Claim 14

A data processor, comprising:
a disk-based storage system; and
a virtual machine monitor configured to execute a program in a virtual container, said virtual machine monitor responsive, prior to execution of the application, to record a set of files accessed during a phase change in the disk-based storage system in a manner predetermined to minimize the time needed to retrieve the set of files, and further responsive, at the occurrence of the phase change, or prior to the occurrence of a phase change if the files are prefetched, to retrieve the files from the disk-based storage system.

### Claim 15 (depends on 14)

The data processor of claim 14, further comprising a network interface for conducting bidirectional communications with a server, where the set of files are identified in a phase change template received from the server.

### Claim 16 (depends on 14)

The data processor of claim 14, where individual files of the set of files are stored in the order that they are accessed at the phase change.

### Claim 17 (depends on 15)

The data processor of claim 15, said virtual machine monitor being configured, during execution of the application, to detect an event comprising an occurrence of contemporaneous file accesses not associated with a known phase change and to send information regarding the event to the server as a candidate phase change.

### Claim 18 (depends on 17)

The data processor of claim 17, where said server is configured, in response to the evaluation indicating a presence of a previously unknown phase change, to add a list of the files accessed to a phase change template for use by the same or a different virtual machine monitor during another instance of execution of the application.

### Claim 19

A server of a virtual execution environment that comprises at least one virtual machine monitor, comprising:
means, responsive to receiving notification from the at least one virtual machine monitor of an occurrence of contemporaneous file accesses not associated with a known phase change of a virtual container, for evaluating the occurrence as a candidate phase change; and
means, responsive to the evaluation indicating a presence of a previously unknown phase change, for adding a list of the files accessed to a phase change template for use by the same or a different virtual machine monitor during another instance of execution of the application.

### Claim 20 (depends on 19)

The server of claim 19, where said means for evaluating comprises means for performing a static analysis of the program.
