A method and device for predicting hot and cold attributes of data

By establishing a prediction model in SSD and predicting and updating hot and cold attributes based on data feature information, the problem of data storage differentiation in SSD is solved, enabling efficient storage of data and extending service life.

CN112379842BActive Publication Date: 2024-09-13HEFEI ZHIYUANCHEN INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011295845.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2024-09-13
Estimated Expiration
2040-11-18

AI Technical Summary

Technical Problem

In solid-state drives (SSDs), existing technology is difficult to effectively implement when predicting the hot and cold properties of data for differentiated storage to extend service life.

Method used

By establishing a prediction model based on data feature information, the hot and cold attributes of the data are determined, and the data is stored in the corresponding high-performance or low-performance partition. Linear regression and feature information are used to predict and update the model to achieve the hot and cold attributes of the data. Classification.

Benefits of technology

It effectively extends the service life of SSD, realizes differentiated storage of data and improves storage efficiency by accurately predicting the hot and cold properties of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112379842B
    Figure CN112379842B
Patent Text Reader

Abstract

The present application is applicable to the field of data storage technology, and provides a method and device for predicting hot and cold data of SSD, including: determining characteristic information of each first data among multiple first data stored in a solid state drive (SSD) and the hot and cold attributes corresponding to the characteristic information of each first data; determining the parameters of a first prediction model according to the characteristic information of each first data, the hot and cold attributes corresponding to the characteristic information of each first data, and a first function; predicting the hot and cold attributes of the second data according to the first prediction model and the characteristic information of the second data. The hot and cold attributes of data written into the SSD by other devices can be predicted, and the hot and cold data can be stored in different areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data storage technology, and in particular, relates to a method and device for predicting hot and cold properties of data in the field of storage technology. Background Art

[0002] Data storage devices, such as solid state disks (SSDs), often need to read and write data in daily use.

[0003] In order to increase the service life of SSD, data with different hot and cold attributes can be stored in partitions with different performance. Data stored in high-performance partitions have a higher access frequency, while data stored in low-performance partitions have a lower access frequency. Data with a high access frequency is called hot data, and data with a low access frequency is called cold data. In this way, the service life of SSD can be increased through differentiated storage. Therefore, when a piece of data is newly written into the SSD, predicting the hot and cold attributes of the data becomes an urgent problem to be solved. Summary of the invention

[0004] The embodiments of the present application provide a method and device for predicting the hot and cold properties of data, which can predict the hot and cold properties of data written into an SSD and store the data in different areas.

[0005] In a first aspect, an embodiment of the present application provides a method for predicting the hot and cold attributes of data, which is applied to an SSD, and includes: in a possible implementation method, determining characteristic information of each first data among multiple first data stored in the SSD and the hot and cold attributes corresponding to the characteristic information of each first data; determining parameters of a first prediction model based on the characteristic information of each first data, the hot and cold attributes corresponding to the characteristic information of each first data, and a first function; predicting the hot and cold attributes of the second data based on the first prediction model and the characteristic information of the second data.

[0006] In some possible implementations, predicting the hot and cold attributes of the second data according to the first prediction model and the feature information of the second data includes:

[0007] Performing linear regression on the first prediction model to obtain a second preset model, wherein the output value of the second prediction model is in the range of [M, N];

[0008] The hot and cold attributes of the second data are determined according to the feature information of the second data and the second prediction model.

[0009] In some possible implementations, the first prediction model is h θ (x)=θx=θ0+θ1x1+θ2x2+…+θ n x n ; The second prediction model is,

[0010] Among them, x1, x2...x n is the characteristic value indicated by the characteristic information of the second data, θ0, θ1, θ2, ... θ N is the parameter of the first prediction model, n is the number of the eigenvalues, θ=[θ0, θ1, θ2...θ n ] are θ0, θ1, θ2...θ N The matrix of parameters, θ T is the transpose of θ, x=[x1、x2...x n ] is x1, x2...x n The characteristic vector composed of , M = 0, N = 1.

[0011] In some possible implementations, determining the hot and cold attributes of the second data according to the feature information of the second data and the second prediction model includes:

