CN113325998B - Read-write speed control method and device - Google Patents

Read-write speed control method and device Download PDF

Info

Publication number
CN113325998B
CN113325998B CN202010134850.6A CN202010134850A CN113325998B CN 113325998 B CN113325998 B CN 113325998B CN 202010134850 A CN202010134850 A CN 202010134850A CN 113325998 B CN113325998 B CN 113325998B
Authority
CN
China
Prior art keywords
storage medium
data access
read
data
write speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010134850.6A
Other languages
Chinese (zh)
Other versions
CN113325998A (en
Inventor
程博
霍文捷
孙承华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Haikang Storage Technology Co ltd
Original Assignee
Hangzhou Haikang Storage Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Haikang Storage Technology Co ltd filed Critical Hangzhou Haikang Storage Technology Co ltd
Priority to CN202010134850.6A priority Critical patent/CN113325998B/en
Publication of CN113325998A publication Critical patent/CN113325998A/en
Application granted granted Critical
Publication of CN113325998B publication Critical patent/CN113325998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0625Power saving in storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a read-write speed control method and device and a computer storage medium, and belongs to the technical field of computer storage. The method comprises the following steps: determining a first data access characteristic, namely determining the access condition of a processor to data of multiple types of application programs in a certain time period before the current time; predicting a second data access characteristic, namely predicting the access condition of the processor to data of multiple types of application programs after the time according to the first data access characteristic; and controlling the read-write speed of the storage medium according to the second data access characteristic. Because the access conditions of the processor to different types of data indicate the use habits of users, and the access of the processor to different types of data can cause different storage medium power consumptions, the use habits of the users at any time are predicted according to the use habits of the users before the time, and the read-write speed of the storage medium is controlled according to the predicted use habits of the users, so that the purpose of controlling the storage medium power consumption is achieved.

Description

Read-write speed control method and device
Technical Field
The present application relates to the field of computer storage technologies, and in particular, to a method and an apparatus for controlling read/write speed, and a computer storage medium.
Background
The SSD (Solid State Disk) power consumption is used to instruct a CPU (Central Processing Unit) to generate heat when data is written into and read from the SSD within a reference time period. The larger the SSD power consumption is, the more heat generation during the SSD operation is, therefore, how to reduce the SSD power consumption is one of the main issues concerned by those skilled in the art. And controlling the SSD power consumption is mainly realized by controlling the SSD reading and writing speed.
In the related art, when the computer detects that the power consumption of the SSD is too high, the low power consumption processing module disposed in the SSD controls the SSD to be in a low power consumption operating state, and a read-write speed of the SSD, which reads and writes data in response to a read-write request of the CPU, is low in the low power consumption operating state, so as to reduce the power consumption of the SSD after the current time.
The read-write speed control method controls the subsequent read-write speed based on the SSD power consumption before the current moment so as to reduce the power consumption of the subsequent SSD. If the power consumption of the SSD before the current moment is high and the frequency of accessing the SSD by the CPU in the next period of time is low, the SSD is directly controlled to be in a low read-write speed state, so that the efficiency of writing and reading data into the SSD by the subsequent CPU is low.
Disclosure of Invention
The embodiment of the application provides a read-write speed control method and device and a computer storage medium, which can intelligently control power consumption. The technical scheme is as follows:
in one aspect, a method for controlling read/write speed is provided, where the method includes:
determining a first data access characteristic, wherein the first data access characteristic is used for indicating the access condition of a processor to data of multiple types of application programs in a first historical time period, and the first historical time period is a time period before the current time;
predicting a second data access characteristic according to the first data access characteristic, wherein the second data access characteristic is used for indicating the access condition of the processor to the data of the multiple types of application programs after the current moment;
and controlling the read-write speed of the storage medium according to the second data access characteristic.
Optionally, the predicting a second data access characteristic according to the first data access characteristic includes:
determining the second data access characteristic according to a predictive model and the first data access characteristic;
wherein the prediction model is configured to predict the data access characteristic after the current time based on the data access characteristic before the current time.
Optionally, the method further comprises:
acquiring a plurality of historical access data which are in one-to-one correspondence with a plurality of historical time periods, wherein the plurality of historical time periods are obtained by dividing a second historical time period, and the historical access data are used for indicating the access records of the processor to the data of the plurality of types of application programs in the corresponding historical time periods;
according to the plurality of historical access data, a plurality of historical data access characteristics which are in one-to-one correspondence with the plurality of historical durations are respectively determined;
and training the initialized neural model according to the historical durations and the historical data access characteristics to obtain the prediction model.
Optionally, the determining the first data access characteristic includes:
determining a number of accesses by the processor to data for each of the plurality of types of applications within the first historical period of time;
according to the access times of the data of each application program in the multiple types of application programs, determining the access time ratio corresponding to the data of each application program, and taking the access time ratios corresponding to the data of the multiple types of application programs as the first data access characteristics.
Optionally, the controlling the read-write speed of the storage medium according to the second data access characteristic includes:
acquiring a mapping relation, wherein the mapping relation comprises a plurality of data access characteristics and a plurality of storage medium power consumptions which are in one-to-one correspondence with the data access characteristics;
determining the power consumption of the storage medium corresponding to the second data access characteristic according to the second data access characteristic and the mapping relation;
and controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic.
Optionally, the controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic includes:
and if the power consumption of the storage medium corresponding to the second data access characteristic is larger than a power consumption threshold value, and the difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold value is smaller than a first reference difference value, determining a first read-write speed as the read-write speed of the storage medium after control, wherein the first read-write speed is smaller than the read-write speed of the storage medium in the first historical time period, and the difference between the first read-write speed and the read-write speed of the storage medium in the first historical time period is smaller than a second reference difference value.
Optionally, the controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic includes:
and if the power consumption of the storage medium corresponding to the second data access characteristic is larger than a power consumption threshold value, and the difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold value is larger than or equal to a first reference difference value, determining a second reading and writing speed as the read-write speed of the storage medium after control, wherein the second reading and writing speed is smaller than the read-write speed of the storage medium in the first historical time period, and the difference between the first reading and writing speed and the read-write speed of the storage medium in the first historical time period is larger than or equal to a second reference difference value.
Optionally, the controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic includes:
and if the power consumption of the storage medium corresponding to the second data access characteristic is smaller than a power consumption threshold value, determining the read-write speed of the storage medium in the first historical time period as the controlled read-write speed of the storage medium.
Optionally, a starting time point of the first historical time period is a time point which is a first reference time length away from the current time, and an ending time point of the first historical time period is the current time.
In another aspect, there is provided a read/write speed control apparatus, the apparatus including:
the system comprises a first determination module, a first data access characteristic determination module and a second determination module, wherein the first determination module is used for determining a first data access characteristic which is used for indicating the access condition of a processor to data of multiple types of application programs in a first historical time period, and the first historical time period is a time period before the current time;
the prediction module is used for predicting second data access characteristics according to the first data access characteristics, and the second data access characteristics are used for indicating the access conditions of the processor to the data of the multiple types of application programs after the current moment;
and the control module is used for controlling the read-write speed of the storage medium according to the second data access characteristic.
Optionally, the prediction module comprises:
a first determining sub-module for determining the second data access characteristic based on a predictive model and the first data access characteristic;
wherein the prediction model is configured to predict the data access characteristic after the current time based on the data access characteristic before the current time.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring a plurality of historical access data which are in one-to-one correspondence with a plurality of historical time periods, wherein the plurality of historical time periods are obtained by dividing a second historical time period, and the historical access data are used for indicating the access records of the processor to the data of the plurality of types of application programs in the corresponding historical time periods;
the second determining module is used for respectively determining a plurality of historical data access characteristics which are in one-to-one correspondence with the plurality of historical durations according to the plurality of historical access data;
and the training module is used for training the initialized neural model according to the historical durations and the historical data access characteristics to obtain the prediction model.
Optionally, the first determining module includes:
a second determining submodule for determining a number of accesses of the processor to data of each of the plurality of types of applications within the first historical period of time;
and the third determining submodule is used for determining the access frequency ratio corresponding to the data of each application program according to the access frequency of the data of each application program in the multiple types of application programs, and taking the access frequency ratio corresponding to the data of the multiple types of application programs as the first data access characteristic.
Optionally, the control module comprises:
the first obtaining submodule is used for obtaining a mapping relation, and the mapping relation comprises a plurality of data access characteristics and a plurality of storage medium power consumptions which are in one-to-one correspondence with the data access characteristics;
the fourth determining submodule is used for determining the power consumption of the storage medium corresponding to the second data access characteristic according to the second data access characteristic and the mapping relation;
and the control submodule is used for controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic.
Optionally, the control sub-module includes:
a first determining unit, configured to determine a first read/write speed as a read/write speed of the controlled storage medium if the power consumption of the storage medium corresponding to the second data access characteristic is greater than a power consumption threshold, and a difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is smaller than a first reference difference, where the first read/write speed is smaller than the read/write speed of the storage medium in the first historical time period, and the difference between the first read/write speed and the read/write speed of the storage medium in the first historical time period is smaller than a second reference difference.
Optionally, the control sub-module includes:
a second determining unit, configured to determine a second read/write speed as the read/write speed of the controlled storage medium if the power consumption of the storage medium corresponding to the second data access characteristic is greater than a power consumption threshold, and a difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is greater than or equal to a first reference difference, where the second read/write speed is less than the read/write speed of the storage medium in the first historical time period, and a difference between the first read/write speed and the read/write speed of the storage medium in the first historical time period is greater than or equal to a second reference difference.
Optionally, the control sub-module includes:
and a third determining unit, configured to determine, if power consumption of the storage medium corresponding to the second data access characteristic is smaller than a power consumption threshold, the read-write speed of the storage medium in the first historical time period as the read-write speed of the storage medium after control.
Optionally, a starting time point of the first historical time period is a time point which is a first reference time length away from the current time, and an ending time point of the first historical time period is the current time.
In another aspect, a read-write speed control device is provided, which includes a processor, a communication interface, a memory, and a communication bus;
the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing computer programs;
the processor is used for executing the program stored in the memory so as to realize the method for controlling the read-write speed.
In another aspect, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the read-write speed control method provided in the foregoing.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
in the application, a first data access characteristic is determined, wherein the first data access characteristic is used for indicating the access condition of a processor to data of multiple types of application programs in a first historical time period before the current time; predicting a second data access characteristic according to the first data access characteristic, wherein the second data access characteristic is used for indicating the access condition of the processor to the data of the multiple types of application programs after the current moment; and controlling the read-write speed of the storage medium according to the second data access characteristic. Because the access condition of the processor to the data of the different types of application programs can be used for indicating the use habits of the user, and the access of the processor to the data of the different types of application programs can cause different power consumptions of the storage medium, the use habits of the user after the current time can be predicted through the use habits of the user before the current time, and then the read-write speed of the storage medium is controlled according to the use habits of the user after the current time, so that the purpose of controlling the power consumption of the storage medium is achieved. That is, the read-write speed control method provided by the application can realize the purpose of intelligent management of the power consumption of the storage medium.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a read/write speed control system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a read/write speed control method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of determining data access characteristics according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a wavelet neural network model provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a read/write speed control apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, the following detailed description of the embodiments of the present application will be made with reference to the accompanying drawings.
Before explaining the read-write speed control method provided in the embodiment of the present application in detail, an application scenario related to the embodiment of the present invention is introduced.
When the power consumption of the SSD is too high, the heat generation of the SSD or the heat generation of some electronic devices using the SSD as a storage device is often too high. Too high heat generation may cause damage to the device, such as damage to chips in electronic devices or damage to control devices in storage media. Therefore, the SSD read/write speed needs to be controlled, and the power consumption of the SSD needs to be controlled, so that the potential safety hazard caused by the too high power consumption of the device is eliminated. The read-write speed control method provided by the embodiment of the application is applied to a scene of controlling the power consumption of the SSD.
Fig. 1 is a schematic diagram of a read/write speed control system architecture according to an embodiment of the present disclosure. As shown in fig. 1, the read/write speed control System 100 includes a CPU 101, an SoC (System on a Chip) 102, and a storage medium 103. Wherein, the SoC 102 and the storage medium 103 are both deployed on the storage system. The CPU 101 and the SoC 102 may communicate with each other through a wired or wireless connection, the CPU 101 and the storage medium 103 may communicate with each other through a wired or wireless connection, and the SoC 102 and the storage medium 103 may communicate with each other through a wired or wireless connection.
The CPU 101 may initiate a data read/write request, and the storage medium 103 executes a read/write operation at a certain read/write speed in response to the data read/write request. The read data operation or the write data operation is also an I/O operation. In the process that the storage medium 103 executes I/O operation at a certain read/write speed, the power consumption of the storage medium is continuously increased, so that the storage medium 103 generates heat in the working process. When the storage medium generates too high heat due to too high power consumption in the working process, the SoC deployed in the storage system can control the storage medium to perform read data operations and write data operations at a read-write speed so as to reduce the power consumption of the storage medium.
The storage medium may be a solid state disk, or other types of storage media. The read/write speed may also be referred to as a read/write bandwidth, and is not limited herein.
The following explains the read/write speed control method provided in the embodiments of the present application in detail.
Fig. 2 is a flowchart of a read/write speed control method according to an embodiment of the present application, where the method is applied to an SoC. Referring to fig. 2, the method includes the following steps.
Step 201: a first data access characteristic is determined, wherein the first data access characteristic is used for indicating the access condition of the processor to the data of the multiple types of application programs in the first historical time period.
In the embodiment of the present application, for any type of application program, when the processor accesses data of the application program of the type, the storage medium correspondingly performs an input/output (I/O) operation, such as a read data operation or a write data operation, at a certain read/write speed. And the storage medium consumes a certain amount of storage medium power due to the execution of the I/O operation. Because different types of applications correspond to different types of data, when the processor accesses different types of applications, the processor needs to access different types of data corresponding to the different types of applications. However, the power consumption of the storage medium generated by the storage medium performing the I/O operation for different types of data is usually different, and therefore, when the access condition of the processor for different types of data is changed, the power consumption of the corresponding storage medium generated by performing the I/O operation is also changed.
Therefore, in the embodiment of the application, the access condition of data of multiple types of application programs in a period of time can be defined as the data access characteristic in the period of time, so that the read-write speed of the storage medium is controlled by determining the data access characteristic, and the effect of controlling the power consumption of the storage medium is further achieved.
In a possible implementation manner, when the access times of the data of multiple types of applications are used to indicate the access situations of the multiple types of applications, the possible implementation process of step 201 is as follows: determining a number of accesses by the processor to each of the plurality of types of applications within a first historical period of time; determining the access frequency ratio of each application program according to the access frequency of each application program in the multiple types of application programs; and taking the ratio of the access times corresponding to the data of the multiple types of application programs as the first data access characteristic.
In another possible implementation manner, when the access situations of multiple types of applications are indicated by the access frequency of data of the multiple types of applications, the possible implementation procedures of step 201 may be: determining an average of data access frequencies of the processor to each of the plurality of types of applications during the first historical period of time; the access frequency of data of each of the plurality of types of applications is taken as the first data access characteristic.
The first history time period may refer to a time period in which a starting time point is a first reference time length from the current time, and an ending time point is the current time. In such a scenario, it is equivalent to control the read-write speed of the storage medium after the current time according to the data access characteristics of the latest period of time, so that the read-write speed after control can better meet the subsequent data access condition of the user.
Currently, the first historical time period may also refer to a time period of any duration before the current time, and is not specifically limited herein.
It should be noted that the above description is only given by taking two ways of configuring the data access features as an example, and in the embodiment of the present application, the ways of configuring the data access features are not limited to the above two ways. When the read-write speed control method provided by the embodiment of the application is applied, the data access characteristics can be adaptively configured according to requirements, and only the configured data access characteristics can be used for representing the access condition of the processor to data of various types of application programs.
In addition, the plurality of different types of application programs may be a plurality of types of application programs installed by a manufacturer for a certain electronic device by default, or a plurality of types of application programs with high installation frequency in a statistical user group. For example, for any type of application program, when the application program type is the office software type, the corresponding data is mainly a data set for editing a document. That is, one type of application program accesses the same type of data correspondingly, and the type of the application program and the type of the data are in a one-to-one correspondence relationship.
Furthermore, the data access feature may be labeled as UserStatus, and the access times of the data corresponding to each type of application are expressed as [ Percent0, Percent1, …, Percent ], that is, the data access feature UserStatus is defined according to [ Percent0, Percent1, …, Percent ].
Step 202: and predicting a second data access characteristic according to the first data access characteristic, wherein the second data access characteristic refers to the access condition of the processor to the data of the multiple types of application programs after the current time.
In order to facilitate determining the access condition of the processor after the current time to the data of the multiple types of application programs, a prediction model may be trained according to the corresponding relationship between the data access characteristic before the current time and the historical time period, and the data access characteristic in any time period after the current time may be determined according to the prediction model.
The prediction model is used for predicting the data access characteristics after the current time based on the data access characteristics before the current time.
Therefore, in one possible implementation manner, the possible implementation process of step 202 is: a second data access characteristic is determined based on the predictive model and the first data access characteristic.
In the embodiment of the present application, since the prediction model is obtained by the server through training according to the plurality of historical access data, the server needs to train the plurality of historical access data before determining the second data access characteristic to determine the prediction model.
In one possible implementation, the possible determination process of the prediction model is: acquiring a plurality of historical access data which are in one-to-one correspondence with a plurality of historical time lengths, wherein the plurality of historical time lengths are obtained by dividing a second historical time period, and the historical access data are used for indicating the access conditions of the processor in the corresponding historical time lengths to a plurality of types of application programs; according to the plurality of historical access data, respectively determining a plurality of historical data access characteristics which are in one-to-one correspondence with a plurality of historical durations; and training the initialized neural model according to the historical durations and the historical data access characteristics to obtain a prediction model.
The above-mentioned determining a plurality of historical data access characteristics corresponding to a plurality of historical durations in a one-to-one manner according to a plurality of historical access data refers to an implementation manner of determining the first data access characteristic in step 201, and is not described in detail here.
In addition, the initialized neural network model may be a wavelet neural network model. Fig. 4 is a schematic structural diagram of a wavelet neural network model provided in an embodiment of the present application. As shown in FIG. 4, the wavelet neural network model includes an input layer, a hidden layer, and an output layer. The input layer is used for inputting data access characteristics before the current moment, the output layer is used for outputting data access characteristics after the current moment, and the hidden layer utilizes the nonlinear characteristic of the wavelet activation function, so that the input data and the output data are not simply linearly combined.
For example, the historical duration may be any day before the current time, and the data access characteristics of any day 12 months before the current time are counted in advance. When three data access characteristics corresponding to three continuous historical durations one by one are input into the input layer, for example, three data access characteristics (UserStatus) corresponding to input of 12 month 1, 12 month 2 and 12 month 3 k-2 ,UserStatus k-1 ,UserStatus k ) The output layer can output 12 month 4 data access characteristic UserStatus k+1 '. Output value UserStatus of output layer k+1 ' and actual statistical data access characteristic UserStatus of No. 12/month 4 k+1 The comparison is made and the difference between the two is calculated. For example, a quadratic error function may be used to calculate the error between the model output value and the true value. In the process of backward error propagation, parameters in the prediction model are corrected by using a gradient descent algorithm, so that the output value of the model is closer to the true value until the difference value between the output value of the model and the true value is smaller than a reference threshold value. The reference threshold value may beTo be set to a relatively small value, which may be 0.1, for example. The parameter in the predictive model may be a weight coefficient between a plurality of neurons included in the predictive model.
Wherein, the hidden layer in the wavelet neural network model can adopt wavelet function
Figure BDA0002396255970000101
As an activation function to increase the non-linear transformation capability of the predictive model, wherein
Figure BDA0002396255970000102
Is a wavelet basis function. x is used to indicate the input value of the input layer. and a and b are translation and expansion factors in the wavelet function.
The initialized neural model used for training the prediction model in the above embodiment is a wavelet neural network model, and optionally, the initialized neural network model may also be a neural network model of another type, which is not limited herein. In addition, the above-mentioned training of the initialized neural network model is described by taking an inverse error propagation technique as an example, and the embodiment of the present application does not limit an implementation manner of training the initialized neural network model.
Step 203: and controlling the read-write speed of the storage medium according to the second data access characteristic.
It should be noted that the read/write speed of the storage medium, that is, the read/write speed at the current time and/or after the current time, is controlled.
In one possible implementation manner, the possible implementation procedures of step 203 are: and acquiring a mapping relation between the data access characteristics and the read-write speed of the storage medium, and determining the read-write speed of the storage medium corresponding to the second data access characteristics according to the mapping relation. That is, the mapping relationship between the data access characteristic and the read-write speed of the storage medium may be directly preconfigured, so that after the data access characteristic after the current time is determined, the read-write speed of the storage medium after the current time may be directly controlled according to the mapping relationship. For convenience of description later, the mapping relationship in this implementation is referred to as a first mapping relationship.
In another possible implementation manner, the possible implementation procedures of step 203 are: acquiring a mapping relation, wherein the mapping relation comprises a plurality of data access characteristics and a plurality of storage medium power consumptions which are in one-to-one correspondence with the data access characteristics; determining the power consumption of the storage medium corresponding to the second data access characteristic according to the second data access characteristic and the mapping relation; and controlling the read-write speed of the storage medium after the current moment according to the power consumption of the storage medium corresponding to the second data access characteristic. That is, the mapping relationship between the data access characteristics and the power consumption of the storage medium may be preconfigured, so that after the data access characteristics after the current time are determined, the possible power consumption of the storage medium after the current time may be predicted directly according to the mapping relationship, and then the read-write speed is controlled based on the predicted power consumption of the storage medium, so that the accuracy of power consumption control may be improved. For convenience of description later, the mapping relationship in this implementation is referred to as a second mapping relationship.
In a possible implementation manner, the possible determination process of the second mapping relationship may be: firstly, acquiring a plurality of data access characteristics UserStatus and a plurality of sample power consumptions corresponding to each data access characteristic in the data access characteristics, thereby obtaining an original data set X-data { (UserStatus) o ,power o ),…,(UserStatus j ,power j ),…,(UserStatus k ,power k ) Wherein each data access characteristic in the raw data set corresponds to a plurality of sample power consumptions. For any data access characteristic, the power consumption of the storage medium corresponding to the data access characteristic in the second mapping relation can be determined according to the plurality of sample power consumptions corresponding to the data access characteristic. For example, data fitting may be performed on an original data set formed by the data access characteristics and the sample power consumption corresponding to the data access characteristics by a discrete data fitting method such as least square fitting or polynomial fitting, and the power consumption of the storage medium corresponding to the data access characteristics in the second mapping relationship may be calculated by using a mapping function obtained by fitting.
In a possible scenario, when the predicted power consumption of the storage medium after the current time is slightly larger than the power consumption threshold, only a small range of adjustment needs to be performed on the power consumption to make the power consumption smaller than the power consumption threshold. That is, if the power consumption of the storage medium corresponding to the second data access characteristic is greater than the power consumption threshold, and the difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is smaller than the first reference difference, the first read-write speed is determined as the read-write speed of the storage medium after the current time. The first read-write speed is less than the read-write speed of the storage medium in the first historical time period, and the difference between the first read-write speed and the read-write speed of the storage medium in the first historical time period is less than the second reference difference.
In another possible scenario, when the predicted power consumption of the storage medium after the current time is much larger than the power consumption threshold, the power consumption needs to be adjusted to a larger extent so as to be smaller than the power consumption threshold. That is, if the power consumption of the storage medium corresponding to the second data access characteristic is greater than the power consumption threshold, and the difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is greater than or equal to the first reference difference, the second read/write speed is determined as the read/write speed of the storage medium after the current time. And the second reading and writing speed is less than the reading and writing speed of the storage medium in the first historical time period, and the difference between the first reading and writing speed and the reading and writing speed of the storage medium in the first historical time period is greater than or equal to a second reference difference. That is, the second read/write speed is lower than the first read/write speed.
Wherein, for any device, the power consumption threshold of the device can be determined by the maximum operating temperature of the device. For example, if the maximum operating temperature of the device is W joules, the maximum power consumption corresponding to the device can be determined as W watts according to the relationship that 1 watt (W) is 1 joule/second. The highest power consumption is also referred to as the power consumption threshold. For example, the power consumption threshold may be 3600 watts. The first reference difference may be any one of values. Assume that the first reference difference is 500 watts.
For example, if the second data access characteristic is data access characteristic 1, and it is determined through the second mapping relationship that the power consumption of the storage medium corresponding to the data access characteristic is 4000 watts, the power consumption of the storage medium is greater than a power consumption threshold of 3600 watts, and a difference 400 watts between the power consumption of the storage medium and the power consumption threshold is smaller than a first reference difference 500 watts, the first read-write speed is determined as the read-write speed of the storage medium after the current time. The first read-write speed is slightly less than the read-write speed of the storage medium before the current time, so that the power consumption of the storage medium is reduced.
For example, the second data access characteristic is data access characteristic 1, the power consumption of the storage medium corresponding to the data access characteristic is determined to be 5000 watts through the second mapping relation, the power consumption of the storage medium is greater than a power consumption threshold value 3600 watts, and a difference 1400 watts between the power consumption of the storage medium and the power consumption threshold value is greater than a first reference difference 500 watts, and then the second read/write speed is determined as the read/write speed of the storage medium after the current time. The second reading and writing speed is far less than the reading and writing speed of the storage medium before the current time, so that the power consumption of the storage medium is reduced.
In another possible scenario, if the power consumption of the storage medium corresponding to the second data access characteristic is smaller than a power consumption threshold, determining the read-write speed of the storage medium in the first historical time period as the read-write speed of the storage medium after the current time. That is, when the power consumption of the storage medium does not exceed the power consumption threshold, no adjustment may be made to the power consumption of the storage medium.
Optionally, if the power consumption of the storage medium corresponding to the second data access characteristic is smaller than the power consumption threshold, the reading speed of the storage medium can be increased appropriately to improve the performance of the computer.
In addition, the power consumption of the storage medium corresponding to the data access characteristic in the second mapping relation is configured in advance. The data access characteristics in the second mapping relation are indicated in a manner of a proportion set, and the proportion set is used for indicating proportion sets of access times corresponding to data of multiple types of application programs respectively. The proportion set corresponding to each data access characteristic comprises a plurality of proportion intervals corresponding to the application programs of various types one by one. For example, the plurality of data access characteristics and the plurality of proportion sets corresponding to the plurality of data access characteristics one to one are shown in table 1:
TABLE 1
Figure BDA0002396255970000131
After the corresponding relationship between the multiple data access characteristics and the multiple proportion sets corresponding to the multiple data access characteristics one to one is established, the data access characteristics in the corresponding second mapping relationship can be found from the table 1 according to the first data access characteristics, and then the power consumption of the storage medium can be found according to the second mapping relationship.
For example, the number of times of access of the in-day processor to data of each of a plurality of types of applications before the current time is determined, assuming that the plurality of types of applications are: application type 1, application type 2, …, application type N. The number of accesses to data of application type 1 is 3K times, the number of accesses to data of application type 2 is 2K times, …, and the number of accesses to data of application type N is 1K times. It is determined that the access count percentage of the application type 1 is 5%, the access count percentage of the application type 2 is 20%, …, and the access count percentage of the application type N is 10%. And determining that the data access characteristics in the day before the current time correspond to the data access characteristics 0 in the second mapping relation according to the proportion condition of the access times and the corresponding relation.
Fig. 3 is a schematic diagram of predefined data access characteristics provided in an embodiment of the present application. In the embodiment of the present application, the data access feature may also be referred to as a data access mode.
As shown in fig. 3, the data types corresponding to the application types 0 to N one to one are data types 0 to N. The access frequency proportion interval corresponding to the data type 0 to the data type N is the access frequency proportion interval 0 to the access frequency proportion interval N. As shown in fig. 3, a data access profile 0, a data access profile 1, a data access profile 2 … …, and a data access profile N are defined in accordance with an access number proportion section { access number proportion section 0, access number proportion section 1, access number proportion section 2, …, access number proportion section N } of data of each of the application types 0 to N. Wherein N is a positive integer greater than or equal to 1.
In the embodiment of the application, a first data access characteristic is determined, wherein the first data access characteristic is used for indicating the access condition of a processor to data of multiple types of application programs in a first historical time period; predicting a second data access characteristic according to the first data access characteristic, wherein the second data access characteristic is used for indicating the access condition of the processor to the data of the multiple types of application programs after the current moment; and controlling the read-write speed of the storage medium according to the second data access characteristic. Because the access condition of the processor to the data of the different types of application programs can be used for indicating the use habits of the user, and the access of the processor to the data of the different types of application programs can cause different power consumptions of the storage medium, the use habits of the user after the current time can be predicted through the use habits of the user before the current time, and then the read-write speed of the storage medium is controlled according to the use habits of the user after the current time, so that the purpose of controlling the power consumption of the storage medium is achieved. That is, the read-write speed control method provided by the application can realize the purpose of intelligent management of the power consumption of the storage medium.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present application, and the present application embodiment is not described in detail again.
Fig. 5 is a schematic structural diagram of a read/write speed control device according to an embodiment of the present disclosure, where the read/write speed control device may be implemented by software, hardware, or a combination of the two. The read-write speed control device may include:
a first determining module 501, configured to determine a first data access characteristic, where the first data access characteristic is used to indicate access conditions of processors to data of multiple types of applications in a first historical time period, and the first historical time period is a time period after a current time;
a predicting module 502, configured to predict, according to the first data access characteristic, a second data access characteristic, where the second data access characteristic is used to indicate an access situation of the processor to data of the multiple types of application programs after a current time;
and a control module 503, configured to control a read/write speed of the storage medium according to the second data access characteristic.
Optionally, the prediction module comprises:
a first determining sub-module, configured to determine the second data access characteristic according to a prediction model and the first data access characteristic;
wherein the prediction model is configured to predict the data access characteristic after the current time based on the data access characteristic before the current time.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring a plurality of historical access data which are in one-to-one correspondence with a plurality of historical time periods, the plurality of historical time periods are obtained by dividing a second historical time period, and the historical access data are used for indicating the access records of the processor to the data of the plurality of types of application programs in the corresponding historical time periods;
the second determining module is used for respectively determining a plurality of historical data access characteristics which are in one-to-one correspondence with the plurality of historical durations according to the plurality of historical access data;
and the training module is used for training the initialized neural model according to the historical durations and the historical data access characteristics to obtain the prediction model.
Optionally, the first determining module includes:
a second determining submodule for determining a number of accesses of the processor to data of each of the plurality of types of applications within the first historical period of time;
and the third determining submodule is used for determining the access frequency ratio corresponding to the data of each application program according to the access frequency of the data of each application program in the multiple types of application programs, and taking the access frequency ratio corresponding to the data of the multiple types of application programs as the first data access characteristic.
Optionally, the control module comprises:
the first obtaining submodule is used for obtaining a second mapping relation, and the second mapping relation comprises a plurality of data access characteristics and a plurality of storage medium power consumptions which are in one-to-one correspondence with the data access characteristics;
the fourth determining submodule is used for determining the power consumption of the storage medium corresponding to the second data access characteristic according to the second data access characteristic and the second mapping relation;
and the control submodule is used for controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic.
Optionally, the control sub-module includes:
a first determining unit, configured to determine a first read/write speed as a read/write speed of the controlled storage medium if the power consumption of the storage medium corresponding to the second data access characteristic is greater than a power consumption threshold, and a difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is smaller than a first reference difference, where the first read/write speed is smaller than the read/write speed of the storage medium in the first historical time period, and the difference between the first read/write speed and the read/write speed of the storage medium in the first historical time period is smaller than a second reference difference.
Optionally, the control sub-module includes:
a second determining unit, configured to determine a second read/write speed as the read/write speed of the controlled storage medium if the power consumption of the storage medium corresponding to the second data access characteristic is greater than a power consumption threshold, and a difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is greater than or equal to a first reference difference, where the second read/write speed is less than the read/write speed of the storage medium in the first historical time period, and a difference between the first read/write speed and the read/write speed of the storage medium in the first historical time period is greater than or equal to a second reference difference.
Optionally, the control sub-module includes:
and a third determining unit, configured to determine, if power consumption of the storage medium corresponding to the second data access characteristic is smaller than a power consumption threshold, the read-write speed of the storage medium in the first historical time period as the read-write speed of the storage medium after control.
Optionally, the starting time point of the first historical time period is a time point which is a first reference time length away from the current time, and the ending time point of the first historical time period is the current time.
In the embodiment of the application, a first data access characteristic is determined, wherein the first data access characteristic is used for indicating the access condition of a processor to data of multiple types of application programs in a first historical time period; predicting a second data access characteristic according to the first data access characteristic, wherein the second data access characteristic is used for indicating the access condition of the processor to the data of the multiple types of application programs after the current moment; and controlling the read-write speed of the storage medium according to the second data access characteristic. The access condition of the processor to the data of the different types of application programs can be used for indicating the use habits of the user, and the access of the processor to the data of the different types of application programs can cause different storage medium power consumptions, so the use habits of the user after the current time can be predicted according to the use habits of the user before the current time, and the read-write speed of the storage medium is controlled according to the use habits of the user after the current time, thereby achieving the purpose of controlling the storage medium power consumption. That is, the read-write speed control method provided by the application can realize the purpose of intelligent management of the power consumption of the storage medium.
It should be noted that: in the read/write speed control apparatus provided in the foregoing embodiment, only the division of each functional module is illustrated in the foregoing, and in practical applications, the above function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the read-write speed control device and the read-write speed control method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 6 is a schematic structural diagram of a server of a read/write speed control apparatus according to an embodiment of the present application. The server may be a server in a cluster of background servers. Specifically, the method comprises the following steps:
the server 600 includes a Central Processing Unit (CPU)601, a system memory 604 including a Random Access Memory (RAM)602 and a Read Only Memory (ROM)603, and a system bus 605 connecting the system memory 604 and the central processing unit 601. The server 600 also includes a basic input/output system (I/O system) 606, which facilitates the transfer of information between devices within the computer, and a mass storage device 607, which stores an operating system 613, application programs 614, and other program modules 615.
The basic input/output system 606 includes a display 608 for displaying information and an input device 609 such as a mouse, keyboard, etc. for user input of information. Wherein a display 608 and an input device 609 are connected to the central processing unit 601 through an input output controller 610 connected to the system bus 605. The basic input/output system 606 may also include an input/output controller 610 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input/output controller 610 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 607 is connected to the central processing unit 601 through a mass storage controller (not shown) connected to the system bus 605. The mass storage device 607 and its associated computer-readable media provide non-volatile storage for the server 600. That is, mass storage device 607 may include a computer readable medium (not shown), such as a hard disk or CD-ROM drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 604 and mass storage device 607 described above may be collectively referred to as memory.
According to various embodiments of the application, the server 600 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 600 may be connected to the network 612 through the network interface unit 611 connected to the system bus 605, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 611.
The memory also includes one or more programs, which are stored in the memory and configured to be executed by the CPU. The one or more programs include instructions for performing the read/write speed control method provided by the embodiments of the present application, as described below.
The embodiment of the present application further provides a non-transitory computer-readable storage medium, and when instructions in the storage medium are executed by a processor of a server, the server is enabled to execute the read-write speed control method provided by the foregoing embodiment.
Embodiments of the present application further provide a computer program product containing instructions, which when run on a server, cause the server to execute the read-write speed control method provided by the foregoing embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (19)

