CN112748878A - Data writing speed determination method and device and computer equipment - Google Patents

Data writing speed determination method and device and computer equipment Download PDF

Info

Publication number
CN112748878A
CN112748878A CN202011613942.9A CN202011613942A CN112748878A CN 112748878 A CN112748878 A CN 112748878A CN 202011613942 A CN202011613942 A CN 202011613942A CN 112748878 A CN112748878 A CN 112748878A
Authority
CN
China
Prior art keywords
data writing
preset
speed
writing speed
cache space
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.)
Pending
Application number
CN202011613942.9A
Other languages
Chinese (zh)
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.)
Hualu Optical Storage Research Institute Dalian Co ltd
Original Assignee
Hualu Optical Storage Research Institute Dalian 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 Hualu Optical Storage Research Institute Dalian Co ltd filed Critical Hualu Optical Storage Research Institute Dalian Co ltd
Priority to CN202011613942.9A priority Critical patent/CN112748878A/en
Publication of CN112748878A publication Critical patent/CN112748878A/en
Pending legal-status Critical Current

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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a method, a device and computer equipment for determining data writing speed, wherein the method comprises the following steps: acquiring data write-in quantity within preset time; when the data writing amount in the preset time is smaller than or equal to a preset flow threshold value, acquiring the residual cache space of the cache; and adjusting the current data writing speed according to the size of the residual cache space. According to the invention, by comparing the data writing amount of the preset time with the preset flow threshold value, when the data writing amount of the preset time is less than or equal to the preset flow threshold value, the current data writing speed is adjusted according to the size of the residual space of the buffer, so that the long-term stable adjustment of the service buffer can be realized, the buffer cannot be fully written, and the server is ensured to be always in an available state.

Description

