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

Claim 7:
8. A write control method comprising:
dividing a nonvolatile memory into a first area and a second area, the first area being an area to which a first mode of writing data of N bits per unit area is applied in a fixed manner, the second area being an area to which the first mode and a second mode of writing data of M bits (M>N) per unit area can be applied mixedly;
receiving a plurality of write commands for writing corresponding write data to the nonvolatile memory;
writing, using the first mode, a part or all parts of each of the corresponding write data for the plurality of write commands to a free area of the first area, in response to determining the free area is present in the first area for each command;
for at least one write command of the plurality of write commands, comparing a difference between the size of the corresponding 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, in response to determining the size of the corresponding write data is larger than the capacity writable using the first mode in the free area of the first area;
for at least one write command of the plurality of write commands, writing, using the first mode and to the free area of the second area, all remaining data of the corresponding write data after writing to the free area of the first area, in response to determining the difference is smaller than or equal to the capacity writable using the first mode in the free area of the second area; and
for at least one write command of the plurality of write commands, determining 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 corresponding 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 corresponding 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, in response to determining the difference is larger than the capacity writable in the first mode of the free area of the second area.