# US 2006/0041735 A1 · Pretranslating input/output buffers in environments with multiple page sizes

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

- Number: US 2006/0041735 A1
- Document ID: US20060041735A1
- Status: Published application
- Kind: A1
- Application number: 10/920,907
- Filed: 2004-08-18
- Published: 2006-02-23
- Earliest claimed: 2004-08-18
- Assignees: International Business Machines Corporation
- Inventors: David Alan Hepkin
- Web page: https://patentgrep.com/patent/US20060041735A1

## CPC

- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 2212/652: Page size control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Pretranslating input/output buffers in environments with multiple page sizes that include determining a pretranslation page size for an input/output buffer under an operating system that supports more than one memory page size, identifying pretranslation page frame numbers for the buffer in dependence upon the pretranslation page size, pretranslating the pretranslation page frame numbers to physical page numbers, and storing the physical page numbers in association with the pretranslation page size. Typical embodiments also include accessing the buffer, including translating a virtual memory address in the buffer to a physical memory address in dependence upon the physical page numbers and the pretranslation page size and accessing the physical memory of the buffer at the physical memory address.

## Claims

### Claim 1

A method for pretranslating input/output buffers in environments with multiple page sizes, the method comprising:
determining a pretranslation page size for an input/output buffer under an operating system that supports more than one memory page size;
identifying pretranslation page frame numbers for the buffer in dependence upon the pretranslation page size;
pretranslating the pretranslation page frame numbers to physical page numbers; and
storing the physical page numbers in association with the pretranslation page size.

### Claim 2 (depends on 1)

The method of claim 1 wherein the buffer further comprises a quantity of memory organized in pages having virtual page frame numbers and having at least one memory page size.

### Claim 3 (depends on 1)

The method of claim 1 wherein:
the buffer comprises pages of memory having only one page size, and
determining a pretranslation page size further comprises selecting as the pretranslation page size the only one page size of the pages of memory in the buffer.

### Claim 4 (depends on 1)

The method of claim 1 wherein:
the buffer comprises pages of memory having two or more page sizes, and
determining a pretranslation page size further comprises selecting as the pretranslation page size a smallest page size from among the page sizes of the pages of memory in the buffer.

### Claim 5 (depends on 4)

The method of claim 4 wherein identifying pretranslation page frame numbers for the buffer in dependence upon the pretranslation page size further comprises identifying pretranslation page frame numbers for the buffer that are located inside a memory page.

### Claim 6 (depends on 1)

The method of claim 1 further comprising accessing the buffer, including:
translating a virtual memory address in the buffer to a physical memory address in dependence upon the physical page numbers stored in association with the pretranslation page size; and
accessing the physical memory of the buffer at the physical memory address.

### Claim 7

A system for pretranslating input/output buffers in environments with multiple page sizes, the system comprising:
means for determining a pretranslation page size for an input/output buffer under an operating system that supports more than one memory page size;
means for identifying pretranslation page frame numbers for the buffer in dependence upon the pretranslation page size;
means for pretranslating the pretranslation page frame numbers to physical page numbers; and
means for storing the physical page numbers in association with the pretranslation page size.

### Claim 8 (depends on 7)

The system of claim 7 wherein the buffer further comprises a quantity of memory organized in pages having virtual page frame numbers and having at least one memory page size.

### Claim 9 (depends on 7)

The system of claim 7 wherein:
the buffer comprises pages of memory having only one page size, and means for determining a pretranslation page size further comprises means for selecting as the pretranslation page size the only one page size of the pages of memory in the buffer.

### Claim 10 (depends on 7)

The system of claim 7 wherein:
the buffer comprises pages of memory having two or more page sizes, and
means for determining a pretranslation page size further comprises means for selecting as the pretranslation page size a smallest page size from among the page sizes of the pages of memory in the buffer.

### Claim 11 (depends on 10)

The system of claim 10 wherein means for identifying pretranslation page frame numbers for the buffer in dependence upon the pretranslation page size further comprises means for identifying pretranslation page frame numbers for the buffer that are located inside a memory page.

### Claim 12 (depends on 7)

The system of claim 7 further comprising means for accessing the buffer, including:
means for translating a virtual memory address in the buffer to a physical memory address in dependence upon the physical page numbers stored in association with the pretranslation page size; and
means for accessing the physical memory of the buffer at the physical memory address.

### Claim 13

A computer program product for pretranslating input/output buffers in environments with multiple page sizes, the computer program product comprising:
a recording medium;
means, recorded on the recording medium, for determining a pretranslation page size for an input/output buffer under an operating system that supports more than one memory page size;
means, recorded on the recording medium, for identifying pretranslation page frame numbers for the buffer in dependence upon the pretranslation page size;
means, recorded on the recording medium, for pretranslating the pretranslation page frame numbers to physical page numbers; and
means, recorded on the recording medium, for storing the physical page numbers in association with the pretranslation page size.

### Claim 14 (depends on 13)

The computer program product of claim 13 wherein the buffer further comprises a quantity of memory organized in pages having virtual page frame numbers and having at least one memory page size.

### Claim 15 (depends on 13)

The computer program product of claim 13 wherein:
the buffer comprises pages of memory having only one page size, and
means, recorded on the recording medium, for determining a pretranslation page size further comprises means, recorded on the recording medium, for selecting as the pretranslation page size the only one page size of the pages of memory in the buffer.

### Claim 16 (depends on 13)

The computer program product of claim 13 wherein:
the buffer comprises pages of memory having two or more page sizes, and
means, recorded on the recording medium, for determining a pretranslation page size further comprises means, recorded on the recording medium, for selecting as the pretranslation page size a smallest page size from among the page sizes of the pages of memory in the buffer.

### Claim 17 (depends on 16)

The computer program product of claim 16 wherein means, recorded on the recording medium, for identifying pretranslation page frame numbers for the buffer in dependence upon the pretranslation page size further comprises means, recorded on the recording medium, for identifying pretranslation page frame numbers for the buffer that are located inside a memory page.

### Claim 18 (depends on 13)

The computer program product of claim 13 further comprising means, recorded on the recording medium, for accessing the buffer, including:
means, recorded on the recording medium, for translating a virtual memory address in the buffer to a physical memory address in dependence upon the physical page numbers stored in association with the pretranslation page size; and
means, recorded on the recording medium, for accessing the physical memory of the buffer at the physical memory address.