Data writing speed determination method and device and computer equipment
Technical Field
The invention relates to the technical field of blue-ray storage, in particular to a method and a device for determining data writing speed and computer equipment.
Background
At present, domestic data storage mainly has three modes: magnetic tape (data stream), hard disk, and blu-ray disc. The mode of using magnetic tape to store data has inherent disadvantages: the tape is easy to be damped, demagnetized and broken; the service life of the tape is short, generally about 10 years, and the tape can be eliminated and cannot be used when due; the formats and the cross-generation are incompatible, the data needs to be copied and copied again after three or five years of updating, which is equivalent to continuous repeated construction and needs to spend a large amount of manpower; therefore, methods of storing data using magnetic tapes are being phased out. Hard disks are not suitable as long-term storage media due to their physical characteristics, lifespan, and security. Blue light is the best choice for safe and long-term storage of data at present due to the advantages of long service life, low cost and low energy consumption.
Therefore, storage platforms based on the blu-ray device are developed successively, and at present, the main storage method is hierarchical storage, that is, data is written into a buffer with a higher speed first, and then the data is read from the buffer to perform recording of the blu-ray disc. However, since the recording speed is lower than the cache writing speed, the cache backlog may be caused, which affects the working speed of the server, and in an extreme case, the server may not be available because the cache is full.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect in the prior art that the working of the server is affected by the backlog of the cache when the recording speed is less than the cache speed, so as to provide a method, an apparatus and a computer device for determining the data writing speed.
According to a first aspect, the present invention discloses a data writing speed determining method, comprising the steps of: acquiring data write-in quantity within preset time; when the data writing amount in the preset time is smaller than or equal to a preset flow threshold value, acquiring the residual cache space of the cache; and adjusting the current data writing speed according to the size of the residual cache space.
Optionally, the method further comprises: and when the data write-in quantity in the preset time is larger than a preset flow threshold value, initiating a recording-in-advance request.
Optionally, the adjusting the current data writing speed according to the size of the remaining cache space includes: when the residual cache space is smaller than a first preset threshold value, data writing is carried out at a first preset speed, wherein the first preset speed is smaller than the current data writing speed; and when the residual cache space is larger than a second preset threshold, writing data at a second preset speed, wherein the second preset speed is larger than the current data writing speed, and the second preset threshold is larger than the first preset threshold.
Optionally, the adjusting the current data writing speed according to the size of the remaining cache space includes: when the residual cache space is larger than or equal to a first preset threshold and the residual cache space is smaller than or equal to a second preset threshold, acquiring a historical data writing speed average value; when the average value of the historical data writing speed is smaller than the current data writing speed, adjusting the current data writing speed to be the historical data writing speed; and when the average value of the historical data writing speeds is greater than or equal to the current data writing speed, writing data at the current data writing speed.
Optionally, after determining the data writing speed according to the size of the remaining cache space, the method further includes: responding to the timing operation; and when the time interval reaches a preset duration, repeatedly executing the step from the acquisition of the data writing amount in the preset time to the determination of the data writing speed according to the size of the residual cache space.
According to a second aspect, the present invention also discloses a data writing speed determining apparatus, comprising: the first acquisition module is used for acquiring the data write-in quantity within preset time; the second obtaining module is used for obtaining the residual cache space of the cache when the data writing quantity in the preset time is less than or equal to a preset flow threshold value; and the adjusting module is used for adjusting the current data writing speed according to the size of the residual cache space.
Optionally, the apparatus further comprises: and the request initiating module is used for initiating the recording-ahead request when the data writing quantity in the preset time is greater than a preset flow threshold value.
Optionally, the adjusting module includes: the first data writing module is used for writing data at a first preset speed when the residual cache space is smaller than a first preset threshold, wherein the first preset speed is smaller than the current data writing speed; and the second data writing module is used for writing data at a second preset speed when the residual cache space is greater than a second preset threshold, wherein the second preset speed is greater than the current data writing speed, and the second preset threshold is greater than the first preset threshold.
According to a third aspect, the invention also discloses a computer device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the data writing speed determination method according to the first aspect or any one of the optional embodiments of the first aspect.
According to a fourth aspect, the present invention also discloses a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data writing speed determination method according to the first aspect or any one of the optional embodiments of the first aspect.
The technical scheme of the invention has the following advantages:
according to the method and the device for determining the data writing speed, provided by the invention, the data writing amount in the preset time is obtained, when the data writing amount in the preset time is smaller than or equal to the preset flow threshold value, the residual cache space of the cache is obtained, and the current data writing speed is adjusted according to the size of the residual cache space. According to the invention, by comparing the data writing amount of the preset time with the preset flow threshold value, when the data writing amount of the preset time is less than or equal to the preset flow threshold value, the current data writing speed is adjusted according to the size of the residual space of the buffer, so that the long-term stable adjustment of the service buffer can be realized, the buffer cannot be fully written, and the server is ensured to be always in an available state.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a specific example of a data writing speed determination method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a specific example of a data writing speed determination apparatus in the embodiment of the present invention;
FIG. 3 is a diagram of an embodiment of a computer device.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses a method for determining data writing speed, which comprises the following steps as shown in figure 1:
s11: and acquiring the data writing amount in the preset time.
Illustratively, the data refers to data that the client writes to a cache of the server. The preset time may be 5 minutes. The data writing method can be writing in by a client through a wired network or a wireless network, and the server monitors the written data in real time to acquire the data writing amount within the preset time. The preset time and the data writing method are not particularly limited in the embodiments of the present invention, and those skilled in the art can determine the preset time and the data writing method according to actual situations.
S12: and when the data writing amount in the preset time is less than or equal to the preset flow threshold value, acquiring the residual buffer space of the buffer.
Illustratively, the preset traffic threshold is 3BP/5min, i.e. 3 cache slices per 5 minutes. The preset flow threshold value is not specifically limited in the embodiment of the present invention, and a person skilled in the art can set the preset flow threshold value according to actual conditions.
After the data write-in quantity within the preset time is obtained, flow early warning is carried out on the obtained data write-in quantity, namely the data write-in quantity within the preset time is compared with a preset flow threshold value, when the data write-in quantity within the preset time is larger than the preset flow threshold value, the data write-in speed is higher at the moment, a large amount of data are written into a cache, an advance burning request is sent to burning equipment (such as an optical disk drive, a hard disk connected with a server and the like) at the moment, the existing cache is released as soon as possible, so that the early warning can be carried out even if an extreme situation of writing in a large amount of flow is encountered, the existing cache is released as soon as possible, the cache is guaranteed not to be fully.
When the data writing amount in the preset time is smaller than or equal to the preset flow threshold, which indicates that the data writing speed is slow at the moment, obtaining the residual cache space of the cache, adjusting the current data writing speed according to the residual cache space of the cache, and obtaining the residual cache space of the cache by calling a related function.
S13: and adjusting the current data writing speed according to the size of the residual cache space.
For example, the adjusting the current data writing speed according to the size of the remaining cache space may specifically be: and when the residual cache space is smaller than a first preset threshold, performing data writing at a first preset speed, wherein the first preset speed is smaller than the current data writing speed.
Illustratively, the first preset threshold may be 20%, and the first preset threshold is not specifically limited in the embodiment of the present invention and may be determined by a person skilled in the art according to the specific situation of the buffer. The first preset speed may be set in advance, for example, 30 MB/S; it can also be dynamically adjusted according to the specific remaining space, for example, when the remaining space is 1%, the current data writing speed is reduced to 3M/S; the method for determining the first preset speed is not particularly limited in the embodiment of the present invention, and may be determined by a person skilled in the art according to actual conditions.
And when the residual cache space is larger than a second preset threshold, performing data writing at a second preset speed, wherein the second preset speed is larger than the current data writing speed, and the second preset threshold is larger than the first preset threshold.
Illustratively, the second preset threshold may be 60%. The second preset threshold is not specifically limited in the embodiment of the present invention, and may be determined by a person skilled in the art according to the actual situation of the buffer.
The second preset speed may be set in advance, for example, 80 MB/S; the current data writing speed can also be adjusted dynamically according to the specific remaining space, for example, when the remaining space is 80%, the current data writing speed is adjusted to be 100M/S; the method for determining the second preset speed in the embodiment of the present invention is not particularly limited, and those skilled in the art may determine the second preset speed according to actual situations.
According to the data writing speed determining method provided by the invention, the data writing amount in the preset time is obtained, when the data writing amount in the preset time is smaller than or equal to the preset flow threshold value, the residual cache space of the cache is obtained, and the current data writing speed is adjusted according to the size of the residual cache space. According to the invention, by comparing the data writing amount of the preset time with the preset flow threshold value, when the data writing amount of the preset time is less than or equal to the preset flow threshold value, the current data writing speed is adjusted according to the size of the residual space of the buffer, so that the long-term stable adjustment of the service buffer can be realized, the buffer cannot be fully written, and the server is ensured to be always in an available state.
As an optional implementation manner of the embodiment of the present invention, the step S13 further includes:
firstly, when the residual cache space is greater than or equal to a first preset threshold and the residual cache space is less than or equal to a second preset threshold, obtaining the average value of the writing speeds of the historical data.
For example, since the current recording instantaneous speed cannot be determined, the average value of the historical data writing speed can be used as a reference, and the current data writing speed can be adjusted according to the reference.
The average value of the history data writing speeds may be an average value of data writing speeds of a previous period of time (for example, a previous week) or an average value of data writing speeds of previous times (for example, previous 5 times). The average value of the historical data writing speed is not particularly limited in the embodiment of the present invention, and can be determined by a person skilled in the art according to actual situations.
Taking the example that the average value of the history data writing speed is the average value of the data writing speed of the previous week, a specific determination method of the average value of the history data writing speed is described, namely, the data writing amount of the previous week is obtained, and then the average speed of the data written in the previous week, namely the history data writing speed, is calculated by using an average value calculation formula.
And when the average value of the historical data writing speeds is less than the current data writing speed, adjusting the current data writing speed to be the historical data writing speed. And when the average value of the historical data writing speeds is greater than or equal to the current data writing speed, writing data at the current data writing speed.
According to the embodiment of the invention, by dynamically monitoring the method for limiting the flow, the rapid experience when the residual space is abundant is ensured, and the current writing speed is adjusted according to the average value of the historical data writing speed, so that a user can obtain relatively better use experience when writing and recording equipment, and the use is more stable and efficient.
As an optional implementation manner of the embodiment of the present invention, after the step S13 adjusts the current data writing speed, the data writing speed determining method further includes:
first, a response timing operation.
Illustratively, the timing operation can be executed by a clock carried by the server, or by other timing devices connected with the server. The execution subject of the timing operation is not specifically limited in the embodiment of the present invention, and may be determined by a person skilled in the art according to actual conditions.
And secondly, when the time interval reaches a preset duration, repeatedly executing the steps from obtaining the data writing amount in the preset time to determining the data writing speed according to the size of the residual cache space.
The preset time period is exemplarily 10 minutes, and the preset time period is not particularly limited in the embodiment of the present invention and can be determined by a person skilled in the art according to actual situations.
After the current data writing speed is adjusted, the resource occupation condition of the server needs to be monitored in real time, and when the time interval reaches the preset time length, the steps of obtaining the data writing amount in the preset time and determining the data writing speed according to the size of the residual cache space are repeatedly executed to readjust the data writing speed so as to ensure the long-term stable adjustment of the service cache and enable the server to be always in an available state.
The embodiment of the present invention further discloses a data writing speed determining apparatus, as shown in fig. 2, including:
a first obtaining module 21, configured to obtain a data write amount within a preset time; the specific implementation manner is described in the above embodiment in relation to step S11, and is not described herein again.
The second obtaining module 22 is configured to obtain a remaining buffer space of the buffer when a data write amount in a preset time is smaller than or equal to a preset flow threshold; the specific implementation manner is described in the above embodiment in relation to step S12, and is not described herein again.
And the adjusting module 23 is configured to adjust the current data writing speed according to the size of the remaining cache space. The specific implementation manner is described in the above embodiment in relation to step S13, and is not described herein again.
According to the data writing speed determining device provided by the invention, the data writing amount in the preset time is obtained, when the data writing amount in the preset time is smaller than or equal to the preset flow threshold value, the residual cache space of the cache is obtained, and the current data writing speed is adjusted according to the size of the residual cache space. According to the invention, by comparing the data writing amount of the preset time with the preset flow threshold value, when the data writing amount of the preset time is less than or equal to the preset flow threshold value, the current data writing speed is adjusted according to the size of the residual space of the buffer, so that the long-term stable adjustment of the service buffer can be realized, the buffer cannot be fully written, and the server is ensured to be always in an available state.
As an optional implementation manner of the embodiment of the present invention, the data writing speed determining apparatus further includes:
and the request initiating module is used for initiating the recording-ahead request when the data write-in quantity in the preset time is greater than a preset flow threshold value. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
As an optional implementation manner of the embodiment of the present invention, the adjusting module 23 includes:
the first data writing module is used for writing data at a first preset speed when the residual cache space is smaller than a first preset threshold, and the first preset speed is smaller than the current data writing speed; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
And the second data writing module is used for writing data at a second preset speed when the residual cache space is larger than a second preset threshold, wherein the second preset speed is larger than the current data writing speed, and the second preset threshold is larger than the first preset threshold. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
As an optional implementation manner of the embodiment of the present invention, the adjusting module 23 further includes:
the third obtaining module is used for obtaining the average value of the writing speed of the historical data when the residual cache space is larger than or equal to the first preset threshold and the residual cache space is smaller than or equal to the second preset threshold; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
The adjusting submodule is used for adjusting the current data writing speed to the historical data writing speed when the average value of the historical data writing speed is smaller than the current data writing speed; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
And the third data writing module is used for writing data at the current data writing speed when the average value of the historical data writing speeds is greater than or equal to the current data writing speed. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
As an optional implementation manner of the embodiment of the present invention, the data writing speed determining apparatus further includes:
and the response module is used for responding to the timing operation. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
And the execution module is used for repeatedly executing the steps from obtaining the data writing amount in the preset time to determining the data writing speed according to the size of the residual cache space when the time interval reaches the preset duration. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
An embodiment of the present invention further provides a computer device, as shown in fig. 3, the computer device may include a processor 31 and a memory 32, where the processor 31 and the memory 32 may be connected by a bus or in another manner, and fig. 3 takes the example of being connected by a bus as an example.
The processor 31 may be a Central Processing Unit (CPU). The Processor 31 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 32, which is a non-transitory computer-readable storage medium, may be used for storing non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the first obtaining module 21, the second obtaining module 22, and the adjusting module 23 shown in fig. 2) corresponding to the data writing speed determining method in the embodiment of the present invention. The processor 31 executes various functional applications and data processing of the processor by executing the non-transitory software programs, instructions and modules stored in the memory 32, that is, implements the data writing speed determination method in the above method embodiment.
The memory 32 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 31, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 32 may optionally include memory located remotely from the processor 31, and these remote memories may be connected to the processor 31 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 32 and, when executed by the processor 31, perform a data writing speed determination method as in the embodiment shown in fig. 1.
The details of the computer device can be understood with reference to the corresponding related descriptions and effects in the embodiment shown in fig. 1, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A data writing speed determining method, characterized by comprising the steps of:
acquiring data write-in quantity within preset time;
when the data writing amount in the preset time is smaller than or equal to a preset flow threshold value, acquiring the residual cache space of the cache;
and adjusting the current data writing speed according to the size of the residual cache space.
2. The method of claim 1, further comprising:
and when the data write-in quantity in the preset time is larger than a preset flow threshold value, initiating a recording-in-advance request.
3. The method of claim 1, wherein the adjusting the current data writing speed according to the size of the remaining buffer space comprises:
when the residual cache space is smaller than a first preset threshold value, data writing is carried out at a first preset speed, wherein the first preset speed is smaller than the current data writing speed;
and when the residual cache space is larger than a second preset threshold, writing data at a second preset speed, wherein the second preset speed is larger than the current data writing speed, and the second preset threshold is larger than the first preset threshold.
4. The method of claim 3, wherein the adjusting the current data writing speed according to the size of the remaining buffer space comprises:
when the residual cache space is larger than or equal to a first preset threshold and the residual cache space is smaller than or equal to a second preset threshold, acquiring a historical data writing speed average value;
when the average value of the historical data writing speed is smaller than the current data writing speed, adjusting the current data writing speed to be the historical data writing speed;
and when the average value of the historical data writing speeds is greater than or equal to the current data writing speed, writing data at the current data writing speed.
5. The method of claim 1, wherein after determining the data writing speed according to the size of the remaining buffer space, the method further comprises:
responding to the timing operation;
and when the time interval reaches a preset duration, repeatedly executing the step from the acquisition of the data writing amount in the preset time to the determination of the data writing speed according to the size of the residual cache space.
6. A data writing speed determining apparatus, comprising:
the first acquisition module is used for acquiring the data write-in quantity within preset time;
the second obtaining module is used for obtaining the residual cache space of the cache when the data writing quantity in the preset time is less than or equal to a preset flow threshold value;
and the adjusting module is used for adjusting the current data writing speed according to the size of the residual cache space.
7. The apparatus of claim 6, further comprising:
and the request initiating module is used for initiating the recording-ahead request when the data writing quantity in the preset time is greater than a preset flow threshold value.
8. The apparatus of claim 6, wherein the adjustment module comprises:
the first data writing module is used for writing data at a first preset speed when the residual cache space is smaller than a first preset threshold, wherein the first preset speed is smaller than the current data writing speed;
and the second data writing module is used for writing data at a second preset speed when the residual cache space is greater than a second preset threshold, wherein the second preset speed is greater than the current data writing speed, and the second preset threshold is greater than the first preset threshold.
9. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the data writing speed determination method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data writing speed determination method according to any one of claims 1 to 5.
CN202011613942.9A 2020-12-30 2020-12-30 Data writing speed determination method and device and computer equipment Pending CN112748878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011613942.9A CN112748878A (en) 2020-12-30 2020-12-30 Data writing speed determination method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011613942.9A CN112748878A (en) 2020-12-30 2020-12-30 Data writing speed determination method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN112748878A true CN112748878A (en) 2021-05-04

