# US 2021/0263645 A1 · NVMe Controller Memory Manager

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

- Number: US 2021/0263645 A1
- Document ID: US20210263645A1
- Status: Published application
- Kind: A1
- Application number: 17/318,259
- Filed: 2021-05-12
- Published: 2021-08-26
- Earliest claimed: 2017-12-19
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Shay BENISTY
- Web page: https://patentgrep.com/patent/US20210263645A1

## CPC

- G06F 3/061: {Improving I/O performance}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0871: Allocation or management of cache space
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 13/1668: {Details of memory controller}
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06F 13/4295: {using an embedded synchronisation}
- G06F 2212/1016: Performance improvement
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/283: Plural cache memories
- G06F 2212/313: In storage device
- G06F 2212/502: using adaptive policy
- G06F 2212/621: Coherency control relating to peripheral accessing, e.g. from DMA or I/O device
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure generally relate to an NVMe storage device having a controller memory manager and a method of accessing an NVMe storage device having a controller memory manager. In one embodiment, a storage device comprises a non-volatile memory, a volatile memory, and a controller memory manager. The controller memory manager is operable to store one or more NVMe data structures within the non-volatile memory and the volatile memory.

## Claims

### Claim 1

A method of accessing NVMe queues to access a storage device, comprising:
storing a NVMe queue in a DRAM of the storage device; and
utilizing an SRAM of the storage device as a cache to the NVMe queue.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a plurality of host commands;
storing the host commands to the SRAM;
aggregating the host commands to a full DRAM cache line size; and
flush the full DRAM cache line size host commands from the SRAM to a tail of a submission queue of the NVMe queue.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
fetching two DRAM cache lines of a head of a submission queue of the NVMe queue; and
storing the fetched two DRAM cache lines to the SRAM.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
storing a plurality of completion commands to the SRAM;
aggregating the completion commands to two full DRAM cache line sizes; and
flushing the two full DRAM cache line sizes completion commands from the SRAM to a tail of a completion queue of the NVMe queue.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
fetching one DRAM cache line of a head of a completion queue of the NVMe queue; and
storing the fetched one DRAM cache line to the SRAM.

### Claim 6 (depends on 1)

The method of claim 1, wherein the NVMe queue comprises contiguous commands in the DRAM.

### Claim 7

A method of accessing a storage device, comprising:
receiving a host write transaction classified as a NVMe data buffer access;
determining whether the host write transaction is directed to a persistent memory region (PMR) of the storage device; and
in response to a determination that the host write transaction is directed to the PMR, storing a duplicate copy of the host write transaction to a non-volatile memory of the storage device in a background operation.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining if the host write transaction is deeply queued in a submission queue; and
in response to a determination that the host write transaction is deeply queued in the submission queue, storing the host write transaction in a DRAM of the storage device.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
determining if the host write transaction is deeply queued in a submission queue; and
in response to a determination that the host write transaction is not deeply queued in the submission queue, storing the host write transaction in an available space in a SRAM of the storage device.

### Claim 10 (depends on 9)

The method of claim 9, further comprising copying the host write transaction to the non-volatile memory of the storage device.

### Claim 11 (depends on 10)

The method of claim 10, further comprising releasing the host write transaction from the SRAM.

### Claim 12 (depends on 7)

The method of claim 7, further comprising:
determining if the host write transaction is deeply queued in a submission queue;
determining if there is available space in a SRAM of the storage device; and
in response to a determination that the host write transaction is not deeply queued in the submission queue and a determination that there is no available space in the SRAM of the storage device, storing the host write transaction in a DRAM of the storage device.

### Claim 13

A method of accessing a storage device, comprising:
a step for receiving host write transactions;
a step for classifying the host write transactions into a non-volatile memory express (NVMe) data structure group; and
a step for storing the NVMe data structure groups within non-volatile memory (NVM) and volatile memory.

### Claim 14 (depends on 13)

The method of claim 13, further comprising allocating the host write transactions into SRAM, DRAM, the non-volatile memory, or combinations thereof based upon available space in the SRAM.

### Claim 15 (depends on 13)

The method of claim 13, further comprising allocating the host write transactions into SRAM, DRAM, the non-volatile memory, or combinations thereof based upon the classification of the host write transactions into one of the NVMe data structure groups.

### Claim 16 (depends on 13)

The method of claim 13, wherein the host write transactions are classified into the NVMe data structure group based on an address of the host write transactions and a burst length of the host write transactions.

### Claim 17 (depends on 13)

The method of claim 13, wherein a portion of the volatile memory is at least one of a controller memory buffer (CMB) and a persistent memory region (PMR), the method further comprising storing the host write transactions to at least one of the CMB and the PMR.

### Claim 18 (depends on 13)

The method of claim 13, wherein the classifying comprises classifying the host write transactions into NVMe queues, pointers, or data buffers.

### Claim 19 (depends on 13)

The method of claim 13, wherein storing the received host write transactions comprises determining an amount of available resources of the non-volatile memory and the volatile memory.

### Claim 20 (depends on 19)

The method of claim 19, wherein the amount of available resources is determined as one of full, almost full, almost empty, or empty.
