# US 2023/0058424 A1 · Selection of Block Size for Namespace Management in Non-Volatile Memory Devices

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

- Number: US 2023/0058424 A1
- Document ID: US20230058424A1
- Status: Published application
- Kind: A1
- Application number: 17/404,883
- Filed: 2021-08-17
- Published: 2023-02-23
- Earliest claimed: 2021-08-17
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Alex Frolikov
- Web page: https://patentgrep.com/patent/US20230058424A1

## CPC

- G06F 3/064: {Management of blocks}
- 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/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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer storage device having a host interface, a controller, non-volatile storage media, and firmware. The firmware instructs the controller to select a block size for allocating blocks to namespaces based on a storage capacity of the non-volatile storage media. Various requests by a host to create namespaces are received by the controller via the host interface. After each request is received, the controller allocates blocks to the requested namespace using the selected block size. The controller can select the block size at the time of initial manufacture or operation, and/or can dynamically select various block sizes during operation of the storage device. Dynamic selection of the block size can be based on signaling from sensors of the storage device and/or host.

## Claims

### Claim 1

A device comprising:
a host interface;
a controller;
non-volatile storage media having a storage capacity; and
firmware containing instructions which, when executed by the controller, instruct the controller to at least:
select, based on the storage capacity and based on sensor data indicative of a context of the non-volatile storage media, a block size for allocating blocks to namespaces;
receive, via the host interface, a request from a host to create a first namespace; and
allocate at least a portion of the blocks to the first namespace.

### Claim 2 (depends on 1)

The device of claim 1, wherein the block size is a first block size, and selecting the first block size comprises:
selecting, based on the storage capacity, a number of blocks;
determining a preliminary block size based on the storage capacity divided by the number of blocks; and
rounding up the preliminary block size to a closest power of two to provide the first block size.

### Claim 3 (depends on 2)

The device of claim 2, wherein a granularity determined based on the storage capacity divided by the first block size is within a defined range.

### Claim 4 (depends on 2)

The device of claim 2, wherein the instructions further instruct the controller to:
determine a resource usage associated with address mapping;
wherein the number of blocks is selected further based on the resource usage.

### Claim 5 (depends on 1)

The device of claim 1, wherein the request includes a requested size for the first namespace, and the allocated portion of the blocks has a total size greater than the requested size.

### Claim 6 (depends on 1)

The device of claim 1, wherein the instructions further instruct the controller to:
determine at least one usage characteristic associated with the first namespace;
wherein the block size is selected further based on the usage characteristic.

### Claim 7 (depends on 6)

The device of claim 6, wherein the usage characteristic is a characteristic of an application executing on the host, and data used by the application is stored in the first namespace.

### Claim 8 (depends on 1)

The device of claim 1, wherein the instructions further instruct the controller to:
determine a mapping efficiency for the first namespace;
wherein the block size is selected further based on the determined mapping efficiency.

### Claim 9 (depends on 8)

The device of claim 8, wherein the mapping efficiency is determined based on a usage of processing resources associated with at least one of reading data from the non-volatile storage media, or writing data to the non-volatile storage media.

### Claim 10 (depends on 1)

The device of claim 1, further comprising a counter configured to count a quantity of data, wherein the block size is selected further based on the quantity of data.

### Claim 11 (depends on 1)

The device of claim 1, wherein the quantity of data is a quantity of data written to memory cells of the non-volatile storage media.

### Claim 12 (depends on 1)

The device of claim 1, wherein the instructions further instruct the controller to:
determine a usage of the first namespace, the usage determined based on a quantity of data stored in the non-volatile storage media;
wherein the block size is selected further based on the usage.

### Claim 13

A device comprising:
a host interface;
a controller;
non-volatile storage media; and
firmware containing instructions which, when executed by the controller, instruct the controller to at least:
receive, via the host interface, a request from a host to create a namespace;
allocate blocks of a first block size to the namespace;
increase, based on sensor data indicative of a context of the non-volatile storage media, a storage capacity of the non-volatile storage media;
select, based on the increased storage capacity, a second block size for allocating blocks to the namespace, wherein the second block size is greater than the first block size; and
allocate blocks of the second block size to the namespace.

### Claim 14 (depends on 13)

The device of claim 13, wherein the instructions further instruct the controller to:
determine at least one characteristic associated with the namespace;
wherein the second block size is selected further based on the determined characteristic.

### Claim 15 (depends on 13)

The device of claim 13, further comprising a counter configured to count a quantity of at least one of data read from the non-volatile storage media or data written to the non-volatile storage media, wherein the second block size is selected further based on the quantity.

### Claim 16 (depends on 13)