1. A method for controlling read/write speed, the method comprising:
determining a first data access characteristic, wherein the first data access characteristic is used for indicating the access condition of a processor to data of multiple types of application programs in a first historical time period, and the first historical time period is a time period before the current time;
predicting a second data access characteristic according to the first data access characteristic, wherein the second data access characteristic is used for indicating the access condition of the processor to the data of the multiple types of application programs after the current moment;
and controlling the read-write speed of the storage medium according to the second data access characteristic.
2. The method of claim 1, wherein predicting a second data access characteristic from the first data access characteristic comprises:
determining the second data access characteristic according to a predictive model and the first data access characteristic;
wherein the predictive model is configured to predict data access characteristics after a current time based on data access characteristics before the current time.
3. The method of claim 2, wherein the method further comprises:
acquiring a plurality of historical access data which are in one-to-one correspondence with a plurality of historical time periods, wherein the plurality of historical time periods are obtained by dividing a second historical time period, and the historical access data are used for indicating the access records of the processor to the data of the plurality of types of application programs in the corresponding historical time periods;
according to the plurality of historical access data, a plurality of historical data access characteristics which are in one-to-one correspondence with the plurality of historical durations are respectively determined;
and training the initialized neural model according to the plurality of historical durations and the plurality of historical data access characteristics to obtain the prediction model.
4. The method of claim 1, wherein the determining the first data access characteristic comprises:
determining a number of accesses by the processor to data for each of the plurality of types of applications within the first historical period of time;
according to the access times of the data of each application program in the multiple types of application programs, determining the access time ratio corresponding to the data of each application program, and taking the access time ratios corresponding to the data of the multiple types of application programs as the first data access characteristics.
5. The method of claim 1, wherein controlling read and write speed of the storage medium based on the second data access characteristic comprises:
acquiring a mapping relation, wherein the mapping relation comprises a plurality of data access characteristics and a plurality of storage medium power consumptions which are in one-to-one correspondence with the data access characteristics;
determining the power consumption of the storage medium corresponding to the second data access characteristic according to the second data access characteristic and the mapping relation;
and controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic.
6. The method of claim 5, wherein the controlling the read-write speed of the storage medium according to the storage medium power consumption corresponding to the second data access characteristic comprises:
and if the power consumption of the storage medium corresponding to the second data access characteristic is larger than a power consumption threshold value, and the difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold value is smaller than a first reference difference value, determining a first read-write speed as the read-write speed of the storage medium after control, wherein the first read-write speed is smaller than the read-write speed of the storage medium in the first historical time period, and the difference between the first read-write speed and the read-write speed of the storage medium in the first historical time period is smaller than a second reference difference value.
7. The method of claim 5, wherein the controlling the read-write speed of the storage medium according to the storage medium power consumption corresponding to the second data access characteristic comprises:
and if the power consumption of the storage medium corresponding to the second data access characteristic is larger than a power consumption threshold value, and the difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold value is larger than or equal to a first reference difference value, determining a second reading and writing speed as the controlled reading and writing speed of the storage medium, wherein the second reading and writing speed is smaller than the reading and writing speed of the storage medium in the first historical time period, and the difference between the first reading and writing speed and the reading and writing speed of the storage medium in the first historical time period is larger than or equal to a second reference difference value.
8. The method of claim 5, wherein the controlling the read-write speed of the storage medium according to the storage medium power consumption corresponding to the second data access characteristic comprises:
and if the power consumption of the storage medium corresponding to the second data access characteristic is smaller than a power consumption threshold value, determining the read-write speed of the storage medium in the first historical time period as the read-write speed of the storage medium after control.
9. The method according to any one of claims 1 to 8, wherein a start time point of the first history period is a time point which is a first reference time length from a current time, and an end time point of the first history period is the current time.
10. A read-write speed control apparatus, characterized in that the apparatus comprises:
a first determining module, configured to determine a first data access characteristic, where the first data access characteristic is used to indicate access of a processor to data of multiple types of applications within a first historical time period, and the first historical time period is a time period before a current time;
the prediction module is used for predicting second data access characteristics according to the first data access characteristics, and the second data access characteristics are used for indicating the access conditions of the processor to the data of the multiple types of application programs after the current moment;
and the control module is used for controlling the read-write speed of the storage medium according to the second data access characteristic.
11. The apparatus of claim 10, wherein the prediction module comprises:
a first determining sub-module, configured to determine the second data access characteristic according to a prediction model and the first data access characteristic;
wherein the prediction model is configured to predict the data access characteristic after the current time based on the data access characteristic before the current time.
12. The apparatus of claim 11, wherein the apparatus further comprises:
the acquisition module is used for acquiring a plurality of historical access data which are in one-to-one correspondence with a plurality of historical time periods, wherein the plurality of historical time periods are obtained by dividing a second historical time period, and the historical access data are used for indicating the access records of the processor to the data of the plurality of types of application programs in the corresponding historical time periods;
the second determining module is used for respectively determining a plurality of historical data access characteristics which are in one-to-one correspondence with the plurality of historical durations according to the plurality of historical access data;
and the training module is used for training the initialized neural model according to the historical durations and the historical data access characteristics to obtain the prediction model.
13. The apparatus of claim 10, wherein the first determining module comprises:
a second determining submodule for determining a number of accesses of the processor to data of each of the plurality of types of applications within the first historical period of time;
and the third determining submodule is used for determining the access frequency ratio corresponding to the data of each application program according to the access frequency of the data of each application program in the multiple types of application programs, and taking the access frequency ratio corresponding to the data of the multiple types of application programs as the first data access characteristic.
14. The apparatus of claim 10, wherein the control module comprises:
the first obtaining submodule is used for obtaining a mapping relation, and the mapping relation comprises a plurality of data access characteristics and a plurality of storage medium power consumptions which are in one-to-one correspondence with the data access characteristics;
the fourth determining submodule is used for determining the storage medium power consumption corresponding to the second data access characteristic according to the second data access characteristic and the mapping relation;
and the control submodule is used for controlling the read-write speed of the storage medium according to the power consumption of the storage medium corresponding to the second data access characteristic.
15. The apparatus of claim 14, the control sub-module comprising:
a first determining unit, configured to determine a first read/write speed as a read/write speed of the controlled storage medium if the power consumption of the storage medium corresponding to the second data access characteristic is greater than a power consumption threshold, and a difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is smaller than a first reference difference, where the first read/write speed is smaller than the read/write speed of the storage medium in the first historical time period, and the difference between the first read/write speed and the read/write speed of the storage medium in the first historical time period is smaller than a second reference difference.
16. The apparatus of claim 14, wherein the control sub-module comprises:
a second determining unit, configured to determine a second read/write speed as the read/write speed of the controlled storage medium if the power consumption of the storage medium corresponding to the second data access characteristic is greater than a power consumption threshold, and a difference between the power consumption of the storage medium corresponding to the second data access characteristic and the power consumption threshold is greater than or equal to a first reference difference, where the second read/write speed is less than the read/write speed of the storage medium in the first historical time period, and a difference between the first read/write speed and the read/write speed of the storage medium in the first historical time period is greater than or equal to a second reference difference.
17. The apparatus of claim 14, wherein the control sub-module comprises:
and a third determining unit, configured to determine, if power consumption of the storage medium corresponding to the second data access characteristic is smaller than a power consumption threshold, the read-write speed of the storage medium in the first historical time period as the read-write speed of the storage medium after control.
18. The apparatus of any one of claims 10 to 17, wherein a start time point of the first historical period is a time point that is a first reference time length from a current time, and an end time point of the first historical period is the current time.
19. A read-write speed control apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any of the above claims 1 to 9.
CN202010134850.6A 2020-02-29 2020-02-29 Read-write speed control method and device Active CN113325998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010134850.6A CN113325998B (en) 2020-02-29 2020-02-29 Read-write speed control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010134850.6A CN113325998B (en) 2020-02-29 2020-02-29 Read-write speed control method and device