[0012] Determining the true hot and cold attributes of the data predicted by the first prediction model;

[0013] Update the first prediction model according to the actual hot and cold attributes of the data predicted by the first prediction model and the hot and cold attributes predicted by the first prediction model

[0014] In some possible implementations, the first preset value is 0.5.

[0015] In some possible implementations, the first function is

[0016] Wherein, minJ(θ) refers to the minimum value of J(θ), m is the number of the first data input to the first prediction model, and x (i) is the feature vector of the i-th first data among the m first data, y (i) is the value corresponding to the cold and hot attributes of the i-th first data among the m first data.

[0017] In some possible implementations, the marking information of each first data is determined according to the hot and cold attributes corresponding to the characteristic information of each first data in the at least one first data, and the marking information of each first data is used to mark the hot and cold attributes of each first data;

[0018] If the second data is marked with marking information, the marking information is used to mark the hot and cold attributes of the history of the second data;

[0019] The tag information of the second data is compared with the tag information of at least part of the first data to determine the hot and cold attributes of the second data, and the second data is different from each of the first data.

[0020] In some possible implementations, determining the true hot and cold properties of the data predicted by the first prediction model;

[0021] The first prediction model is updated according to the actual hot and cold attributes of the data predicted by the first prediction model and the hot and cold attributes predicted by the first prediction model.

[0022] In some possible implementations, the characteristic information is the writing time of the data page and / or the physical address PDA of the data page and / or the logical address of the data page.

[0023] In a second aspect, an embodiment of the present application provides a device for predicting hot and cold properties of data, including a determination module and a prediction module, for executing the method in any possible implementation of the first aspect above.

[0024] In a third aspect, an embodiment of the present application provides an SSD, including a controller and a memory. The processor is used to read and execute a computer program stored in the memory to execute the method in the first aspect and any possible implementation thereof.

[0025] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which is stored a computer program (also referred to as instructions or codes) for implementing the method in the first aspect.

[0026] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program (also referred to as instructions or codes). When the computer program is executed by a computer, the computer implements the method in the first aspect.

[0027] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application establish a first prediction model by using the characteristic information and hot and cold attributes of the first data stored in the SSD, and the characteristic information of the second data can be input into the first prediction model to pre-store the hot and cold attributes of the second data, so that the SSD can directly store the data to be written in the corresponding partitions according to the hot and cold attributes, thereby realizing differentiated storage of data with different hot and cold attributes, and effectively extending the service life of the SSD. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0029] Figure 1 (a) is a schematic block diagram of an SSD provided in an embodiment of the present application

[0030] Figure 1 (b) is a schematic diagram of hot and cold partitions of an SSD provided in an embodiment of the present application;

[0031] Figure 2 This is a flowchart of a method for predicting hot and cold attributes of data provided in an embodiment of the present application;

[0032] Figure 3 is a flowchart of a method for updating a first prediction model provided in an embodiment of the present application;

[0033] Figure 4 This is a flowchart of another method for predicting hot and cold attributes of data provided in an embodiment of the present application;

[0034] Figure 5 It is a schematic diagram of a device for predicting hot and cold properties of data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0036] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0037] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0038] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0039] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0040] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0041] Figure 1 is a schematic diagram of an SSD100 provided in an embodiment of the present application, such as Figure 1 As shown in Figure (a), SSD100 includes a controller 101 and a memory 102. The controller 101 is used to control the memory 102 to store data. The memory 102 is used to store data. Some of the data stored in the memory 102 is read and written very frequently, and some is read and written less frequently. Usually, data with a high read and write frequency is called hot data, and data with a low read and write frequency is called cold data. In order to increase the life of SSD100, hot data and cold data are usually stored in partitions, with hot data stored in high-performance partitions and cold data stored in low-performance partitions.

[0042] For example, the memory 102 may be a disk array (Redundant Arrays of Independent Disks, RAID) composed of multiple hard disks.

[0043] Optionally, the SSD may use a flash memory (Flash Memory) as a storage medium, or may use a dynamic random access memory (Dynamic Random Access Memory, DRAM) as a storage medium, which is not limited in the present application.