The device of claim 13, wherein selecting the second block size comprises:
selecting, based on the increased storage capacity, a number of blocks;
determining a preliminary block size based on the increased storage capacity divided by the number of blocks; and
rounding up the preliminary block size to a closest power of two to provide the second block size.

### Claim 17 (depends on 16)

The device of claim 16, wherein the instructions further instruct the controller to:
determine a resource usage associated with the non-volatile storage media;
wherein the number of blocks is selected further based on the resource usage.

### Claim 18 (depends on 13)

The device of claim 13, wherein the second block size is a multiple of the first block size.

### Claim 19 (depends on 13)

The device of claim 13, wherein increasing the storage capacity comprises changing a programming mode for memory cells of the non-volatile storage media.

### Claim 20 (depends on 19)

The device of claim 19, further comprising at least one sensor and memory, wherein the instructions further instruct the controller to:
receive signaling from the sensor;
wherein changing the programming mode comprises selecting, based on the signaling, a new programming mode for the memory cells from a plurality of programming modes stored in the memory.

### Claim 21 (depends on 19)

The device of claim 19, wherein changing the programming mode comprises changing from a first programming mode in which each memory cell stores a charge representative of a single bit of data, to a second programming mode in which each memory cell stores a charge representative of at least two bits of data.

### Claim 22 (depends on 13)

The device of claim 13, wherein the storage capacity is increased in response to a request from the host.

### Claim 23 (depends on 22)

The device of claim 22, wherein the request is sent by the host in response to:
a request made in a user interface of the host;
a request made by an application executing on the host; or
a characteristic of the namespace determined by the host.

### Claim 24 (depends on 13)

The device of claim 13, wherein the instructions further instruct the controller to:
receive, over a wireless network, a communication requesting an increase in the storage capacity;
wherein the storage capacity is increased in response to receiving the communication.

### Claim 25 (depends on 24)

The device of claim 24, wherein the communication is received from a computing device other than the host.

### Claim 26 (depends on 13)

The device of claim 13, further comprising at least one sensor, wherein the instructions further instruct the controller to:
collect the sensor data from the sensor; and
select a new storage capacity based on the collected sensor data;
wherein the storage capacity is increased to the new storage capacity.

### Claim 27 (depends on 26)

The device of claim 26, wherein the at least one sensor comprises a temperature sensor configured to indicate a temperature of the non-volatile storage media.

### Claim 28 (depends on 13)

The device of claim 13, wherein the instructions further instruct the controller to:
determine an error rate associated with reading data from memory cells of the non-volatile storage media;
wherein an extent of the increase in the storage capacity is based on the error rate.

### Claim 29

A method comprising:
receiving a request from a host to create a namespace;
allocating blocks of a first block size to the namespace;
changing, based on sensor data indicative of a context of a non-volatile storage media, a storage capacity of the non-volatile storage media to a new storage capacity;
in response to changing the storage capacity, selecting a second block size for allocating blocks to the namespace, wherein the second block size is different from the first block size; and
allocating blocks of the second block size to the namespace.

### Claim 30 (depends on 29)

The method of claim 29, wherein the non-volatile storage media is configured in a memory device, the method further comprising:
collecting data associated with operation of the memory device; and
generating an output from a computer model having the collected data as input;
wherein the second block size is selected based on the output from the computer model.

### Claim 31 (depends on 30)

The method of claim 30, wherein:
the computer model is an artificial neural network;
the output is a number of blocks; and
selecting the second block size comprises determining a preliminary block size based on the new storage capacity divided by the number of blocks, and rounding up the preliminary block size to a closest power of two to provide the second block size.

### Claim 32 (depends on 30)

The method of claim 30, wherein the collected data comprises data regarding address translation, and usage of the storage capacity.

### Claim 33

A non-transitory computer-readable storage medium storing instructions which, when executed by a controller of a computer storage device, cause the controller to:
receive a request from a host to create a namespace;
allocate blocks of a first block size to the namespace;
change, based on sensor data indicative of a context of a non-volatile storage media, a storage capacity of the non-volatile storage media to a new storage capacity;
select, based on the new storage capacity, a second block size for allocating blocks to the namespace, wherein the second block size is different from the first block size; and
allocate blocks of the second block size to the namespace.

### Claim 34 (depends on 33)

The non-transitory computer-readable storage medium of claim 33, wherein selecting the second block size comprises:
selecting, based on the new storage capacity, a number of blocks;
determining a preliminary block size based on the new storage capacity divided by the selected number of blocks; and
rounding up the preliminary block size to a closest power of two to provide the second block size.

### Claim 35 (depends on 34)

The non-transitory computer-readable storage medium of claim 34, wherein the instructions further cause the controller to:
determine a resource usage associated with data stored in the non-volatile storage media;
wherein the number of blocks is selected further based on the determined resource usage.