Publications (2)

Publication Number Publication Date
CN113325998A CN113325998A (en) 2021-08-31
CN113325998B true CN113325998B (en) 2022-09-06

Family

ID=77412925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010134850.6A Active CN113325998B (en) 2020-02-29 2020-02-29 Read-write speed control method and device

Country Status (1)

Country Link
CN (1) CN113325998B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098017B (en) * 2022-05-12 2023-04-11 北京卡普拉科技有限公司 Data processing method and device, electronic equipment and storage medium
CN117234434B (en) * 2023-11-14 2024-02-20 苏州元脑智能科技有限公司 Operation control method and device of storage device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7103684B2 (en) * 2003-12-02 2006-09-05 Super Talent Electronics, Inc. Single-chip USB controller reading power-on boot code from integrated flash memory for user storage
CN107678845B (en) * 2017-09-30 2020-03-10 Oppo广东移动通信有限公司 Application program control method and device, storage medium and electronic equipment
CN107783801B (en) * 2017-11-06 2021-03-12 Oppo广东移动通信有限公司 Application program prediction model establishing and preloading method, device, medium and terminal
CN110058786B (en) * 2018-01-18 2022-12-02 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for controlling write requests in a storage system
CN110018791B (en) * 2019-03-28 2023-02-10 深圳忆联信息系统有限公司 SSD SOC-based power consumption management control method and system