[0044] like Figure 1 As shown in the middle (b) figure, the memory 102 includes a cold data area 1021 and a hot data area 1022. The cold data area 1021 is used to store cold data, and the hot data area 1022 is used to store hot data.

[0045] Optionally, the memory 102 may have different data area division modes, for example, the memory 102 includes a cold data area 1021, a hot data area 1022 and a warm data area for storing warm data, which is not limited in the present invention.

[0046] It should be understood that the data stored in the cold data area 1021 is erased and written less times; and the data stored in the hot data area is erased and written more times.

[0047] Optionally, the cold and hot attributes of data can be divided into cold data and hot data, or can be divided into cold data, warm data and hot data. This application does not limit this.

[0048] Figure 2 The following method can be executed by the SSD or by the controller 101 in the SSD. The following description takes the SSD execution as an example. Figure 2 In an embodiment of the present application, a method for predicting the hot and cold attributes of data may include the following steps:

[0049] S201, the SSD determines feature information of each first data among a plurality of first data stored in the SSD and a cold and hot attribute corresponding to the feature information of each first data.

[0050] Optionally, the characteristic information indicates at least one of the time when the characteristic data page is written into the SSD, the physical address PDA of the data page, and the logical address of the data page. Among them, one or more first data can constitute a data page, and the multiple first data in S201 can correspond to one data page or different data pages.

[0051] For example, if the data pages corresponding to two first data are the same, then the time when the two first data are written into the SSD, the physical address PDA of the data page and the logical address of the data page are also the same; in addition, in addition to the time when the two first data are written into the SSD, the physical address PDA of the data page and the logical address of the data page, other features indicated by the characteristic information of the two data may be different, such as the type of the data itself, for example, the type of the data is video type data, database type data or text type data.

[0052] It should be understood that if the feature indicated by the feature information includes a logical address of a data page, the logical address may be converted into a physical address by the SSD.

[0053] Specifically, in some possible implementations, multiple first data have been stored in the SSD memory 102, but the multiple first data have not yet been divided into corresponding hot and cold data areas. The hot and cold properties of each first data can be obtained by counting the number of times the multiple first data stored in the memory 102 are read and / or written, or the hot and cold properties of each first data can be obtained by counting the number of times the data page where each first data is located is read or written; first data with high read and write frequency is determined as hot data, and first data with low read and write frequency is determined as cold data.

[0054] For example, if the number of times the first data is read within a preset time period is greater than a preset number, the first data is hot data; if the number of times the first data is read within a preset time period is less than a preset number, the first data is cold data.

[0055] Through S201, the SSD determines the feature information of the first data and the cold and hot attributes of the first data to form a training set, and the following describes training a first prediction model based on the training set.

[0056] Optionally, the plurality of first data may be all data stored in the SSD, or may be part of the data stored in the SSD. The user may set it according to his actual needs. This application does not limit this.

[0057] S202, the SSD determines parameters of a first prediction model according to feature information of each first data, hot and cold attributes corresponding to the feature information of each first data, and a first function.

[0058] Optionally, the first function is preset.

[0059] Optionally, the first prediction model can be in the form of h θ (x)=θx=θ0+θ1x1+θ2x2+…+θ n x n .

[0060] Optionally, the first function is

[0061] Where m is the number of first data input to the first prediction model, x (i) is the characteristic vector of the i-th first data among the m first data, y (i) is the true value of the i-th first data output variable among the m first data, x1, x2, ...x n is a characteristic value indicated by the characteristic information of the second data, θ0, θ1, θ2, ... θ n are the parameters of the first prediction model, n is the number of eigenvalues, θ = [θ0, θ1, θ2...θ n ] is the matrix of the first prediction model parameters, x = [x1, x2...x n ] is the eigenvector of the eigenvalues.

