# US 2006/0190687 A1 · Implementing memory evacuation using copy-on-write

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

- Number: US 2006/0190687 A1
- Document ID: US20060190687A1
- Status: Published application
- Kind: A1
- Application number: 11/061,391
- Filed: 2005-02-18
- Published: 2006-08-24
- Earliest claimed: 2005-02-18
- Assignees: Hewlett-Packard Development Company, L.P.
- Inventors: Clifford Mather
- Web page: https://patentgrep.com/patent/US20060190687A1

## CPC

- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 2212/656: Address space sharing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for evacuating a source memory page. The method includes ascertaining a first set of processes, the first set of processes representing processes currently accessing the source memory page. The method also includes manipulating parameters associated with the source memory page to enable at least one copy-on-write procedure to be performed on the source memory page irrespective whether the first set of processes has only one process or the first set of processes has multiple processes.

## Claims

### Claim 1

A method for evacuating a source memory page, comprising:
ascertaining a first set of processes, said first set of processes representing processes currently accessing said source memory page; and
manipulating parameters associated with said source memory page to enable at least one copy-on-write procedure to be performed on said source memory page irrespective whether said first set of processes has only one process or said first set of processes has multiple processes.

### Claim 2 (depends on 1)

The method of claim 1 further comprising performing said copy-on-write procedure for a sufficient number of times such that each process in said set of processes is redirected to a respective target memory page whose content is copied from said source memory page and such that said source memory page is free from access by any process of said set of processes after said performing.

### Claim 3 (depends on 2)

The method of claim 2 further comprising decrementing, after said performing, a value of said sharer attribute associated with said source memory page by 1, said value indicating the number of processes that accesses said source memory page after said performing.

### Claim 4 (depends on 1)

The method of claim 1 wherein said manipulating includes incrementing a value of a sharer attribute associated with said source memory page by 1, said value indicating the number of processes that accesses said source memory page prior to performing said copy-on-write procedure.

### Claim 5 (depends on 1)

The method of claim 1 wherein said manipulating includes modifying, prior to performing said copy-on-write procedure, a copy-on-write attribute associated with said source memory page, said modifying enabling said copy-on-write procedure to execute on said source memory page.

### Claim 6 (depends on 1)

The method of claim 1 wherein said manipulating includes changing an access attribute associated with said source memory page to read-only prior to performing said copy-on-write procedure.

### Claim 7 (depends on 1)

The method of claim 1 wherein said copy-on-write procedure represents a procedure executed using a UNIX operating system.

### Claim 8 (depends on 1)

The method of claim 1 wherein said copy-on-write procedure represents a procedure executed by a Linux operating system.

### Claim 9

A method for evacuating a source memory page, comprising:
ascertaining a first set of processes, said first set of processes representing processes currently accessing said source memory page;
for each process in said first set of processes, performing steps a) through c) as follows:
a) incrementing a first value of a sharer attribute associated with said source memory page by 1, said first value indicating the number of processes that accesses said source memory page;
b) after said increasing, invoking copy-on-write procedure for said source memory page, thereby allowing said each process to be redirected to a respective target memory page whose content is copied from said source memory page by said copy-on-write procedure; and
c) after said invoking, decrementing a second value of said sharer attribute associated with said source memory page by 1, said second value indicating the number of processes that accesses said source memory page after said invoking.

### Claim 10 (depends on 9)

The method of claim 9 further comprising modifying, prior to said invoking, a copy-on-write attribute associated with said source memory page to enable said copy-on-write procedure to execute on said source memory page.

### Claim 11 (depends on 10)

The method of claim 10 further comprising changing an access attribute associated with said source memory page to read-only prior to said invoking.

### Claim 12 (depends on 9)

The method of claim 9 further comprising designating said source memory page a free source memory page after said steps a) through c) have been performed for all processes in said first set of processes.

### Claim 13 (depends on 9)

The method of claim 9 wherein said copy-on-write procedure represents a procedure executed using a UNIX operating system.

### Claim 14 (depends on 9)

The method of claim 9 wherein said copy-on-write procedure represents a procedure executed by a Linux operating system.

### Claim 15 (depends on 9)

The method of claim 9 wherein said copy-on-write procedure decrements said first value by 1.

### Claim 16 (depends on 9)

The method of claim 9 wherein said copy-on-write procedure restores said access attribute to an access attribute value that existed prior to said invoking.

### Claim 17 (depends on 9)

The method of claim 9 wherein said copy-on-write procedure restores said copy-on-write attribute to a copy-on-write attribute value that existed prior to said invoking.

### Claim 18

An article of manufacture comprising a program storage medium having computer readable code embodied therein, said computer readable code being configured to evacuate a source memory page, comprising:
computer readable code ascertaining a first set of processes, said first set of processes representing processes currently accessing said source memory page; and
computer readable code for manipulating parameters associated with said source memory page to enable at least one copy-on-write procedure to be performed on said source memory page irrespective whether said first set of processes has only one process or said first set of processes has multiple processes.

### Claim 19 (depends on 18)

The article of manufacture of claim 18 further comprising computer readable code for performing said copy-on-write procedure for a sufficient number of times such that each process in said set of processes is redirected to a respective target memory page whose content is copied from said source memory page and such that said source memory page is free from access by any process of said set of processes after said performing.

### Claim 20 (depends on 19)

The article of manufacture of claim 19 further comprising computer readable code for decrementing, after said performing, a value of said sharer attribute associated with said source memory page by 1, said value indicating the number of processes that accesses said source memory page after said performing.

### Claim 21 (depends on 18)

The article of manufacture of claim 18 wherein said computer readable code for said manipulating includes computer readable code for incrementing a value of a sharer attribute associated with said source memory page by 1, said value indicating the number of processes that accesses said source memory page prior to performing said copy-on-write procedure.

### Claim 22 (depends on 18)

The article of manufacture of claim 18 wherein said manipulating includes computer readable code for modifying, prior to performing said copy-on-write procedure, a copy-on-write attribute associated with said source memory page, said modifying enabling said copy-on-write procedure to execute on said source memory page.

### Claim 23 (depends on 18)

The article of manufacture of claim 18 wherein said computer readable code for manipulating includes computer readable code for changing an access attribute associated with said source memory page to read-only prior to performing said copy-on-write procedure.