Family

ID=75649983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011613942.9A Pending CN112748878A (en) 2020-12-30 2020-12-30 Data writing speed determination method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112748878A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806087A (en) * 2021-09-10 2021-12-17 济南浪潮数据技术有限公司 Method and device for adjusting service speed based on brushing speed
CN114153381A (en) * 2021-11-03 2022-03-08 尧云科技(西安)有限公司 Method for reducing write-in performance fluctuation of solid state disk
CN118214820A (en) * 2024-05-20 2024-06-18 山东云海国创云计算装备产业创新中心有限公司 Image data processing method, product, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111128247A (en) * 2019-12-18 2020-05-08 浙江大华技术股份有限公司 Data recording method, device, computing equipment and storage medium
CN111367471A (en) * 2020-02-27 2020-07-03 安超云软件有限公司 Speed limiting method, device, equipment and medium for write-in cache

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111128247A (en) * 2019-12-18 2020-05-08 浙江大华技术股份有限公司 Data recording method, device, computing equipment and storage medium
CN111367471A (en) * 2020-02-27 2020-07-03 安超云软件有限公司 Speed limiting method, device, equipment and medium for write-in cache

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806087A (en) * 2021-09-10 2021-12-17 济南浪潮数据技术有限公司 Method and device for adjusting service speed based on brushing speed
CN113806087B (en) * 2021-09-10 2023-12-26 济南浪潮数据技术有限公司 Method and device for adjusting service speed based on brushing speed
CN114153381A (en) * 2021-11-03 2022-03-08 尧云科技(西安)有限公司 Method for reducing write-in performance fluctuation of solid state disk
CN118214820A (en) * 2024-05-20 2024-06-18 山东云海国创云计算装备产业创新中心有限公司 Image data processing method, product, equipment and medium

