Storage management method, storage device, and storage medium

CN115525208BActive Publication Date: 2026-08-07ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZTE CORP
Filing Date
2021-06-24
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

但由于存储芯片在判断待存储数据的数据类型仅使用了待存储数据本身的参数信息,这导致在对数据的类型进行判断时容易产生误差,导致数据分区出错,降低了存储芯片的使用寿命

Benefits of technology

[0008]This invention provides a storage management method, storage device, and storage medium. The method involves receiving data to be stored and a first type determined by a terminal based on the data. Then, the data type of the data to be stored is determined based on the data and the first type. This allows for partitioned storage of data of different data types in different storage areas. By combining the determination of the data type with the first type determined by the terminal, the interaction between the storage device and the terminal is increased, thereby improving the accuracy of data type determination and extending the lifespan of the storage device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115525208B_ABST
    Figure CN115525208B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of storage management method, storage device and storage medium, belong to data storage technical field.The method comprises: receiving data to be stored and the first type determined by terminal based on the data to be stored;According to the data to be stored and the first type, the data type of the data to be stored is determined, and according to the data type, the data to be stored is stored in different storage area.The technical scheme of the embodiment of the present application can improve the service life of storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data storage technology, and in particular to a storage management method, storage device, and storage medium. Background Technology

[0002] With the continuous development of computer technology, the overall performance of terminals is constantly improving, which places higher demands on components such as memory chips. To extend the lifespan of memory chips and enhance the overall I / O performance of the terminal, memory chips often operate independently during data storage and organization. For example, when storing data, a memory chip determines the data type based on the data parameters of the data itself, and then partitions the data according to different types. However, because the memory chip only uses the parameters of the data itself to determine the data type, errors can easily occur in determining the data type, leading to incorrect data partitioning and reducing the lifespan of the memory chip. Summary of the Invention

[0003] The main objective of this invention is to provide a storage management method, storage device, and storage medium, which aims to improve the lifespan of the storage device.

[0004] In a first aspect, embodiments of the present invention provide a storage management method, comprising:

[0005] The system receives data to be stored and a first type determined by the terminal based on the data to be stored; determines the data type of the data to be stored according to the data to be stored and the first type; and stores the data to be stored in different storage areas according to the data type.

[0006] Secondly, embodiments of the present invention also provide a storage device, the storage device including a controller, a memory, a computer program stored in the memory and executable by the controller, and a data bus for implementing connection communication between the controller and the memory, wherein when the computer program is executed by the controller, it implements the steps of any of the storage management methods provided in this specification.

[0007] Thirdly, embodiments of the present invention also provide a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of any of the storage management methods provided in this specification.

[0008] This invention provides a storage management method, storage device, and storage medium. The method involves receiving data to be stored and a first type determined by a terminal based on the data. Then, the data type of the data to be stored is determined based on the data and the first type. This allows for partitioned storage of data of different data types in different storage areas. By combining the determination of the data type with the first type determined by the terminal, the interaction between the storage device and the terminal is increased, thereby improving the accuracy of data type determination and extending the lifespan of the storage device. Attached Figure Description

[0009] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 A system architecture diagram of a storage management system provided in an embodiment of the present invention;

[0011] Figure 2 A schematic flowchart of a storage management method provided in an embodiment of the present invention;

[0012] Figure 3 This is a flowchart illustrating the process of determining the second type of data to be stored based on the data parameters of the data to be stored, as provided in an embodiment of the present invention.

[0013] Figure 4 This is a flowchart illustrating the process of determining the second type of data to be stored based on the data parameters of the data to be stored, as provided in an embodiment of the present invention.

[0014] Figure 5 This is a schematic block diagram of a storage device provided in an embodiment of the present invention. Detailed Implementation

[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0016] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0017] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0018] This invention provides a storage management method, a storage device, a system, and a storage medium. The storage management method can be applied to a storage device installed within a terminal, and by interacting with the terminal's processor, it aims to improve the accuracy of data type identification and extend the lifespan of the storage device.

[0019] Please refer to Figure 1 , Figure 1 This is a system architecture diagram of a storage management system provided in an embodiment of the present invention.

