# US 2016/0259555 A1 · Methods and systems for memory page allocation

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

- Number: US 2016/0259555 A1
- Document ID: US20160259555A1
- Status: Published application
- Kind: A1
- Application number: 14/640,944
- Filed: 2015-03-06
- Published: 2016-09-08
- Earliest claimed: 2015-03-06
- Assignees: HGST Netherlands B.V.
- Applicants: HGST Netherlands B.V.
- Inventors: Vijay KARAMCHETI; Ashwin NARASIMHA; Ashish SINGHAI
- Web page: https://patentgrep.com/patent/US20160259555A1

## CPC

- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0638: {Organizing or formatting or addressing of data}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 11/00: Error detection; Error correction; Monitoring (error detection, correction or monitoring in information storage based on relative movement between record carrier and transducer G11B20/18; monitoring, i.e. supervising the progress of recording or reproducing G11B27/36; in static stores G11C29/00)
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for improving memory page allocation are disclosed. In some embodiments, the techniques may be realized as a method for improving memory page allocation including generating, using a compression unit, compressed grains associated with compressed blocks, identifying a write page allocation unit to query, receiving, at the write page allocation unit, a query for a flash memory location to store the compressed grains, determining a flash memory location for the compressed grains, determining a parity location for the compressed grains, returning offsets indicating the flash memory location and the parity location, sending the compressed grains to the free grain location and a parity bit to the parity location as part of an atomic transaction, and recording a start location of compressed grains in a mapping.

## Claims

### Claim 1

A method for improving memory page allocation comprising:
generating, using a compression unit, compressed grains associated with compressed blocks;
identifying a write page allocation unit to query;
receiving, at the write page allocation unit, a query for a flash memory location to store the compressed grains;
determining a flash memory location for the compressed grains;
determining a parity location for the compressed grains;
returning offsets indicating the flash memory location and the parity location;
sending the compressed grains to the free grain location and a parity bit to the parity location as part of an atomic transaction; and
recording a start location of compressed grains in a mapping.

### Claim 2 (depends on 1)

The method of claim 1, wherein the compression unit identifies the write page allocation unit to query.

### Claim 3 (depends on 1)

The method of claim 1, wherein the write page allocation unit is identified based at least in part on a type of block currently being compressed by the compression unit.

### Claim 4 (depends on 3)

The method of claim 3, wherein the type of block includes at least one of: a block associated with host traffic, a block associated with Solid State Device (SSD) controller administrative traffic, and a block associated with storage infrastructure traffic.

### Claim 5 (depends on 1)

The method of claim 1 wherein the determined flash memory location for the compressed grains comprises a flash memory channel SRAM buffer location.

### Claim 6 (depends on 1)

The method of claim 1, comprising calculating the parity bit for the compressed grains using an XOR parity scheme.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining a parity location for the compressed grains comprises identifying a flash memory channel SRAM buffer location.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining the flash memory location for the compressed grains comprises identifying a flash memory line.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining the flash memory location for the compressed grains comprises identifying a memory die of the identified flash memory line.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining the flash memory location for the compressed grains comprises at least one of tracking free grains in flash memory and tracking unavailable flash memory.

### Claim 11 (depends on 1)

The method of claim 1, wherein determining a parity location for the compressed grains comprises aligning one or more parity blocks at an end of a flash page associated with the compressed grains.

### Claim 12

A computer program product comprised of a series of instructions executable on a computer, the computer program product performing a process for improving memory page allocation; the computer program implementing the steps of:
generating, using a compression unit, compressed grains associated with compressed blocks;
identifying a write page allocation unit to query;
receiving, at the write page allocation unit, a query for a flash memory location to store the compressed grains;
determining a flash memory location for the compressed grains;
determining a parity location for the compressed grains;
returning offsets indicating the flash memory location and the parity location;
sending the compressed grains to the free grain location and a parity bit to the parity location as part of an atomic transaction; and
recording a start location of compressed grains in a mapping.

### Claim 13

A system for improving memory page allocation, the system comprising:
a storage media device;
a PCIe-based device controller associated with the storage media device, wherein the PCIe-based device controller is configured to:
generate, using a compression unit, compressed grains associated with compressed blocks;
identify a write page allocation unit to query;
receive, at the write page allocation unit, a query for a flash memory location to store the compressed grains;
determine a flash memory location for the compressed grains;
determine a parity location for the compressed grains;
return offsets indicating the flash memory location and the parity location;
send the compressed grains to the free grain location and a parity bit to the parity location as part of an atomic transaction; and
record a start location of compressed grains in a mapping.

### Claim 14 (depends on 13)

The system of claim 13, wherein the compression unit identifies the write page allocation unit to query.

### Claim 15 (depends on 13)

The system of claim 13, wherein the write page allocation unit is identified based at least in part on a type of block currently being compressed by the compression unit.

### Claim 16 (depends on 15)

The system of claim 15, wherein the type of block includes at least one of: a block associated with host traffic, a block associated with Solid State Device (SSD) controller administrative traffic, and infrastructure traffic.

### Claim 17 (depends on 13)

The system of claim 13, wherein the determined flash memory location for the compressed grains comprises a flash memory channel SRAM buffer location.

### Claim 18 (depends on 13)

The system of claim 13, further comprising calculating the parity bit for the compressed grains using an XOR parity scheme.

### Claim 19 (depends on 13)

The system of claim 13, wherein determining a parity location for the compressed grains comprises identifying a flash memory channel SRAM buffer location.

### Claim 20 (depends on 13)

The system of claim 13, wherein determining the flash memory location for the compressed grains comprises identifying a flash memory line.

### Claim 21 (depends on 20)

The system of claim 20, wherein determining the flash memory location for the compressed grains comprises identifying a memory die of the identified flash memory line.

### Claim 22 (depends on 13)

The system of claim 13, wherein determining a parity location for the compressed grains comprises aligning one or more parity blocks at an end of a flash page associated with the compressed grains.