Also Published As

Publication number Publication date
CN113325998A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
US20140282520A1 (en) Provisioning virtual machines on a physical infrastructure
CN113325998B (en) Read-write speed control method and device
US9235665B2 (en) System, method and apparatus for handling power limit restrictions in flash memory devices
US11068820B2 (en) Avoiding peak energy demand times by managing consumer energy consumption
CN106802772B (en) Data recovery method and device and solid state disk
CN109800270B (en) Data storage and query method and Internet of things system
CN101694649A (en) Report generating system and method of cluster monitoring
CN108958429A (en) A kind of cooling control method, system and equipment and storage medium
CN104516470A (en) Server power dissipation control method and system
WO2018203423A1 (en) Power management apparatus and program
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
JP5692355B2 (en) Computer system, control system, control method and control program
CN112486683B (en) Processor control method, control apparatus, and computer-readable storage medium
JP5967322B1 (en) Information processing apparatus and information processing method
CN103873388A (en) Network content control method and network equipment
Harrison et al. Energy--performance trade-offs via the ep queue
WO2023151465A1 (en) Method for adjusting specification parameter of ssd and related product
WO2015052823A1 (en) Cloud management device, method for managing same, and system thereof
CN104270294A (en) Household appliance control system and method on basis of public cloud
CN117311293B (en) Industrial main board based on remote management and control method thereof
CN115811098B (en) Wind power storage station AGC instruction optimization method and system considering power margin
CN117394370B (en) Intelligent dynamic power-saving scheduling system and method for power supply network
US20230205286A1 (en) Frequency control method and apparatus
CN117312100B (en) Power consumption adjustment method, system, device, equipment and computer storage medium
TWI776287B (en) Cloud file accessing apparatus and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant