Patent ID: 11868246
Assignee: KIOXIA CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 11:
12. A control method of a nonvolatile memory including erase unit areas, comprising:
managing a plurality of namespaces including at least a first namespace and a second namespace;
receiving, by a controller, a first command for setting the first namespace from a host device and a second command for setting the second namespace from the host device, the first namespace and the second namespace corresponding to an LBA (logical block addressing) space, the LBA space including logical addresses, the first namespace and the second namespace respectively indicated by a first namespace ID and a second namespace ID from the host device assigning, by the controller, a first plurality of erase unit areas among the erase unit areas to the first namespace based on the first command;
assigning, by the controller, a second plurality of erase unit areas among the erase unit areas to the second namespace based on the second command;
generating, by the controller, management data in which the first plurality of erase unit areas are associated with the first namespace and the second plurality of erase unit areas are associated with the second namespace;
storing, by the controller, the management data in a memory;
executing, by the controller, garbage collection on each of the first namespace and second namespace individually;
after executing the garbage collection on the first namespace, executing changing by the controller, on the basis of the number of access or data amount of the first namespace and the number of access or data amount of the second namespace, an empty erase unit area belonging to the first namespace to an erase unit area belonging to the second namespace for an assignment change, to execute wear leveling on the first namespace and the second namespace;
updating, by the controller, the management data in the memory in response to executing the changing; and
setting, by the controller, provisioning areas for over provisioning to the plurality of namespaces individually after updating the management data,
wherein the method further comprises receiving, by the controller, a write command together with the first namespace ID, a writing destination, data size of write data, and write data to be stored in the nonvolatile memory.