[0020] like Figure 1 As shown, the storage management system 100 is applied on a terminal, which can be a mobile terminal, such as a mobile phone, tablet computer, laptop computer, desktop computer, personal digital assistant and wearable device, or other electronic devices with storage functions.

[0021] The storage management system 100 includes a processor 101 within the terminal and a storage device 102 within the terminal. The storage device 102 may be a storage chip installed within the terminal, used to store data generated during the use of the terminal.

[0022] The processor 101 determines the first type of the data to be stored based on the terminal parameters required when storing the data to be stored, and sends the determined first type to the storage device 102 in a format pre-agreed with the storage device 102.

[0023] After receiving the data to be stored and the first type determined by the processor 101, the storage device 102 determines the second type of the data to be stored based on the data parameters of the data to be stored, and then determines the data type of the data to be stored based on the first type and the second type.

[0024] For example, if the processor 101 determines that the first type of the data to be stored is hot data based on the terminal parameters, and sends the first type to the storage device 102, and the storage device 102 determines that the second type of the data to be stored is hot data based on the data parameters of the data to be stored, then the first type and the second type are the same, and the data type of the data to be stored is considered to be hot data.

[0025] After determining the data type of the data to be stored, the storage device 102 can store the data to be stored in different storage areas according to the different data types of the data to be stored, so as to partition and store data of different data types.

[0026] When determining the data type of the data to be stored, the storage device 102 combines the first type of the data to be stored determined by the processor 101, so that the terminal parameters are used as a determining condition when determining the data type of the data to be stored, thereby improving the accuracy of data type determination.

[0027] In addition, storage device 102 also needs to perform data organization and cache organization on the data stored in each storage area.

[0028] The processor 101 can generate data defragmentation information based on user habits and send it to the storage device 102. Upon receiving the data defragmentation information, the storage device 102 can adjust its data defragmentation and cache defragmentation strategies accordingly. By combining user habits and the current scenario with data defragmentation and cache defragmentation, the system not only extends the lifespan of the storage device 102 and improves terminal I / O performance, but also enhances the user experience.

[0029] The following is in conjunction with the accompanying drawings and... Figure 1 The storage management system shown herein provides a detailed description of some embodiments of the present invention. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0030] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a storage management method provided in an embodiment of the present invention.

[0031] like Figure 2 As shown, the storage management method includes steps S201 to S202.

[0032] Step S201: Receive the data to be stored and the first type determined by the terminal's processor based on the data to be stored.

[0033] The first type refers to the data type of the data to be stored, which is determined by the processor within the terminal based on the terminal parameters. The data type can include both hot data and cold data.

[0034] In one embodiment, when the terminal determines the first type of data to be stored based on terminal parameters, it can first obtain the terminal parameters required for data storage, and then analyze whether the data to be stored is being used frequently based on the terminal parameters. If the data to be stored is being used frequently, the first type of the data to be stored is determined to be hot data; if the data to be stored is not being used frequently, the first type of the data to be stored is determined to be cold data.

[0035] The terminal parameters may include, for example, at least one of the following: the terminal's current time, the current foreground process, the current background process, and other information about the terminal's operating system. When determining whether the data to be stored is frequently used based on the terminal parameters, a single terminal parameter can be used for the judgment, or multiple terminal parameters can be combined for the judgment.

[0036] For example, if the current foreground process of the terminal is related to the data to be stored, and the foreground process is running continuously, then the data to be stored can be considered as hot data.

[0037] For example, if the current foreground process of the terminal is unrelated to the data to be stored, but the background process is related to the data to be stored, and the background process is running continuously, then the data to be stored is considered to be hot data.

[0038] After the terminal's processor determines the first type of data to be stored, it sends the determined first type to the storage device. After receiving the first type of data to be stored and the data to be stored, the storage device then determines the data type of the data to be stored.

[0039] When sending the first type, the terminal's processor can send it to the storage device using a pre-agreed format. For example, it can send a type message and change the value of the data flag bit in the type message to represent different first types. For instance, if the first type is hot data, the value of the data flag bit is set to a positive value; if the first type is cold data, the value of the data flag bit is set to a negative value.

