US 11,914,896 B2
Memory system and write control method
Takahiro Kurita, Sagamihara (JP); and Shinichi Kanno, Ota (JP)
Assigned to Kioxia Corporation, Tokyo (JP)
Filed by Kioxia Corporation, Tokyo (JP)
Filed on Jun. 4, 2021, as Appl. No. 17/338,758.
Claims priority of application No. 2020-133936 (JP), filed on Aug. 6, 2020.
Prior Publication US 2022/0043604 A1, Feb. 10, 2022
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 3/064 (2013.01); G06F 3/0652 (2013.01); G06F 3/0679 (2013.01)] 11 Claims
OG exemplary drawing
 
1. A memory system connectable to a host, the memory system comprising:
a nonvolatile memory; and
a controller configured to control writing data to the nonvolatile memory or reading data from the nonvolatile memory in response to a command from the host, wherein
the nonvolatile memory is configured to correspond to a first mode of writing data of N bits per unit area and a second mode of writing data of M bits (M>N) per unit area, and
the controller is configured to:
receive, from the host, a write command to write write data to the nonvolatile memory,
set a first area and a second area in the nonvolatile memory, the first area being an area to which the first mode is applied in a fixed manner, the second area being an area to which the first mode and the second mode can be applied mixedly;
write, using the first mode, a part or all parts of the write data to a free area of the first area, when the free area is present in the first area;
compare a difference between a size of the write data and a capacity writable using the first mode in the free area of the first area, with a capacity writable using the first mode in a free area of the second area, when the size of the write data is larger than the capacity writable using the first mode in the free area of the first area;
write, using the first mode and to the free area of the second area, all remaining data of the write data after writing to the free area of the first area, when the difference is smaller than or equal to the capacity writable using the first mode in the free area of the second area; and
determine a write capacity of using the first mode in the free area of the second area and a write capacity of using the second mode in the free area of the second area for writing all the remaining data of the write data, such that the write capacity of the first mode in the free area of the second area is maximally utilized, and write all the remaining data of the write data to the determined write capacity using the first mode in the free area of the second area and the determined write capacity using the second mode in the free area of the second area, when the difference is larger than the capacity writable using the first mode in the free area of the second area.