[0062] Specifically, the parameters of the first preset model are unknown before S202. For example, θ in the first prediction model is [θ0, θ1, θ2, θ3, θ4, θ5, θ6, θ7, θ8, θ9, θ9, θ10, θ11, θ12, θ13, θ14, θ15, θ16, θ17, θ18, θ19, θ20, n ] is unknown; the first function is used to determine the parameters of the first prediction model. The physical meaning of the first function is: the function with the smallest error between the value of the real hot and cold properties of the first data and the known characteristic information of multiple first data when substituting them into the first prediction model. When J(θ) takes the minimum value, the unknown quantity θ of the first function is the parameter of the first prediction model. Solving the unknown quantity θ of the first function can determine the first prediction model.

[0063] Optionally, the real hot attribute of the first data can be assigned a value A, and the real cold attribute of the first data can be assigned a value B. In the first function, y (i) The value of is the real thermal attribute of the first data; for example, A and B are positive real numbers, A=1, B=0.

[0064] S203, the SSD predicts the hot and cold attributes of the second data according to the first prediction model and the feature information of the second data.

[0065] Alternatively, the second data may be data written into the SSD by any other device.

[0066] For example, if the second data has three feature information, the form of the first prediction model is h θ(x) = θx = θ0 + θ1x1 + θ2x2 + θ3x3, the first eigenvalue x1 of the second data is the number of reads of the data page where the second data is located, and the first characteristic parameter is θ1; the second eigenvalue x2 of the second data is the number of writes of the data page where the second data is located, and the second characteristic parameter is θ2; the third eigenvalue x3 of the second data is the eigenvalue inside the second data, and the third characteristic parameter is θ3. SSD inputs the three characteristic information of the second data into the first prediction model to obtain the output value, and the hot and cold attributes of the second data can be determined according to the output value.

[0067] Optionally, the real hot attribute of the first data may be assigned a value A, and the real cold attribute of the first data may be assigned a value B. If the value output by the second prediction model is close to A, the second data is hot data, and if the value output is close to B, the second data is cold data.

[0068] Optionally, the first prediction model may not be transformed, and the characteristic information of the second data may be directly input into an output value of the first prediction model; optionally, the first prediction model may be subjected to linear regression processing, or other forms of transformation may be performed on the first prediction model. The following example describes that the first prediction model may be subjected to linear regression processing to obtain a second prediction model, and SSD may predict the second data according to the second prediction model.

[0069] In some possible implementations, it is possible but not limited to The first prediction model is subjected to an S-shaped transformation, and the first prediction model is transformed into a second prediction model, wherein the output value range of the second prediction model is [M, N].

[0070] Among them, G, N, and M are any positive real numbers.

[0071] Optionally, the logistic function for transforming the first prediction model is The second prediction model obtained after transforming the first prediction model is

[0072] It should be understood that the second prediction model The output value range is [0, 1].

[0073] If the second prediction model is The SSD predicts the second data according to the second prediction model, including:

[0074] Input the feature vector x of the second data into the second prediction model Get the output value. Among them, θ T is the transpose of θ.

[0075] If the output value is greater than the first preset value Q, it is determined that the second data is hot data.

[0076] Optionally, the SSD writes the second data determined to be hot data to the hot data area 1022 .

[0077] If the output value is less than or equal to the first preset value Q, it is determined that the second data is cold data.

[0078] Optionally, the SSD writes the second data determined to be cold data into the cold data area 1021 .

[0079] In some possible implementations, if the output value is greater than a first preset value Q, the second data is determined to be hot data; if the output value is equal to the first preset value Q, the second data is determined to be warm data; if the output value is less than the first preset value Q, the second data is determined to be cold data.

[0080] Optionally, the first preset value Q=0.5.

[0081] It should be noted that the first preset value of 0.5 is for illustration rather than limitation, and the first preset value may be any real number greater than M and less than N in the output value range [0, 1] of the second prediction model. This application does not make any limitation on this.

[0082] Optionally, the first prediction model may not be updated, may be updated periodically, or may be updated when a trigger condition is satisfied. The following describes updating the first prediction model based on satisfying the trigger condition.

[0083] Figure 3 A method for updating the first prediction model is described. Hereinafter, a method for updating the first prediction model is described.

[0084] After the SSD predicts the plurality of second data according to S203 , the plurality of second data may update the first prediction model according to the prediction results of the plurality of second data.

[0085] S301, start.

[0086] S302, SSD statistics predicts the real hot and cold attributes of the plurality of second data according to S203.

[0087] S303, SSD compares the actual hot and cold attributes of the plurality of second data with the hot and cold attributes of the plurality of second data predicted in S203, and counts the number of prediction errors. If the number of prediction errors is greater than or equal to the number threshold λ of prediction errors, S305 is executed, otherwise S304 is executed.

[0088] It can be understood that the number threshold λ is a value preset by the SSD.

[0089] S304, SSD counts whether the total number of cold and hot attributes of the plurality of second data predicted in S230 is greater than or equal to the prediction number threshold c. If so, execute S305, otherwise execute S301.

[0090] As an alternative to S303 and S304, SSD can count the success rate of prediction. If the hot and cold attributes of a second data predicted by SSD are the same as the actual hot and cold attributes obtained by statistics, it means that the prediction of the second data is successful; if the hot and cold attributes of a second data predicted by SSD are different from the actual hot and cold attributes obtained by statistics, it means that the prediction of the second data fails. SSD determines the success rate of prediction based on the ratio of the number of successfully predicted second data to the total number of predicted second data. If the success rate is greater than a preset value, S301 is executed, otherwise S305 is executed.

[0091] S305, SSD updates the first prediction model.

[0092] Specifically, SSD updates the first prediction model according to the real hot and cold attributes of the plurality of second data counted in S302. If the predicted hot and cold attributes of a second data are the same as the real hot and cold attributes, the second data can be used as a sample in the training set to update the first prediction model, otherwise, the second data cannot be used as a sample in the training set.

[0093] It should be understood that updating the first prediction model may only execute S301-S303 and S305, or only execute S301-S302, S304-S305, or execute S301-S305.

[0094] Figure 4 Another example of a flow chart of a method for predicting the hot and cold attributes of data is provided to describe a method 400 for predicting the hot and cold attributes of second data by an SSD.

[0095] S401, start.

[0096] S402: When the SSD receives a command to write the second data, it first determines whether the second data has tag information. If the second data does not have tag information, execute the following steps: Figure 4 As shown in S403, otherwise, execute S404.

[0097] Optionally, the marking information is used to mark the hot and cold attributes of the second data.

[0098] S403, SSD predicts the hot and cold attributes of the second data according to the first prediction model or the second prediction model. Specifically, in S403, SSD predicts the hot and cold attributes of the second data according to the first prediction model or the second prediction model. Figure 2 Description of embodiments.

[0099] After S403, in S404, the SSD stores the second data in the corresponding hot and cold data areas according to the predicted hot and cold attributes of the second data. If the second data is predicted to be hot data, the second data is stored in the hot data area; if the second data is predicted to be cold data, the second data is stored in the cold data area.

[0100] S405: If the second data carries tag information, the SSD determines the hot and cold attributes of the second data according to the tag information of the second data.

[0101] It is understandable that the second data may be historical data of the SSD, and the tag information of the second data is tagged by the SSD. The SSD will tag the hot and cold attributes of each first data. In other words, the SSD can determine the hot and cold attributes of the first data according to the tag information of the first data, and determine the hot and cold attributes of the second data according to the tag information of the second data.

[0102] Specifically, S405 specifically includes: the SSD compares the tag information of the second data with the tag information of at least one first data, and if there is a tag information of the first data that is the same as the tag information of the second data, if the first data is hot data, the SSD determines that the second data is also hot data, and if the first data is cold data, the SSD determines that the second data is also cold data.

[0103] After S405, in S406, the SSD may store the second data in corresponding hot and cold data areas according to the predicted hot and cold attributes of the second data. If the second data is predicted to be hot data, the second data is stored in the hot data area; if the second data is predicted to be cold data, the second data is stored in the cold data area.

[0104] It should be understood that no matter whether the second data carries the mark information or not, the SSD may not execute S402 and directly execute S404. In other words, it is not necessary to determine whether the second data carries the mark information or not.

[0105] It should be understood that solutions obtained by simply replacing other feasible transformation modes of the solutions proposed in the embodiments of the present application are obvious to those skilled in the art, and the present application does not limit this.

[0106] like Figure 5 As shown, the embodiment of the present application also provides a device 500 for predicting hot and cold attributes of data, including:

[0107] A determination module 501 is used to determine feature information of each first data among a plurality of first data stored in the solid state drive SSD and a cold and hot attribute corresponding to the feature information of each first data;

[0108] The prediction module 502 is used to predict the hot and cold attributes of the second data according to the first prediction model and the feature information of the second data.

[0109] Optionally, the determination model 501 and the prediction model 502 in the device 500 may be run on Figure 1 In the controller 101 shown.

[0110] An embodiment of the present application also provides a computer-readable storage medium on which a computer program (also referred to as instructions or codes) for implementing the methods in the above embodiments is stored.

[0111] An embodiment of the present application further provides a computer program product, which includes a computer program (also referred to as instructions or codes). When the computer program is executed by a computer, the computer implements the method in the above embodiment.

[0112] It should be noted that the device and a method for predicting the hot and cold attributes of data in the above embodiments are based on the same inventive concept. Therefore, the specific functions in each functional module in the SSD may have corresponding method steps, which will not be repeated here.

[0113] The above are only preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent process transformation made by using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for predicting the hot and cold attributes of data, characterized in that: include: Determine characteristic information of each first data among a plurality of first data stored in the solid state drive SSD and a cold and hot attribute corresponding to the characteristic information of each first data; Determining parameters of a first prediction model according to the feature information of each first data, the hot and cold attributes corresponding to the feature information of each first data, and the first function; Predicting the hot and cold attributes of the second data according to the first prediction model and the feature information of the second data; Among them, the first function is ; Wherein, m is the number of the first data, is the feature vector of the i-th first data among the m first data, is the value corresponding to the cold and hot attributes of the i-th first data among the m first data, is a first prediction model, wherein the first prediction model is ,in, is a feature value indicated by the feature information of the second data input, are the parameters of the first prediction model, n is the number of the eigenvalues, =[ ]yes The matrix of parameters that make up .

2. The method according to claim 1, characterized in that in, Predicting the hot and cold attributes of the second data according to the first prediction model and the feature information of the second data includes: Performing linear regression on the first prediction model to obtain a second prediction model, wherein the output value of the second prediction model is in the range of [M, N]; The hot and cold attributes of the second data are determined according to the feature information of the second data and the second prediction model.

3. The method according to claim 2, characterized in that The second prediction model is: ; in, yes The transpose of =[ ]yes The eigenvector composed of M=0, N=1.

4. The method according to claim 3, characterized in that The determining the hot and cold attributes of the second data according to the feature information of the second data and the second prediction model includes: Inputting the characteristic information of the second data into the second prediction model to obtain an output value corresponding to the hot and cold attributes of the second data; If the output value is greater than a first preset value, determining that the second data is hot data; If the output value is less than or equal to the first preset value, it is determined that the second data is cold data.

5. The method according to claim 4, characterized in that The first preset value is 0.

5.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Determine the marking information of each first data according to the hot and cold attributes corresponding to the characteristic information of each first data in at least one of the first data, wherein the marking information of each first data is used to mark the hot and cold attributes of each first data; If the second data is marked with marking information, the marking information is used to mark the hot and cold attributes of the history of the second data; The tag information of the second data is compared with the tag information of at least part of the first data to determine the hot and cold attributes of the second data, and the second data is different from each of the first data.

7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Determining the true hot and cold attributes of the data predicted by the first prediction model; The first prediction model is updated according to the actual hot and cold attributes of the data predicted by the first prediction model and the hot and cold attributes predicted by the first prediction model.

8. The method according to claim 7, characterized in that The characteristic information is the writing time of the data page and / or the physical address PDA of the data page and / or the logical address of the data page.

9. A device for predicting the hot and cold properties of data, characterized in that: Comprising modules for executing the method as claimed in any one of claims 1 to 8.

10. A solid state drive SSD, characterized in that: Comprising the device as claimed in claim 9.