[0040] Step S202: Determine the data type of the data to be stored based on the data to be stored and the first type, and store the data to be stored in different storage areas according to the data type.

[0041] After receiving the data to be stored, the storage device determines the final data type of the data to be stored based on the data to be stored and the first type, and stores the data to be stored in different storage areas according to the determined data type.

[0042] The data types can include both cold data and hot data. Different data types can be stored in different storage areas to facilitate data management and improve the lifespan of storage devices.

[0043] For example, hot data can be stored in the first storage area, and cold data in the second storage area. The first storage area can be an SLC cache area, which has higher read and write performance and can reduce data compaction in the first storage area, thereby extending the storage time of data in the first storage area; the second storage area can be a TLC area, which has lower read and write performance and can use more aggressive data compaction to free up more storage space for users.

[0044] In one embodiment, the step of determining the data type of the data to be stored based on the data to be stored and the first type may include:

[0045] The second type of the data to be stored is determined based on the data parameters of the data to be stored; the data type of the data to be stored is determined based on the first type and the second type.

[0046] The storage device obtains the data parameters of the data to be stored, and then determines the second type of the data to be stored based on the data parameters. Then, it determines the data type of the data to be stored by combining the first type determined by the terminal's processor and the second type determined by itself.

[0047] In one embodiment, please refer to Figure 3 The step of determining the second type of data to be stored based on the data parameters of the data to be stored may include steps S2021 and S2022.

[0048] S2021. Obtain the data size and / or read / write frequency of the data to be stored; S2022. Determine the second type of the data to be stored based on the data size and / or read / write frequency of the data to be stored.

[0049] The read / write frequency refers to the frequency of reading and writing the logical address of the data to be stored within a preset time period. After obtaining the data size of the data to be stored and / or the read / write frequency of the logical address of the data to be stored within the preset time period, the second type of the data to be stored is determined based on the data size of the data to be stored and / or the read / write frequency of the logical address of the data to be stored within the preset time period.

[0050] For example, if the read / write frequency of the logical address of the data to be stored exceeds a preset value within a preset time period, the data to be stored is considered to be frequently read, and the second type of the data to be stored is determined to be hot data; if the read / write frequency of the logical address of the data to be stored does not exceed the preset value within a preset time period, the second type of the data to be stored can be considered to be cold data.

[0051] For example, if the read / write frequency of the logical address of the data to be stored does not exceed the preset value within a preset time period, and the data size of the data to be stored is large, then the second type of the data to be stored can be considered as cold data.

[0052] In one embodiment, please refer to Figure 4 The step of determining the second type of data to be stored based on the data parameters of the data to be stored may include steps S2023 and S2024.

[0053] S2023. Obtain the address mapping table of logical address and physical address of the data to be stored, and determine the association between the data to be stored and the data in the storage area according to the address mapping table; S2024. Determine the second type of the data to be stored according to the data parameters of the data to be stored and the association between the data to be stored and the data in the storage area.

[0054] Obtain the address mapping table of logical and physical addresses of the data to be stored, also known as the L2P table or P2L table. By using the address association relationship between the data to be stored and other data already stored in the storage area in the address mapping table, determine the association between the data to be stored and the data in the storage area. Then, combine the data parameters of the data to be stored with this association relationship to determine the second type of the data to be stored.

[0055] In practice, the second type of the data to be stored can be determined based on this association. For example, if the data to be stored is associated with data of type "hot data," then the second type of the data to be stored can be considered as "hot data." Simultaneously, the second type of the data to be stored is determined based on its data parameters.

[0056] Furthermore, in the process of determining the second type of the data to be stored by combining the data parameters of the data to be stored with the association relationship, one second type can be determined based on the data parameters of the data to be stored, and another second type can be determined based on the association relationship. When the second type determined by the data parameters and the association relationship are consistent, the consistent type is taken as the second type. When the second type determined by the data parameters and the association relationship are inconsistent, a method such as weight calculation can be used to determine the second type.

