# US 2017/0364446 A1 · Compression and caching for logical-to-physical storage address mapping tables

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

- Number: US 2017/0364446 A1
- Document ID: US20170364446A1
- Status: Published application
- Kind: A1
- Application number: 15/183,657
- Filed: 2016-06-15
- Published: 2017-12-21
- Earliest claimed: 2016-06-15
- Assignees: HGST Netherlands B.V.
- Applicants: HGST Netherlands B.V.
- Inventors: Kien PHAM; Gunter KNESTELE; Janak KOSHIA; Maliheh SARIKHANI; Jeffrey FURLONG
- Web page: https://patentgrep.com/patent/US20170364446A1

## CPC

- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0871: Allocation or management of cache space
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/401: Compressed data
- G06F 2212/466: Metadata, control data
- G06F 2212/657: Virtual address space management
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage device that maps logical addresses to physical addresses includes a memory that stores machine instructions and a processor coupled to the memory that executes the machine instructions to store a compressed mapping table in the memory. The compressed mapping table correlates logical addresses to locations in a storage. The storage device also stores a bundle of uncompressed mapping table entries starting at a first location in a cache and maps a first logical address associated with the uncompressed mapping table entry to the first location.

## Claims

### Claim 1

A storage device for logical-to-physical address mapping, comprising:
a memory that stores machine instructions; and
a processor coupled to the memory that executes the machine instructions to:
construct a mapping table comprising a plurality of table entries, wherein the mapping table is indexed by logical addresses and each of the table entries comprises a corresponding physical address in a storage,
replace a first sequence of the plurality of table entries comprising sequential physical addresses with a first compressed mapping table entry in the mapping table to generate a compressed mapping table,
store the compressed mapping table in the memory,
store a plurality of uncompressed mapping table entries starting at a first location in a cache, and
map a first logical address associated with a first uncompressed mapping table entry to the first location in the cache.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the processor further executes the machine instructions to:
determine a second logical address is not currently mapped to the cache,
retrieve a compressed mapping table entry associated with the second logical address from the compressed mapping table,
decompress the compressed mapping table entry to yield a plurality of uncompressed mapping table entries,
store the plurality of uncompressed mapping table entries starting at a second location in the cache, and
map the second logical address to the second location.

### Claim 3 (depends on 1)

The storage device of claim 1, wherein the processor further executes the machine instructions to:
determine the cache lacks sufficient available space,
evict the mapping of the first logical address to the first location,
compress the plurality of uncompressed mapping table entries to yield a compressed mapping table entry, and
update the compressed mapping table with the compressed mapping table entry.

### Claim 4 (depends on 1)

The storage device of claim 1, wherein the processor further executes the machine instructions to transfer the compressed mapping table to a nonvolatile memory at power down.

### Claim 5 (depends on 1)

The storage device of claim 1, wherein the processor further executes the machine instructions to format the plurality of mapping table entries, each comprising a distribution of bits among a plurality of designations correlated with an organization of the storage.

### Claim 6 (depends on 1)

The storage device of claim 1, wherein the processor further executes the machine instructions to maintain a lookup table including a lookup entry corresponding to a bundle space, wherein the lookup entry indicates whether or not an uncompressed mapping table entry spans an additional bundle space.

### Claim 7 (depends on 1)

The storage device of claim 1, wherein the compressed mapping table comprises a plurality of bundle spaces of equal size, each of the uncompressed mapping table entries corresponding to one or more of the bundle spaces.

### Claim 8 (depends on 1)

The storage device of claim 1, wherein the memory comprises a dynamic random access memory, the cache comprises a static random access memory, and the storage comprises a NAND-flash memory.

### Claim 9 (depends on 8)

The storage device of claim 8, wherein the logical addresses comprise logical block addresses received from a host computer and the locations in the storage comprise physical blocks.

### Claim 10

A method for logical-to-physical address mapping, comprising:
constructing a mapping table comprising a plurality of table entries, wherein the mapping table is indexed by logical addresses and each of the table entries comprises a corresponding physical address in a storage;
replacing a first sequence of the plurality of table entries comprising sequential physical addresses with a first compressed mapping table entry in the mapping table to generate a compressed mapping table;
storing the compressed mapping table in a memory;
storing a plurality of uncompressed mapping table entries starting at a first location in a cache; and
mapping a first logical address associated with a first uncompressed mapping table entry to the first location in the cache.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
determining a second logical address is not currently mapped to the cache;
retrieving a compressed mapping table entry associated with the second logical address from the compressed mapping table;
decompressing the compressed mapping table entry to yield a plurality of uncompressed mapping table entries;
storing the plurality of uncompressed mapping table entries starting at a second location in the cache; and
mapping the second logical address to the second location.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
determining the cache lacks sufficient available space;
evicting the mapping of the first logical address to the first location;
compressing the plurality of uncompressed mapping table entries to yield a compressed mapping table entry; and
updating the compressed mapping table with the compressed mapping table entry.

### Claim 13 (depends on 10)

The method of claim 10, further comprising formatting a plurality of uncompressed mapping table entries, each comprising a distribution of bits among a plurality of designations correlated with an organization of the storage.

### Claim 14 (depends on 10)

The method of claim 10, further comprising transferring the compressed mapping table to a nonvolatile memory at power down.

### Claim 15 (depends on 10)

The method of claim 10, further comprising maintaining a lookup table including a lookup entry corresponding to a bundle space, wherein the lookup entry indicates whether or not an uncompressed mapping table entry spans an additional bundle space.

### Claim 16 (depends on 10)

The method of claim 10, wherein the compressed mapping table comprises a plurality of bundle spaces of equal size, each of the uncompressed mapping table entries corresponding to one or more of the bundle spaces.

### Claim 17 (depends on 10)

The method of claim 10, wherein the memory comprises a dynamic random access memory, the cache comprises a static random access memory, and the storage comprises a NAND-flash memory.

### Claim 18 (depends on 17)

The method of claim 17, wherein the logical addresses comprise logical block addresses received from a host computer and the locations in the storage comprise physical blocks.

### Claim 19

A non-transitory, computer-readable storage medium encoded with instructions adapted to be executed by a processor to implement:
constructing a mapping table comprising a plurality of table entries, wherein the mapping table is indexed by logical addresses and each of the table entries comprises a corresponding physical address in a storage;
replacing a first sequence of the plurality of table entries comprising sequential physical addresses with a first compressed mapping table entry in the mapping table to generate a compressed mapping table;
storing the compressed mapping table in a memory, the compressed mapping table correlating logical addresses to locations in a storage;
storing a plurality of uncompressed mapping table entries starting at a first location in a cache; and
mapping a first logical address associated with a first uncompressed mapping table entry to the first location in the cache.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the instructions are further adapted to implement transferring the compressed mapping table to a nonvolatile memory at power down, wherein the memory comprises a dynamic random access memory, the cache comprises a static random access memory, and the storage comprises a NAND-flash memory.