Similar Documents

Publication Publication Date Title
CN112748878A (en) Data writing speed determination method and device and computer equipment
ES2929456T3 (en) Systems and methods for collecting, tracking, and storing system performance and event data for computing devices
US9285857B2 (en) Application idle current drain measurement
US20160299805A1 (en) Solid state disk using method and apparatus
US9946467B2 (en) Data storage method and electronic device
EP2889750B1 (en) Method and apparatus for managing data
WO2023061342A1 (en) Data trend detection method, electronic device, and storage medium
CN113391765A (en) Data storage method, device, equipment and medium based on distributed storage system
CN108874324B (en) Access request processing method, device, equipment and readable storage medium
CN114168401A (en) Log recording method and device and electronic equipment
CN110647460B (en) Test resource management method and device and test client
ES2883359T3 (en) Method and apparatus for improving the broadband experience using a cloud-based recommendation engine
US9703496B2 (en) Information processing device, information processing method, and medium
CN105183627A (en) Server performance prediction method and system
CN111124303A (en) Data storage method, device and system
US10268598B2 (en) Primary memory module with record of usage history
CN112367395A (en) Alarm threshold modifying method, equipment and computer readable storage medium
CN112860513A (en) Application non-response monitoring method, device, equipment and storage medium
GB2535913A (en) System management device, system management method, and program
CN109284275B (en) Cloud platform virtual machine file system monitoring method and device
JP6257773B2 (en) Wireless body area network data processing method and apparatus
US9843943B1 (en) Application-level quality of service testing system
CN112711384A (en) Data storage method and device based on multiple storage devices
CN112312467A (en) Network transmission control method and device
CN110785744A (en) Method and device for evaluating storage performance of solid state disk and image storage system

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