[0057] That is, corresponding relationship weights are assigned to the second type determined based on the association relationship, and corresponding parameter weights are assigned to the second type determined based on the data parameters. A relationship score is calculated based on the relationship weights, and a parameter score is calculated based on the parameter weights. The relationship score and the parameter score are added together. If the total score exceeds a preset score threshold, the second type of data to be stored is considered hot data; if the total score does not exceed the preset score threshold, the second type of data to be stored is considered cold data.

[0058] Once the storage device determines the second type of the data to be stored, the data type of the data to be stored can be determined based on the second type and the first type.

[0059] In one embodiment, the step of determining the data type of the data to be stored based on a first type and a second type includes:

[0060] If the second type is consistent with the first type, the consistent data type is used as the data type of the data to be stored; if the second type is inconsistent with the first type, the first weight corresponding to the first type and the second weight of the second type are obtained, and the first score is determined according to the first type and the first weight, and the second score is determined according to the second type and the second weight; the total score is determined according to the first score and the second score, and the data type of the data to be stored is determined based on the total score and a preset score threshold.

[0061] The system compares the first type and the second type to see if they are consistent. If they are, the consistent data type is used as the data type of the data to be stored. For example, if the first type is hot data and the second type is also hot data, then the consistent data type, i.e., the hot data, is used as the data type of the data to be stored, thus determining that the data to be stored is hot data.

[0062] When the first type and the second type are inconsistent, a first weight corresponding to the first type and a second weight corresponding to the second type can be obtained. A first score for the first type is calculated based on the first type and its corresponding first weight, and a second score for the second type is calculated based on the second type and its corresponding second weight. The first and second scores are added together. If the total score exceeds a preset score threshold, the data type to be stored is considered hot data; if the total score does not exceed the preset score threshold, the data type to be stored is considered cold data.

[0063] Additionally, when the first and second types are inconsistent, it can be determined whether the data to be stored meets the minimum conditions for hot data types. These minimum conditions could be, for example, the number of times the logical address of the data to be stored is accessed within a preset time period. If the data to be stored does not meet the minimum conditions for hot data types, it is considered cold data; conversely, if it does meet the minimum conditions for hot data types, it is considered hot data.

[0064] After storing the data to be stored, the storage device needs to continuously organize the stored data in the storage area and organize the cache in the storage area. During this process, the terminal side can obtain information such as the user's usage habits and current usage scenarios, and send this information to the storage device so that the storage device can adjust the data organization and cache organization strategies based on this information.

[0065] In one embodiment, the storage management method may further include: receiving data organization information sent by a terminal, and organizing the data in the storage area according to the data organization information.

[0066] The processor within the terminal acquires the user's usage habits or the terminal's current usage status, then makes corresponding operation suggestions based on these habits and sends them to the storage device via data processing. The user's usage habits can be obtained by acquiring and analyzing the user's terminal usage data over multiple historical usage periods.

[0067] The terminal's operation suggestions can include positive and negative suggestions. Positive suggestions indicate that data processing is recommended, while negative suggestions indicate that data processing is not recommended. These suggestions can be represented using data flags in the data processing information. For example, a positive flag indicates a positive suggestion, and a negative flag indicates a negative suggestion.

[0068] After receiving data cleanup information, the storage device can determine whether to clean up the storage area and select the appropriate data cleanup strategy based on the information.

[0069] For example, if the terminal is currently idle or has low performance requirements, the data flag is set to a positive value, and a data cleanup message is sent to the storage device. This suggests that the storage device perform data cleanup on the data within the storage area. Based on this, the storage device can perform large-scale data cleanup on the data stored in each storage area, such as garbage collection or wear leveling, which can affect peak I / O performance. If the terminal is currently in a high-performance scenario or is being used frequently, the data flag is set to a negative value, and a data cleanup message is sent to the storage device. This suggests that the storage device does not perform data cleanup on the data within the storage area. Based on this, the storage device can either not perform data cleanup on the data within the storage area or perform small-scale cleanup to avoid affecting the user experience.

[0070] In one embodiment, the storage management method further includes: receiving cache adjustment information sent by a terminal, and adjusting the cache settings of the storage area according to the cache adjustment information.

[0071] The processor within the terminal acquires the user's usage habits, then makes corresponding operation suggestions based on these habits, and sends these suggestions to the storage device via cache adjustment information. The user's usage habits are obtained by acquiring and analyzing the user's terminal usage data over multiple historical usage periods.

[0072] After receiving cache adjustment information, the storage device can determine whether to adjust the cache of the storage area based on the cache adjustment information.

[0073] For example, if analysis of historical user data reveals that users consistently use only a small amount of cache with few large writes, the cache adjustment information can suggest setting the storage device to a lower SLC cache value to meet user needs. However, if analysis of historical user data reveals that users write a large amount of data but have low performance requirements, the cache adjustment information can suggest that the storage device not use SLC caching and instead use TLC direct write, thereby extending the storage device's lifespan without affecting user experience.

[0074] In one embodiment, the storage management method further includes: receiving cache compaction information and / or data compaction information sent by the terminal during the current usage cycle, and performing cache compaction and / or data compaction on the storage area before the next usage cycle based on the cache compaction information.

[0075] The usage period can be measured in days. Within the current usage period, the terminal can send multiple data cleanup messages and cache cleanup messages to the storage device. This allows the storage device to clean up and adjust the data stored in the storage area and the cache in the storage area before the next usage period, so as to meet the user's usage needs and improve the user experience in the next usage period.

[0076] For example, if it's known that a user's usage habits involve high write volumes and performance requirements between 9:00 AM and 12:00 PM, the processor can generate corresponding operation suggestions based on these habits, recommending that the storage device defragment a larger cache before 9:00 AM each day. After receiving the cache defragmentation information from the processor, the storage device can pre-defragment a larger cache before 9:00 AM each day, based on this information, for use by users during the 9:00 AM to 12:00 PM period.

[0077] The storage management method provided in the above embodiments receives the data to be stored and a first type determined by the terminal based on the data to be stored. Then, it determines the data type of the data to be stored based on the data to be stored and the first type. This allows for partitioned storage of data of different data types in different storage areas. By combining the determination of the data type of the data to be stored with the first type determined by the terminal, the interaction between the storage device and the terminal is increased, thereby improving the accuracy of the data type determination and ultimately extending the lifespan of the storage device.

[0078] Please see Figure 5 , Figure 5 This is a schematic block diagram of a storage device provided in an embodiment of the present invention.

[0079] like Figure 5 As shown, the storage device 300 includes a controller 301 and a memory 302, which are connected via a bus 303, such as an I2C (Inter-integrated Circuit) bus.

[0080] Specifically, controller 301 provides computing and control capabilities to support the operation of the entire storage device. Controller 301 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0081] Specifically, the memory 302 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.

[0082] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the embodiments of the present invention, and does not constitute a limitation on the storage device to which the embodiments of the present invention are applied. A specific server may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0083] The processor is used to run a computer program stored in the memory, and implements any of the memory management methods provided in the embodiments of the present invention when executing the computer program.

[0084] In one embodiment, the processor is configured to run a computer program stored in memory, and when executing the computer program, perform the following steps:

[0085] The system receives data to be stored and a first type determined by the terminal based on the data to be stored; determines the data type of the data to be stored according to the data to be stored and the first type; and stores the data to be stored in different storage areas according to the data type.

[0086] In one embodiment, when the processor implements the step of determining the data type of the data to be stored based on the data to be stored and the first type, it is configured to:

[0087] The second type of the data to be stored is determined based on the data parameters of the data to be stored; the data type of the data to be stored is determined based on the first type and the second type.

[0088] In one embodiment, when the processor implements the step of determining the second type of the data to be stored based on the data parameters of the data to be stored, it is configured to:

[0089] Obtain the data size and / or read / write frequency of the data to be stored; determine the second type of the data to be stored based on the data size and / or read / write frequency.

[0090] In one embodiment, when the processor implements the step of determining the second type of the data to be stored based on the data parameters of the data to be stored, it is configured to:

[0091] Obtain an address mapping table of logical and physical addresses of the data to be stored, and determine the association between the data to be stored and the data within the storage area based on the address mapping table; determine the second type of the data to be stored based on the data parameters of the data to be stored and the association between the data to be stored and the data within the storage area.

[0092] In one embodiment, when the processor implements the step of determining the data type of the data to be stored based on the first type and the second type, it is configured to:

[0093] If the second type is consistent with the first type, then the consistent data type is taken as the data type of the data to be stored; if the second type is inconsistent with the first type, then the first weight corresponding to the first type and the second weight of the second type are obtained, and a first score is determined according to the first type and the first weight, and a second score is determined according to the second type and the second weight; a total score is determined according to the first score and the second score, and the data type of the data to be stored is determined based on the total score and a preset score threshold.

[0094] In one embodiment, the processor is further configured to implement:

[0095] The system receives data organization information sent by the terminal and organizes the data in the storage area according to the data organization information.

[0096] In one embodiment, the processor is further configured to implement:

[0097] The system receives cache adjustment information sent by the terminal and adjusts the cache settings of the storage area according to the cache adjustment information.

[0098] In one embodiment, the processor is further configured to implement:

[0099] The system receives cache organization information and / or data organization information sent by the terminal during the current usage period, and performs cache organization and / or data organization on the storage area before the next usage period based on the cache organization information.

[0100] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the storage device described above can be referred to the corresponding process in the aforementioned storage management method embodiments, and will not be repeated here.

[0101] This invention also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs that can be executed by one or more processors to implement the steps of any of the storage management methods provided in the specification of this invention.

[0102] The storage medium can be an internal storage unit of the storage device described in the foregoing embodiments, such as the hard drive or memory of the storage device. The storage medium can also be an external storage device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the storage device.

[0103] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware embodiments, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0104] It should be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0105] The sequence numbers of the above embodiments of the present invention are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The above descriptions are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A storage management method, characterized in that, include: Receive the data to be stored and a first type of the data to be stored, determined based on terminal parameters; Obtain the address mapping table of the logical address and physical address of the data to be stored, and determine the association between the data to be stored and the data in the storage area based on the address mapping table; The second type of the data to be stored is determined based on the data parameters of the data to be stored and the association between the data to be stored and the data in the storage area; The data type of the data to be stored is determined according to the first type and the second type, and the data to be stored is stored in different storage areas according to the data type, wherein the data type includes hot data and cold data; Determining the data type of the data to be stored based on the first type and the second type includes: If the second type is consistent with the first type, then the consistent data type shall be used as the data type of the data to be stored; If the second type is inconsistent with the first type, then obtain the first weight corresponding to the first type and the second weight of the second type, and determine the first score according to the first type and the first weight, and determine the second score according to the second type and the second weight; determine the total score according to the first score and the second score, and determine the data type of the data to be stored based on the total score and a preset score threshold; or, If the second type is inconsistent with the first type, the data type of the data to be stored is determined according to whether the data to be stored meets the minimum conditions of the data type of hot data. The minimum conditions include the number of times the logical address of the data to be stored is accessed within a preset time period.

2. The storage management method according to claim 1, characterized in that, The method further includes: The system receives data organization information sent by the terminal and organizes the data in the storage area according to the data organization information.

3. The storage management method according to claim 1, characterized in that, The method further includes: The system receives cache adjustment information sent by the terminal and adjusts the cache settings of the storage area according to the cache adjustment information.

4. The storage management method according to claim 1, characterized in that, The method further includes: The system receives cache organization information and / or data organization information sent by the terminal during the current usage period, and performs cache organization and / or data organization on the storage area before the next usage period based on the cache organization information.

5. A storage device, characterized in that, The storage device includes a controller, a memory, a computer program stored in the memory and executable by the controller, and a data bus for enabling communication between the controller and the memory, wherein the computer program, when executed by the controller, implements the steps of the storage management method as described in any one of claims 1 to 4.

6. A storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the storage management method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data storage method and electronic equipment

    CN110941398A