# US 11,120,081 B2 · Key-value storage device and method of operating key-value storage device

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

- Number: US 11,120,081 B2
- Document ID: US11120081B2
- Status: Granted
- Kind: B2
- Application number: 16/100,990
- Filed: 2018-08-10
- Published: 2019-05-23
- Granted: 2021-09-14
- Earliest claimed: 2017-11-23
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Ju-Pyung Lee
- Web page: https://patentgrep.com/patent/US11120081B2

## CPC

- G06F 16/9014: {hash tables}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0638: {Organizing or formatting or addressing of data}
- G06F 3/0643: {Management of files}
- G06F 3/0661: {Format or protocol conversion arrangements}
- 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A key-value storage device includes a non-volatile memory and a controller. A method of operating the key-value storage device includes: receiving, from a host, information regarding at least one of a random region, comprising random bits, and a non-random region each included in a key; receiving, from the host, a first command including a first key; generating, based on the received information, a mapping index of a mapping table from first bits, the first bits corresponding to at least some of the random bits included in the first key; and controlling an operation for the non-volatile memory, according to the first command, by using the mapping table.

## Claims

### Claim 1

A storage system comprising:
a non-volatile memory; and
a controller configured to receive from a host:
a command including a key, the key including a random region and a non-random region, the random region including random bits, and the non-random region including attribute information regarding a value associated with the key, the attribute information being represented by bits having a certain pattern, and the bits indicating a type of file to which the key provides access; and
a key encoding rule including information regarding at least one of the random region and the non-random region,
wherein the controller is further configured to generate, based on the key encoding rule, a mapping index from bits corresponding to some of the random bits included in the random region and is further configured to store, in a mapping table, mapping information which maps the mapping index to a physical address of the non-volatile memory, and
wherein the non-volatile memory is configured to store, under control of the controller and according to the physical address of the mapping information, the key and the value corresponding to the key.

### Claim 2 (depends on 1)

The storage system of claim 1, wherein:
the controller is configured to receive the key encoding rule before receiving the command.

### Claim 3 (depends on 1)

The storage system of claim 1, wherein:
the controller comprises:
a processor;
a host interface for interfacing the controller to the host; and
a controller memory operatively connected to the processor, and the mapping table is stored in the controller memory.

### Claim 4 (depends on 3)

The storage system of claim 3, wherein:
the command further includes a value corresponding to the key, and
the host interface includes:
a command decoder configured to decode the command and to separate the key and the value from each other; and
a hashing module configured to perform a hashing operation on the key to generate the mapping index.

### Claim 5 (depends on 4)

The storage system of claim 4, wherein the hashing module is configured to perform the hashing operation according to the key and information included in the key encoding rule.

### Claim 6 (depends on 5)

The storage system of claim 5, wherein:
the information included in the key encoding rule includes a critical value, and
the hashing module is configured to perform the hashing operation only when a size of the key is less than the critical value.

### Claim 7 (depends on 1)

The storage system of claim 1, wherein the type of file is a video file or a picture file.

### Claim 8

A method of operating a key-value storage device, wherein the key-value storage device comprises a non-volatile memory and a controller configured to control the non-volatile memory, the method comprising:
receiving, by the controller and from a host, information regarding at least one of a random region comprising random bits and a non-random region each included in a first key, the non-random region including attribute information regarding a first value associated with the first key, the attribute information being represented by bits having a certain pattern, and the bits indicating a type of file to which the first key provides access;
receiving, by the controller and from the host, a write command comprising the first key and the first value;
generating by the controller, based on the information, a mapping index of a mapping table from first bits, the first bits corresponding to some of the random bits included in the random region of the first key;
after generating the mapping index, storing in the mapping table a first physical address for writing the first value into the non-volatile memory; and
controlling, by the controller, an operation for the non-volatile memory according to the write command by using the mapping table.

### Claim 9 (depends on 8)

The method of claim 8, wherein the generating of the mapping index comprises generating the mapping index by performing a hashing operation on the first bits.

### Claim 10 (depends on 8)

The method of claim 8, further comprising:
receiving, by the controller and from the host, a read command comprising the first key; and
retrieving from the mapping table the first physical address into which the first value corresponding to the first key is written.

### Claim 11 (depends on 8)

The method of claim 8, further comprising, after receiving the write command, the controller determining whether a size of the random bits is equal to or greater than a critical value.

### Claim 12 (depends on 11)

The method of claim 11, wherein:
the size of the random bits is equal to or greater than the critical value, and
the method further comprising generating the mapping index from the first bits.

### Claim 13 (depends on 11)

The method of claim 11, wherein:
the size of the random bits is less than the critical value,
the method further comprising generating a first hashed key corresponding to the first key by performing a hashing operation on the first key, and
the first hashed key is used as the mapping index.

### Claim 14 (depends on 8)

The method of claim 8, wherein:
the non-volatile memory comprises a plurality of non-volatile memory devices, and
the method further comprising, after receiving the write command, allocating the first key to a first non-volatile memory device among the plurality of non-volatile memory devices based on at least one second bit among the random bits.

### Claim 15 (depends on 8)

The method of claim 8, wherein:
the receiving of the information comprises receiving, from the host, first information, and
the first information comprises a first key encoding rule including second information regarding at least one of the random region and the non-random region and a first encoding identifier (ID) corresponding to the first key encoding rule.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
after controlling of operation for the non-volatile memory, receiving from the host third information, wherein
the third information comprises:
a second key encoding rule which is different than the first key encoding rule, and
a second encoding ID, corresponding to the second key encoding rule, which is different than the first encoding ID.

### Claim 17

A method of operating a key-value storage device, wherein the key-value storage device comprises a plurality of non-volatile memories and a controller configured to control the plurality of non-volatile memories, the method comprising:
receiving, by the controller and from a host, information regarding at least one of a random region comprising random bits and a non-random region each included in a first key, the non-random region including attribute information regarding a first value associated with the first key, the attribute information being represented by bits having a certain pattern, and the bits indicating a type of file to which the first key provides access;
receiving, by the controller and from the host, a write command comprising the first key and the first value;
allocating, by the controller, the write command to a first non-volatile memory among the plurality of non-volatile memories according to at least a second bit among the random bits included in the random region of the first key, based on the information;
generating, by the controller and based on the information, a mapping index of a first mapping table from first bits, the first mapping table corresponding to the first non-volatile memory and the first bits corresponding to some of the random bits included in the first key;
after generating the mapping index, storing in the first mapping table a first physical address for writing the first value into the first non-volatile memory; and
controlling, by the controller, an operation for the first non-volatile memory according to the write command, by using the first mapping table.

### Claim 18 (depends on 17)

The method of claim 17, further comprising, after the allocating of the write command to the first non-volatile memory, determining by the controller whether a size of the random bits is equal to or greater than a critical value.

### Claim 19 (depends on 18)

The method of claim 18, wherein:
the size of the random bits is equal to or greater than the critical value, and
the method further comprising generating the mapping index from the first bits.

### Claim 20 (depends on 18)

The method of claim 18, wherein:
the size of the random bits is less than the critical value,
the method further comprising generating a first hashed key corresponding to the first key by performing a hashing operation on the first key, and
the first hashed key is used as the mapping index.
