# US 2024/0004566 A1 · Memory system for managing namespace using write pointer and write count, memory controller, and method for operating memory system

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

- Number: US 2024/0004566 A1
- Document ID: US20240004566A1
- Status: Published application
- Kind: A1
- Application number: 18/061,386
- Filed: 2022-12-02
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Hung Yung CHO
- Web page: https://patentgrep.com/patent/US20240004566A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- 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 namespace among one or more namespaces in a memory system may be manage on the basis of a write pointer and a write count. The namespace may be managed by a memory controller of the memory system. The memory system may set the one or more namespaces, and may set, for each namespace, a write pointer indicating a position where a new data unit is to be written in that namespace and a write count indicating the number of times a data unit has been written or updated in that namespace. The memory system may determine to migrate one or more data units in a namespace based on the write pointer and the write count of that namespace.

## Claims

### Claim 1

A memory system comprising:
a memory device including a plurality of memory blocks each capable of storing a plurality of data units; and
a memory controller configured to:
set one or more namespaces, each namespace including at least one of the plurality of memory blocks, and
set, for each of the namespaces, a respective write pointer indicating a position where a new data unit is to be written and a respective write count indicating a sum of a number of times new data units were written to that namespace and a number of times data units were updated in that namespace.

### Claim 2 (depends on 1)

The memory system according to claim 1, wherein when writing a new data unit to a first namespace among the one or more namespaces, the memory controller writes the new data unit at a position which is indicated by a write pointer of the first namespace.

### Claim 3 (depends on 2)

The memory system according to claim 2, wherein after writing the new data unit, the memory controller updates the write pointer of the first namespace to a position next to the position where the new data unit is stored, and increases a write count of the first namespace.

### Claim 4 (depends on 2)

The memory system according to claim 2, wherein when updating a data unit previously stored in the first namespace with an update data unit, the memory controller writes the update data unit to a buffer including at least one memory block among the plurality of memory blocks.

### Claim 5 (depends on 4)

The memory system according to claim 4, wherein when updating the data unit previously stored in the first namespace with the update data unit, the memory controller increases the write count of the first namespace without updating the write pointer of the first namespace.

### Claim 6 (depends on 4)

The memory system according to claim 4, wherein when the buffer stores at least one update data units corresponding to a data unit in the first namespace and the buffer is in a full state, or the write count of the first namespace is equal to or greater than a preset first threshold and the number of times data units were updated in the first namespace is equal to or greater than a preset second threshold, the memory controller migrates all or a part of data units stored in the first namespace.

### Claim 7 (depends on 6)

The memory system according to claim 6, wherein migrating all or a part of data units stored in the first namespace comprises:
migrating a valid data unit among data units stored in a first memory block included in the first namespace to a second memory block among the plurality of memory blocks;
migrating a data unit in the buffer corresponding to an update of a data unit stored in the first memory block to the second memory block, and
adding the second memory block to the first namespace.

### Claim 8 (depends on 6)

The memory system according to claim 6, wherein when the buffer is in a full state and a data unit updated for any one of data units stored in a second namespace among the one or more namespaces is stored in the buffer, the memory controller migrates all or a part of the data units stored in the second namespace.

### Claim 9

A method for operating a memory system, the method comprising:
setting one or more namespaces, each namespace including at least one memory block;
setting, for each of the namespaces:
a write pointer indicating a position where a new data unit is to be written, and
a write count indicating a sum of a number of times a data unit write has been performed and a number of times a data unit update has been performed; and
updating at least one of a write pointer of a first namespace among the one or more namespaces and a write count of the first namespace when performing a data unit write or a data unit update in the first namespace.

### Claim 10 (depends on 9)

The method according to claim 9, wherein performing the data unit write in the first namespace comprises:
writing a new data unit to the first namespace at a position which is indicated by the write pointer of the first namespace.

### Claim 11 (depends on 10)

The method according to claim 10, wherein performing the data unit update in the first namespace comprises:
updating a data unit previously stored in the first namespace with an update data unit by writing the update data unit to a buffer, the buffer including at least one memory block.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
migrating all or a part of data units stored in the first namespace when:
the buffer stores at least one update data unit written to the buffer by a data unit update in the first namespace and the buffer is in a full state, or
is the write count of the first namespace is equal to or greater than a preset first threshold and the number of times a data unit update has been performed in the first namespace is equal to or greater than a preset second threshold.

### Claim 13 (depends on 12)

The method according to claim 12, wherein migrating all or a part of data units stored in the first namespace comprises:
migrating a valid data unit stored in a first memory block included in the first namespace to a second memory block,
migrating an update data unit stored in the buffer and corresponding to a data unit stored in the first memory block to the second memory block; and
adding the second memory block to the first namespace.

### Claim 14 (depends on 12)

The method according to claim 12, further comprising:
when the buffer is in the full state and stores at least one update data unit written to the buffer by a data unit update in a second namespace among the one or more namespaces, migrating all or a part of the data units stored in the second namespace.

### Claim 15

A memory controller comprising:
a memory interface capable of communicating with a memory device including a plurality of memory blocks; and
a control circuit configured to:
configure one or more areas each including at least a respective one of the plurality of memory blocks,
determine, for each of the areas, a position where a new data unit is to be written and a position where an update data unit for a previously stored data unit is to be written,
determine, for each of the areas, a write count corresponding to a sum of a number of new data writes to that area and a number of data unit updates in that area, and
manage each of the one or more areas based on the respective write count.
