Data storage system, data storage device and management method thereof
By analyzing access history and predicting correlation rules, the lookup table of flash memory is managed, which solves the problem of low flash memory access efficiency and improves the performance and hit rate of storage devices.
Patent Information
- Application Number
- CN202010110442.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-10
- Filing Date
- 2020-02-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-02-21
AI Technical Summary
Due to limitations in storage capacity and cost, flash memory cannot record the mapping relationships between all logical block addresses and physical block addresses, resulting in the need to rebuild the lookup table when the access instruction target is not within the range of the lookup table, reducing access efficiency. .
The prediction unit analyzes the access history, obtains the correlation rules, and manages the lookup table through the lookup table management unit. It determines whether the current access instruction corresponds to the existing lookup table. If it does not exist, the corresponding lookup table is established, and the subsequent access instructions are predicted. Lookup table to improve hit rate and reduce rebuild times.
The access performance of the data storage device is improved, the hit rate of the logical-physical address lookup table is increased, the number of times of rebuilding the lookup table is reduced, and the overall performance is improved.
Smart Images

Figure CN113110797B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a data access technology, and in particular to a data storage system, a data storage device and a management method thereof. Background Art
[0002] In recent years, various electronic devices equipped with storage devices have been widely used by consumers in daily life. As the demand for storage capacity increases, fast and large-capacity non-volatile memory for reading and writing has become a very popular product. Most of these products use flash memory to store data.
[0003] Due to the read and write characteristics of flash memory, flash memory will have a logical-physical address lookup table, which is used to record the mapping relationship between the logical block address (Logical Block Address, LBA) and the physical block address (Physical Block Address, PBA). Only by finding out the actual block address of the logical address of the access instruction in the flash memory through the lookup table can the data be accessed correctly. However, due to the limitations of storage capacity and cost, it is impossible to record all the mapping relationships between PBA and LBA. If the target of the access instruction is not within the range recorded in the lookup table, the system needs to remove the existing lookup table and re-establish the lookup table based on the target access address, thereby reducing the access efficiency of the flash memory. Summary of the invention
[0004] In view of this, the present invention provides a data storage system, a data storage device and a management method thereof, which can reduce the number of logical-physical address lookup tables required to rebuild the data storage device, increase the hit rate of the logical-physical address lookup tables required by the data storage device, and thereby improve the performance of the data storage device.
[0005] An embodiment of the present invention provides a data storage device including a memory array, a prediction unit, and a lookup table management unit. The prediction unit is used to obtain multiple correlation rules between multiple access positions after performing correlation rule analysis based on multiple previous access instructions. The lookup table management unit is used to manage multiple lookup tables based on these correlation rules, wherein the lookup table management unit determines whether the current access instruction corresponds to at least one of these lookup tables to obtain the physical address of the current access instruction in the memory array from the corresponding lookup table, and if there is no corresponding lookup table, a corresponding lookup table needs to be established, and the lookup table corresponding to the subsequent access instruction is predicted based on these correlation rules, and these lookup tables are established in advance.
[0006] An embodiment of the present invention provides a data storage system, including a host and a data storage device. The host includes a computing device, wherein the computing device obtains multiple correlation rules after performing correlation rule analysis based on multiple previous access instructions. The data storage device is electrically connected to the host and includes an input / output interface, a memory array, and a lookup table management unit. The data storage device receives these correlation rules and the current access instruction from the host through the input / output interface. The lookup table management unit is used to manage multiple lookup tables according to these correlation rules, wherein the lookup table management unit determines whether the current access instruction corresponds to at least one of these lookup tables to obtain the physical address of the current access instruction in the memory array from the corresponding lookup table, and if there is no corresponding lookup table, a corresponding lookup table needs to be established, and the lookup table corresponding to the subsequent access instruction is predicted according to these correlation rules, and these lookup tables are established in advance.
[0007] An embodiment of the present invention proposes a management method for a data storage device, comprising the following steps: obtaining multiple correlation rules based on multiple previous access instructions; establishing multiple lookup tables based on these correlation rules; receiving a current access instruction, and determining whether the current access instruction corresponds to at least one of these lookup tables to obtain the physical address of the current access instruction from the corresponding lookup table; if a corresponding lookup table does not exist, a corresponding lookup table needs to be established, and the lookup table corresponding to the subsequent access instruction is predicted based on these correlation rules, and these lookup tables are established in advance.
[0008] Based on the above, the present invention provides a data storage system, a data storage device and a management method thereof, which analyzes the access history of the data storage device to obtain the correlation rules between previous access positions, and establishes a lookup table based on the correlation rules and even further predicts the next possible access position based on the correlation rules and prepares the lookup table accordingly. In this way, the hit rate of the lookup table can be improved, the number of times the lookup table is re-established can be reduced, and the efficiency of data access can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the present invention and together with the description serve to explain the principles of the present invention.
[0010] Figure 1 is a functional block diagram of a data storage device according to an embodiment of the present invention;
[0011] Figure 2 is a schematic diagram of a segmentation method of a logical address of a data storage device according to an embodiment of the present invention;
[0012] Figure 3 is a schematic diagram of a process of correlation rule analysis according to an embodiment of the present invention;
[0013] Figure 4 is a functional block diagram of a data storage system according to another embodiment of the present invention;
[0014] Figure 5 is a flow chart of a method for managing a data storage device according to an embodiment of the present invention;
[0015] Figure 6 is a flowchart of a method for managing a data storage device according to another embodiment of the present invention.
[0016] In the above drawings, the meanings of the reference numerals are as follows:
[0017] 40: Data Storage System
[0018] 100, 400: data storage device;
[0019] 110: memory array;
[0020] 120: memory controller;
[0021] 130: lookup table management unit;
[0022] 140: Input and output interface;
[0023] 150: prediction unit;
[0024] 200: logical address range;
[0025] 301-306: Quantitative data;
[0026] 402: computing device;
[0027] 500, 600: Management methods;
[0028] A~G: storage segment;
[0029] H: host;
[0030] S510~S570, S610~S640: steps. DETAILED DESCRIPTION
[0031] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0032] Figure 11 is a functional block diagram of a data storage device according to an embodiment of the present invention. In this embodiment, the data storage device 100 may be a NAND flash memory, but is not limited thereto. The data storage device 100 includes a memory array 110, a memory controller 120, a lookup table management unit 130, an input / output interface 140, and a prediction unit 150. The memory array 110 includes a plurality of memory cells arranged in a matrix. The memory controller 120 performs data access operations on the memory array 110 based on access instructions from the input / output interface 140. The input / output interface 140 supports, for example, interface protocols such as SATA, USB, PCIe, or SPI. The lookup table management unit 130 is used to manage a plurality of lookup tables (LUTs). These lookup tables are stored, for example, in a spare area or a cache of the memory array 110. Through these lookup tables, the lookup table management unit 130 converts the logical address of the access target into the physical address of the memory array 110. Specifically, the lookup table management unit 130 includes a flash translation layer (FTL) that can convert a logical block address (LBA) into a physical block address (PBA). The memory controller 120 moves data into or out of a selected memory cell according to the physical address provided by the lookup table management unit 130.
[0033] It is worth noting that the prediction unit 150 of the present embodiment can analyze the access history of the data storage device 100. The prediction unit 150 collects multiple access instructions (hereinafter referred to as previous access instructions) in the access history, and obtains multiple association rules (Association Rules) based on these previous access instructions. The above-mentioned association rules reflect the position correlation between access targets. More specifically, the prediction unit 150 quantizes these previous access instructions to obtain multiple quantized data, and performs association rule analysis (Association Rules Analysis) on these quantized data to obtain these association rules. The lookup table management unit 130 manages these lookup tables according to the association rules provided by the prediction unit 150. The lookup table management unit 130 determines whether the current access instruction corresponds to at least one of these existing lookup tables to obtain the physical address of the current access instruction in the memory array 110 from the corresponding lookup table, and predicts the lookup table corresponding to the access instruction received in the future (hereinafter referred to as the subsequent access instruction) according to the corresponding association rule. When none of the existing lookup tables corresponds to the current access instruction, the lookup table management unit 130 establishes a lookup table corresponding to the current access instruction and pre-establishes a lookup table predicted to correspond to a subsequent access instruction according to a correlation rule.
[0034] In this embodiment, the prediction unit 150 and the lookup table management unit 130 may be implemented in the form of hardware and / or software, and the present invention is not limited thereto. In one embodiment, the prediction unit 150 or the lookup table management unit 130 may be pre-stored in the data storage device 100 in the form of firmware, middleware, or application (APP), and executed by the memory controller 120 or the processor.
[0035] Several embodiments are given below to specifically illustrate the implementation details of the data storage device 100 .
[0036] Figure 2 is a schematic diagram of a segmentation method of a logical address of a data storage device according to an embodiment of the present invention, Figure 3 is a schematic diagram of the process of correlation rule analysis according to an embodiment of the present invention. Figure 2 , the logical address range 200 presents the data storage space of the memory array 110 in a linear manner, and the logical address range 200 of the memory array 110 is quantized and divided into a plurality of storage segments, such as Figure 2Memory segments A to G are shown. In detail, memory segment A includes a range of logical addresses 0x2000 to 0x2999 in the logical address range 200. Memory segment B includes a range between logical addresses 0x3000 to 0x3999. Memory segment C includes a range between logical addresses 0x4000 to 0x4999. Memory segment D includes a range between logical addresses 0x5000 to 0x5999. Memory segment E includes a range between logical addresses 0x6000 to 0x6999. Memory segment F includes a range between logical addresses 0x7000 to 0x7999. Memory segment G includes a range between logical addresses 0x8000 to 0x8999.
[0037] The present invention does not limit the storage space size, the number of storage segments, and the logical address range of each storage segment of the memory array 110. In addition, in the present embodiment, the data storage space of the memory array 110 is equally divided into a plurality of storage segments A to G, that is, the length of the logical address range of each storage segment in the storage segments A to G is the same, but in other embodiments, the data storage space of the memory array 110 is quantized and marked as a plurality of storage segments, and the lengths of the address ranges of these storage segments may be different.
[0038] Each access instruction received by the data storage device 100 includes the starting logical block address and sector length of the access target, so the prediction unit 150 can convert the access instruction accordingly according to the storage segments A to G after quantization processing, and convert the position of the access target into the corresponding storage segment. This embodiment takes 8 previous access instructions cmd1 to cmd8 as an example, and the following Table 1 records the starting logical block address, sector length and corresponding storage segment items of the previous access instructions cmd1 to cmd8. For example, the address range of the access target of the previous access instruction cmd1 is from 0X2900 to 0X3000, corresponding to storage segment A and storage segment B; the address range of the access target of the previous access instruction cmd2 is from 0X5200 to 0X7200, and corresponds to storage segment D, storage segment E and storage segment F at the same time, and so on. The storage segment items corresponding to the other previous access instructions cmd3 to cmd8 are not described in detail.
[0039] Table 1
[0040]
[0041] The prediction unit 150 counts the number of accesses to the memory segments A-G by the previous access instructions cmd1-cmd8, and performs correlation rule analysis based on the number of accesses to the memory segments A-G. Figure 3 , Figure 3The quantized data 301 records the number of times the previous access instructions cmd1-cmd8 access the storage segments A-G. It can be seen from Table 1 that the access ranges of the previous access instructions cmd1, cmd4, cmd5 and cmd7 all involve storage segment A and storage segment B, and the access times of storage segment A and storage segment B are both 4; the access ranges of the previous access instructions cmd4, cmd5, cmd7 and cmd8 all involve storage segment C, and the access times of storage segment C is 4; the access ranges of the previous access instructions cmd2, cmd4, cmd5, cmd7 and cmd8 all involve storage segment D, and the access times of storage segment D is 5; the access ranges of the previous access instructions cmd2, cmd5, cmd6 and cmd7 all involve storage segment E, and the access times of storage segment E is 4; the access ranges of the previous access instructions cmd2, cmd3, cmd5 and cmd6 all involve storage segment F, and the access times of storage segment F is 4; the access ranges of the previous access instructions cmd3 and cmd6 all involve storage segment G, and the access times of storage segment G is 2. Here, the number of accesses to each storage segment represents the support in the correlation rule analysis. In other words, the quantized data 301 records the support of the previous access instructions cmd1 to cmd8 for each storage segment. The prediction unit 150 can select useful quantized data based on the minimum support threshold. In this embodiment, the minimum support threshold is set to 2. If the support of a certain storage segment of the quantized data 301 is less than the minimum support threshold, the quantized data of the storage segment will be regarded as insufficiently relevant and eliminated. On the other hand, the quantized data with support not less than the minimum support threshold will be retained. The quantized data 301 is completely retained.
[0042] Next, the prediction unit 150 infers the quantized data 302. The quantized data 302 records the support of any two memory segment combinations. For example, the access ranges of the previous access instructions cmd1, cmd4, cmd5, and cmd7 involve both memory segment A and memory segment B, and the support of memory segment item AB is 4; the access ranges of the previous access instructions cmd5 and cmd7 involve both memory segment A and memory segment E, and the support of memory segment item AE is 2; no previous access instruction involves both memory segment A and memory segment G, so the support of memory segment item AG is 0, and so on, and the analysis of the remaining memory segment combinations will not be described in detail here.
[0043] Next, since the support of some storage segment items of the quantized data 302 is less than 2, the prediction unit 150 deletes the unqualified quantized data to retain the quantized data 303 with certain relevance.
[0044] Next, the prediction unit 150 infers the quantized data 304. The quantized data 304 records the support of any combination of three memory segments. For example, the access ranges of the previous access instructions cmd4, cmd5, and cmd7 involve memory segments A, memory segments B, and memory segments C, and the support of memory segment item ABC is 3; the access ranges of the previous access instructions cmd5 and cmd7 involve memory segments A, memory segments B, and memory segments E, and the support of memory segment item ABE is 2, and so on.
[0045] Next, the prediction unit 150 infers the quantized data 305. The quantized data 305 records the support of any combination of four memory segments. For example, the access ranges of the previous access instructions cmd4, cmd5, and cmd7 involve memory segments A, B, C, and D, and the support of memory segment item ABCD is 3; the access ranges of the previous access instructions cmd5 and cmd7 involve memory segments A, B, C, and E, and the support of memory segment item ABCE is 2, and so on.
[0046] The prediction unit 150 continues to generate the quantized data 306. The quantized data 305 records the support of any combination of 5 storage segments. So far, the quantized data 306 only includes one storage segment item ABCDE with a support of 2. The prediction unit 150 will infer the support of all storage segment combinations.
[0047] The prediction unit 150 further calculates the confidence between each storage segment or each storage segment combination, and determines one or more correlation rules according to the minimum confidence threshold, so that the lookup table management unit 130 predicts the lookup table corresponding to the subsequent access instruction according to the above correlation rules. The confidence is the support ratio between each storage segment or the storage segment combination, and the correlation rule is established only when the confidence is greater than or equal to the minimum confidence threshold.
[0048] Please refer to the above Figure 3The multiple quantized data 301-306, here, the minimum credibility threshold is set to 0.75. The following are several examples for illustration. Taking the storage segment combination ABCD and storage segment D as an example, the credibility between the two is 1, which is greater than the minimum credibility threshold, so the prediction unit 150 establishes a correlation rule between the storage segment combination ABC and the storage segment D. In other words, when the access range of the access instruction currently received by the data storage device 100 (also called the current access instruction) involves storage segments A, storage segments B and storage segments C, the prediction unit 150 predicts that the next possible access range falls within storage segment D. Taking the correlation between storage segment A and storage segment combination ABCD as an example, the credibility is 0.75, which just passes the minimum credibility threshold, and the prediction unit 150 establishes a correlation rule between storage segment A and storage segment combination ABC. If the access range of the current access instruction falls within storage segment A, the prediction unit 150 predicts that the next possible access range involves storage segments A, storage segments B and storage segments C. Taking the correlation between storage segment B and storage segment combination BCDE as an example, the credibility is 0.5, which does not exceed the minimum credibility threshold, and the prediction unit 150 will not establish the correlation rule between storage segment B and storage segment combination CDE. If the access range of the current access instruction falls within storage segment B, the prediction unit 150 predicts that the next possible access range will not involve storage segments C, storage segments D, and storage segments E at the same time.
[0049] The lookup table management unit 130 establishes a plurality of lookup tables that are correlated with the current access instruction according to the correlation rules provided by the prediction unit 150. Specifically, the mapping range of each lookup table may be equal to the logical address range of at least one storage segment. In the present embodiment, the mapping range of each lookup table is equal to the logical address range of one of the storage segments A to G. In another embodiment, the mapping range of the lookup table may also include the logical address ranges of a plurality of storage segments. The present invention does not limit the mapping range of the lookup table.
[0050] Taking the case where the access target of the current access instruction falls within storage segment A as an example, the lookup table management unit 130 determines whether the current access instruction hits (Hit) the existing lookup table. If it hits, the lookup table management unit 130 provides the physical address of the current access instruction to the memory controller 120, and predicts that the location of the next possible access target falls within the range of 0x2000 to 0x4999 (storage segment A to storage segment C) based on the correlation rule of storage segment A. The lookup table management unit 130 further prepares a lookup table that maps this access range. The lookup table management unit 130 can also further predict other possible access locations based on the correlation rules of storage segments BCD or other correlation rules of storage segment A, and prepare a lookup table, and so on. In short, the lookup table management unit 130 will sequentially prepare lookup tables that are correlated or indirectly correlated with storage segment A, so these lookup tables have a correlation rule relationship with each other.
[0051] If the current access instruction does not hit (miss) the existing lookup table, the lookup table management unit 130 will establish a lookup table that can correspond to the current access instruction, and will also re-establish multiple lookup tables that are relevant to the current access instruction according to the correlation rule. The newly established multiple lookup tables will include the lookup table that is predicted to be used next. In short, when the current access instruction does not correspond to any of the existing multiple lookup tables, the lookup table management unit 130 will establish the lookup table corresponding to the current access instruction according to the correlation rule and pre-establish the lookup table that is predicted to correspond to the subsequent access instruction.
[0052] In this embodiment, when the storage space of the lookup table is insufficient, the lookup table management unit 130 will preferentially remove the lookup table corresponding to the minimum support or the lookup table with the lowest correlation with the current access instruction according to the correlation rule. In one embodiment, the support of storage segment G is the smallest, or the access range of the current access instruction involves both storage segment B and storage segment C, and the correlation between storage segment G and the combined storage segment BC is the lowest (or even irrelevant), and the lookup table management unit 130 selects to remove the lookup table corresponding to storage segment G.
[0053] In this embodiment, the prediction unit 150 obtains the correlation rules between access positions by analyzing multiple previous access instructions in the access history, and the lookup table management unit 130 manages the lookup table according to the correlation rules, and even prepares the lookup table corresponding to the possible access positions in the future, so as to improve the access efficiency of the data storage device 100. Among them, this embodiment also reduces the computational burden of correlation rule analysis by quantization processing.
[0054] Figure 41 is a functional block diagram of a data storage system according to another embodiment of the present invention. The data storage system 40 includes a host H and a data storage device 400. The data storage device 400 may be a NAND flash memory, but is not limited thereto. The data storage device 400 is similar to the data storage device 100, but may not include the prediction unit 150. The data storage device 400 is electrically connected to the host H via the input / output interface 140, wherein the host H includes a computing device 402.
[0055] The host H sends an access instruction to the data storage device 400 to write or read data, and records the previously sent access instructions. The computing device 402 can perform the actions of the prediction unit 150 of the data storage device 100, and obtain multiple correlation rules according to multiple previous access instructions. The computing device 402 can be a central processing unit (CPU), a microprocessor (Microprocessor), a digital signal processor (DSP), a programmable controller, an application specific integrated circuit (ASIC), a programmable logic device (PLD) or other similar devices or a combination of these devices, and performs correlation rule analysis by executing firmware or software.
[0056] The data storage device 400 receives these correlation rules and the current access instruction from the host H through the input / output interface 140. The lookup table management unit 130 manages multiple lookup tables according to the received correlation rules. The lookup table management unit 130 can determine whether the current access instruction corresponds to at least one of the existing lookup tables to obtain the physical address of the current access instruction in the memory array 110 from the corresponding lookup table, and predict the lookup table corresponding to the subsequent access instruction according to the correlation rules. The implementation details of how the computing device 402 obtains the correlation rules between the access positions and how the lookup table management unit 130 manages the lookup table can be referred to the description of the above embodiment, and will not be repeated here.
[0057] In this embodiment, the execution action of the correlation rule analysis is delivered to the computing device 402 of the host H, so that the computing requirements of the data storage device 400 can be reduced. By receiving the correlation rule from the host H, the data storage device 400 still has the effect of predicting the lookup table that may be used in the future and improving the access hit rate.
[0058] Figure 54 is a flowchart of a method for managing a data storage device according to an embodiment of the present invention. The management method 500 can be applied to the above-mentioned data storage device 100 and the data storage system 40. The steps of the management method 500 are described below with reference to the reference numerals of the above-mentioned embodiments.
[0059] In step S510, a plurality of correlation rules are obtained according to a plurality of previous access instructions by the prediction unit 150 or the computing device 402. These correlation rules are provided to the lookup table management unit 130. Then, in step S520, a plurality of lookup tables are established according to these correlation rules by the lookup table management unit 130. Then, in step S530, the data storage device 100 or the data storage device 400 receives the current access instruction. In step S540, the lookup table management unit 130 determines whether the current access instruction corresponds to at least one of the existing lookup tables. If the current access instruction hits the existing lookup table, step S550 is performed, and the lookup table management unit 130 predicts the lookup table corresponding to the subsequent access instruction according to the correlation rules. In addition, step S570 is performed, and the lookup table management unit 130 obtains the physical address of the current access instruction from the corresponding lookup table, and the memory controller 120 performs an access action according to the physical address of the current access instruction. If the current access instruction does not hit the existing lookup table, step S560 is performed to establish a lookup table corresponding to the current access instruction and a lookup table predicted to correspond to the subsequent access instruction according to the correlation rules. Then, in step S570, the lookup table management unit 130 obtains the physical address of the current access instruction from the newly established lookup table, and the memory controller 120 performs an access action according to the physical address of the current access instruction.
[0060] The implementation details of the management method 500 may be Figures 1 to 4 The embodiments of the present invention provide sufficient suggestions, teachings or instructions, which will not be repeated here.
[0061] Figure 6 6 is a flowchart of a data storage device management method according to another embodiment of the present invention. The management method 600 can be applied to the above-mentioned data storage device 100 and data storage system 40. The steps of the management method 600 are described below with reference to the reference numerals of the above-mentioned embodiments.
[0062] The data storage device 100 or the data storage device 400 is installed on an electronic device. Figure 4For example, the host H is used. In step S610, the host H is turned on. In step S620, it is confirmed whether there is at least one correlation rule. When at least one correlation rule has been stored in the host H or the data storage device 100 or 400, step S630 is performed, and the lookup table management unit 130 preferentially establishes a lookup table corresponding to the highest support as an initial lookup table according to the correlation rule, and establishes other multiple lookup tables that are correlated with the initial lookup table according to the correlation rule. When multiple lookup tables are established, the above steps S540 to S570 are performed. When it is confirmed that no correlation rule has been established at present, step S640 is executed, the lookup table management unit 130 establishes these lookup tables according to the preset rules and the prediction unit 150 starts to record the access history of the data storage device 100 or the host H starts to record the access history of the data storage device 400, and the above step S570 is continued until enough previous access instructions are collected, and the computing device 402 or the prediction unit 150 obtains the correlation rule according to the previous access instructions of the access history. The preset rules may be factory settings or established in sequence according to the order of the logical block addresses. The present invention does not limit the way of establishing the preset rules.
[0063] The implementation details of step S540 to step S570 can be found in the above description and will not be repeated here.
[0064] In summary, the above embodiments of the present invention provide a data storage system, a data storage device, and a data storage device management method. The access history of the data storage device is analyzed to obtain the correlation rules between previous access positions, and a lookup table is established based on the correlation rules and even the next access range is predicted to prepare the required lookup table. In this way, the data storage device can adaptively prepare the lookup table according to the hot data, improve the hit rate of the lookup table, reduce the number of times the lookup table is rebuilt, and thus improve the access performance of the storage device.
[0065] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A data storage device, It is characterized in that include: Memory array; A prediction unit, configured to obtain a plurality of correlation rules between a plurality of access locations according to a plurality of previous access instructions; as well as a lookup table management unit, configured to manage a plurality of lookup tables according to the plurality of correlation rules, wherein the lookup table management unit determines whether a current access instruction corresponds to at least one of the plurality of lookup tables to obtain a physical address of the current access instruction in the memory array from the corresponding lookup table, and predicts a lookup table corresponding to a subsequent access instruction according to the plurality of correlation rules, The prediction unit performs quantization processing on the plurality of previous access instructions to obtain a plurality of quantized data, and performs correlation rule analysis on the plurality of quantized data to obtain the plurality of correlation rules, The logical address range of the memory array is calibrated and divided into a plurality of storage segments after the quantization process. The prediction unit counts the number of accesses to the plurality of storage segments by the plurality of previous access instructions, and performs the correlation rule analysis according to the number of accesses to the plurality of storage segments.
2. The data storage device according to claim 1, It is characterized in that The mapping range of each of the lookup tables is equal to the logical address range of at least one of the storage segments.
3. The data storage device according to claim 1, It is characterized in that When the current access instruction does not correspond to any of the plurality of lookup tables, the lookup table management unit establishes a lookup table corresponding to the current access instruction and pre-establishes a lookup table predicted to correspond to the subsequent access instruction according to the plurality of correlation rules.
4. The data storage device according to claim 1, It is characterized in that The lookup table management unit establishes the plurality of lookup tables having dependencies on the current access instruction according to the plurality of dependency rules.
5. The data storage device according to claim 1, It is characterized in that The lookup table management unit preferentially removes the lookup table corresponding to the minimum support or the lookup table with the lowest correlation with the current access instruction according to the plurality of correlation rules.
6. A data storage system, It is characterized in that include: A host, comprising a computing device, wherein the computing device obtains a plurality of correlation rules according to a plurality of previous access instructions; as well as A data storage device is electrically connected to the host and comprises: an input-output interface, wherein the data storage device receives the plurality of correlation rules and the current access instruction from the host through the input-output interface; a memory array; and a lookup table management unit, configured to manage a plurality of lookup tables according to the plurality of correlation rules, wherein the lookup table management unit determines whether the current access instruction corresponds to at least one of the plurality of lookup tables to obtain a physical address of the current access instruction in the memory array from the corresponding lookup table, and predicts a lookup table corresponding to a subsequent access instruction according to the plurality of correlation rules, The computing device performs quantization processing on the plurality of previous access instructions to obtain a plurality of quantized data, and performs correlation rule analysis on the plurality of quantized data to obtain the plurality of correlation rules, The logical address range of the memory array is marked and divided into a plurality of memory segments. The computing device counts the number of accesses to the plurality of memory segments by the plurality of previous access instructions and performs the correlation rule analysis according to the number of accesses to the plurality of memory segments.
7. The data storage system according to claim 6, It is characterized in that The mapping range of each of the lookup tables is equal to the logical address range of at least one of the storage segments.
8. The data storage system according to claim 6, It is characterized in that When the current access instruction does not correspond to any of the plurality of lookup tables, the lookup table management unit establishes a lookup table corresponding to the current access instruction and pre-establishes a lookup table predicted to correspond to the subsequent access instruction according to the plurality of correlation rules.
9. The data storage system according to claim 6, It is characterized in that The lookup table management unit establishes the plurality of lookup tables having dependencies on the current access instruction according to the plurality of dependency rules.
10. The data storage system according to claim 6, It is characterized in that The lookup table management unit preferentially removes the lookup table corresponding to the minimum support or the lookup table with the lowest correlation with the current access instruction according to the plurality of correlation rules.
11. A method for managing a data storage device, It is characterized in that include: obtaining a plurality of dependency rules based on a plurality of previous access instructions; Establishing a plurality of lookup tables according to the plurality of correlation rules; receiving a current access instruction, and determining whether the current access instruction corresponds to at least one of the plurality of lookup tables to obtain a physical address of the current access instruction from the corresponding lookup table; as well as Predicting the lookup table corresponding to the subsequent access instruction according to the plurality of correlation rules, The step of obtaining the plurality of dependency rules according to the plurality of previous access instructions comprises: The method further comprises: performing quantization processing on the plurality of previous access instructions to obtain a plurality of quantized data, and performing correlation rule analysis on the plurality of quantized data to obtain the plurality of correlation rules, comprising: Marking and dividing the logical address range of the memory array of the data storage device into a plurality of memory segments; Counting the number of times the plurality of previous access instructions access the plurality of storage segments; and The correlation rule analysis is performed according to the access times of the plurality of storage segments.
12. The management method according to claim 11, It is characterized in that The mapping range of each of the lookup tables is equal to the logical address range of at least one of the storage segments.
13. The management method according to claim 11, It is characterized in that The step of determining whether the current access instruction corresponds to at least one of the plurality of lookup tables comprises: When the current access instruction does not correspond to any of the plurality of lookup tables, a lookup table corresponding to the current access instruction is established according to the plurality of correlation rules, and a lookup table predicted to correspond to the subsequent access instruction is established in advance.
14. The management method according to claim 11, It is characterized in that Also includes: The lookup table corresponding to the minimum support or the lookup table with the lowest correlation with the current access instruction is preferentially removed according to the plurality of correlation rules.
15. The management method according to claim 11, It is characterized in that The step of establishing the plurality of lookup tables according to the plurality of correlation rules comprises: confirming whether the plurality of correlation rules exist; When the plurality of correlation rules do not exist, establishing the plurality of lookup tables according to preset rules and starting to record the access history of the data storage device until the plurality of correlation rules are obtained according to the plurality of previous access instructions of the access history; and When the plurality of dependency rules exist, the plurality of lookup tables having dependencies with the current access instruction are established according to the plurality of dependency rules.
16. The management method according to claim 15, It is characterized in that The step of starting to establish the plurality of lookup tables according to the plurality of correlation rules comprises: According to the multiple correlation rules, a lookup table corresponding to the highest support is preferentially established as an initial lookup table, and according to the multiple correlation rules, the other multiple lookup tables that are correlated with the initial lookup table are established.
