Method of operating memory controller, memory system, and related devices
In an example, a method of operating the memory controller comprises: recording a memory space and a write temperature corresponding to writing data to a memory device in response to a temperature of the memory device meeting a second temperature condition; acquiring a memory space and a write temperature corresponding to to-be-rewritten data in the memory device in response to the temperature of the memory device meeting a first temperature condition; and performing a rewrite operation on the to-be-rewritten data according to the memory space and the write temperature corresponding to the to-be-rewritten data.
1 . A method of operating a memory controller, comprising:
acquiring a memory space and a write temperature corresponding to to-be-rewritten data in a memory device in response to a temperature of the memory device meeting a first temperature condition, wherein the to-be-rewritten data is data has been written to the memory device while the temperature of the memory device met a second temperature condition;
performing a rewrite operation on the to-be-rewritten data according to the memory space and the write temperature corresponding to the to-be-rewritten data;
in response to the temperature of the memory device being less than a first threshold, recording the memory space and the write temperature corresponding to writing of the data to the memory device in a first list; and
in response to the temperature of the memory device being greater than a second threshold, recording the memory space and the write temperature corresponding to writing of the data to the memory device in a second list.
2 . The method of operating the memory controller of claim 1 , wherein the first temperature condition is that a temperature difference between the temperature of the memory device and the write temperature exceeds a first temperature difference threshold.
3 . The method of operating the memory controller of claim 2 , wherein the first temperature condition is that the temperature difference between the temperature of the memory device and the write temperature is less than a second temperature difference threshold.
4 . The method of operating the memory controller of claim 1 , wherein the first temperature condition is that the temperature of the memory device is between a third threshold and a fourth threshold, wherein the fourth threshold is greater than the third threshold.
5 . The method of operating the memory controller of claim 1 , wherein the method further comprises:
monitoring the temperature of the memory device.
6 . The method of operating the memory controller of claim 1 , wherein the second temperature condition is that the temperature of the memory device is less than the first threshold or greater than the second threshold, wherein the second threshold is greater than the first threshold.
7 . The method of operating the memory controller of claim 1 , wherein performing the rewrite operation on the to-be-rewritten data according to the memory space and the write temperature corresponding to the to-be-rewritten data comprises:
reading the memory space and the write temperature corresponding to the to-be-rewritten data from at least one of the first list or the second list, and performing the rewrite operation on the to-be-rewritten data.
8 . The method of operating the memory controller of claim 7 , wherein reading the memory space and the write temperature corresponding to the to-be-rewritten data from at least one of the first list or the second list, and performing the rewrite operation on the to-be-rewritten data comprises at least one of the following:
sorting memory spaces recorded in the first list in ascending order of write temperature, sequentially reading data of the corresponding memory spaces according to a sorting result, and performing the rewrite operation; and
sorting memory spaces recorded in the second list in descending order of write temperature, sequentially reading data of the corresponding memory spaces according to a sorting result, and performing the rewrite operation.
9 . The method of operating the memory controller of claim 1 , wherein the memory space and the write temperature corresponding to the to-be-rewritten data is recorded in units of virtual blocks in the first list and the second list.
10 . The method of operating the memory controller of claim 1 , further comprising:
receiving a data rewrite command, wherein the data rewrite command is used for the memory controller to perform the rewrite operation on the to-be-rewritten data when the temperature of the memory device meets the first temperature condition.
11 . The method of operating the memory controller of claim 1 , wherein the memory space and the write temperature corresponding to the to-be-rewritten data are stored in a host memory of a host or a controller memory of the memory controller.
12 . A memory system, comprising:
a memory device; and
a memory controller coupled to the memory device, wherein the memory controller is configured to:
acquire a memory space and a write temperature corresponding to to-be-rewritten data in response to a temperature of the memory device meeting a first temperature condition, wherein the to-be-rewritten data is data has been written to the memory device while the temperature of the memory device met a second temperature condition;
perform a rewrite operation on the to-be-rewritten data according to the memory space and the write temperature corresponding to the to-be-rewritten data;
in response to the temperature of the memory device being less than a first threshold, recording the memory space and the write temperature corresponding to writing of the data to the memory device in a first list; and
in response to the temperature of the memory device being greater than a second threshold, recording the memory space and the write temperature corresponding to writing of the data to the memory device in a second list.
13 . The memory system of claim 12 , further comprising:
a temperature sensor connected with the memory controller, and configured to monitor the temperature of the memory device.
14 . The memory system of claim 13 , wherein the memory controller is further configured to record the memory space and the write temperature corresponding to the to-be-rewritten data in response to the temperature of the memory device meeting a second temperature condition.
15 . The memory system of claim 13 , wherein the memory controller comprises: a controller memory, wherein the controller memory is configured to store the memory space and the write temperature corresponding to the to-be-rewritten data that are recorded.
16 . The memory system of claim 12 , further comprising:
a host connected with the memory controller, and configured to send a data rewrite command to the memory controller to enable the memory controller to perform the rewrite operation on the to-be-rewritten data in the memory device when the temperature of the memory device meets the first temperature condition.
17 . A memory controller, comprising:
a memory device interface configured to connect a memory device; and
a controller processor connected with the memory device interface, and configured to:
acquire a memory space and a write temperature corresponding to to-be-rewritten data in the memory device in response to a temperature of the memory device meeting a first temperature condition, wherein the to-be-rewritten data is data has been written to the memory device while the temperature of the memory device met a second temperature condition;
perform a rewrite operation on the to-be-rewritten data according to the memory space and the write temperature corresponding to the to-be-rewritten data;
in response to the temperature of the memory device being less than a first threshold, recording the memory space and the write temperature corresponding to writing of the data to the memory device in a first list; and
in response to the temperature of the memory device being greater than a second threshold, recording the memory space and the write temperature corresponding to writing of the data to the memory device in a second list.
18 . The memory controller of claim 17 , further comprising:
a controller memory connected with the controller processor, and configured to store the memory space and the write temperature corresponding to the to-be-rewritten data that are recorded.