CN112711386B - Storage capacity detection method and device of storage device and readable storage medium - Google Patents

Storage capacity detection method and device of storage device and readable storage medium Download PDF

Info

Publication number
CN112711386B
CN112711386B CN202110062331.8A CN202110062331A CN112711386B CN 112711386 B CN112711386 B CN 112711386B CN 202110062331 A CN202110062331 A CN 202110062331A CN 112711386 B CN112711386 B CN 112711386B
Authority
CN
China
Prior art keywords
storage capacity
detection time
storage device
data
storage
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
CN202110062331.8A
Other languages
Chinese (zh)
Other versions
CN112711386A (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.)
Shenzhen Longxin Information Technology Co ltd
Original Assignee
Shenzhen Longxin Information 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 Shenzhen Longxin Information Technology Co ltd filed Critical Shenzhen Longxin Information Technology Co ltd
Priority to CN202110062331.8A priority Critical patent/CN112711386B/en
Publication of CN112711386A publication Critical patent/CN112711386A/en
Application granted granted Critical
Publication of CN112711386B publication Critical patent/CN112711386B/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/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • 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/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • 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/0653Monitoring storage devices or 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

Abstract

The application relates to the technical field of data storage, and discloses a storage capacity detection method and device of a storage device and a readable storage medium. The method comprises the following steps: obtaining first detection time according to the type of data to be written; after the first detection time is up, obtaining a first storage capacity of data to be written in the storage device to obtain a second storage capacity occupied in the storage device; and updating the first detection time according to the second storage capacity. By the mode, on the premise of meeting the read-write requirement of the existing task on the storage device, the read-write operation on the storage device is reduced, the damage to the storage device caused by long-term frequent read-write is reduced, the service life of a hard disk is prolonged, and the waste of system resources is reduced.

Description

Storage capacity detection method and device of storage device and readable storage medium
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a method and an apparatus for detecting storage capacity of a storage device, and a readable storage medium.
Background
When the storage device is in different service scenes (service peak period, peak leveling period, peak low period and the like) during work, tasks such as writing or reading different storage file types (log files, document files, multimedia files and the like) are executed, if the same read/write strategy is adopted for the tasks, the waste of system resources is easily caused at the peak low period, the service life of a hard disk is reduced, the task delay is caused by insufficient system resources at the peak high period, the hardware is always operated in an overload mode when the task is delayed, and the damage of the hard disk is also caused by long-term overload operation.
Disclosure of Invention
In order to solve the above problems, the present application provides a method and an apparatus for detecting a storage capacity of a storage device, and a readable storage medium, which can reduce read-write operations on the storage device, reduce damages to the storage device caused by long-term frequent read-write operations, increase a service life of a hard disk, and reduce waste of system resources on the premise of satisfying read-write requirements of existing tasks on the storage device.
The technical scheme adopted by the application is to provide a storage capacity detection method of a storage device, and the method comprises the following steps: obtaining first detection time according to the type of data to be written; after the first detection time is up, obtaining a first storage capacity of data to be written in the storage device to obtain a second storage capacity occupied in the storage device; and updating the first detection time according to the second storage capacity.
Obtaining the first detection time according to the type of the data to be written includes: acquiring a first weight corresponding to the type of data to be written; and obtaining a first detection time by using the first weight and the standard detection time.
Wherein, the method also comprises: acquiring a service scene corresponding to data to be written; acquiring a second weight corresponding to a service scene; obtaining the first detection time using the first weight and the standard detection time includes: and obtaining first detection time by using the first weight, the second weight and the standard detection time.
Before updating the first detection time according to the second storage capacity, the method includes: and calculating by using the first detection time and the first storage capacity to obtain the writing speed of the data to be written when the data is written into the storage device.
The calculating by using the first detection time and the first storage capacity to obtain the writing speed of the data to be written when the data is written into the storage device includes: acquiring a sequence number of current first detection time; if the serial number is smaller than the preset serial number, acquiring the serial number and the writing speeds corresponding to a plurality of first detection times before the serial number respectively; calculating an average value of a plurality of writing speeds; the average value is taken as the writing speed.
Wherein updating the first detection time according to the second storage capacity comprises: calculating by using the third storage capacity and the second storage capacity of the storage device to obtain a fourth storage capacity; wherein the third storage capacity is a total storage capacity of the storage device; calculating by using the fourth storage capacity and the writing speed to obtain the writing time of the data to be written; the first detection time is updated with the write time.
Wherein updating the first detection time with the write time comprises: calculating a ratio between the writing time and the first detection time; and if the ratio is smaller than the preset value, calculating by using the first detection time to obtain second detection time.
Wherein, the method also comprises: when the occupation ratio of the second storage capacity in the storage device is larger than a set threshold, performing data aging of the storage device to delete part of the data.
Another technical solution adopted by the present application is to provide a storage capacity detection apparatus of a storage device, where the detection apparatus includes a processor and a memory connected to the processor; the memory is used for storing program data, and the processor is connected with the storage device and used for executing the program data so as to realize the method provided by the technical scheme.
Another technical solution adopted by the present application is to provide a readable storage medium for storing program data, which when executed by a processor, is used for implementing the method as provided in the above technical solution.
The beneficial effect of this application is: different from the prior art, the method and the device dynamically update the detection time by using the type of the data to be written and the storage capacity of the storage device, so that the detected storage capacity of the storage device is more in line with the actual situation, and on the premise of meeting the read-write requirements of the existing tasks on the storage device, the read-write operation on the storage device is reduced, the damage to the storage device caused by long-term frequent read-write is reduced, the service life of a hard disk is prolonged, and the waste of system resources is reduced.
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. Wherein:
FIG. 1 is a schematic flowchart illustrating an embodiment of a storage capacity detection method for a storage device according to the present application;
FIG. 2 is a schematic flow chart illustrating a method for detecting storage capacity of a storage device according to another embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of step 24 of FIG. 2 provided herein;
FIG. 4 is a schematic flow chart of step 27 of FIG. 2 provided herein;
FIG. 5 is a schematic structural diagram of an embodiment of a storage capacity detection apparatus of a storage device provided in the present application;
FIG. 6 is a schematic structural diagram of an embodiment of a readable storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. 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 application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for detecting a storage capacity of a storage device according to an embodiment of the present disclosure. The method comprises the following steps:
step 11: and obtaining first detection time according to the type of the data to be written.
In this embodiment, the storage device may be a hard disk, such as a mechanical hard disk or a solid state hard disk. The storage device may also be a usb disk.
When data is written into the storage device, because the size of data generated in a certain time is different for each type of data, different weights can be set for the data to be written of different data types, and the corresponding first detection time can be obtained according to the weights.
The first detection time is used for indicating the detection frequency of the storage capacity of the storage device when the data to be written is written into the storage device. If the first detection time is 10 minutes, the storage capacity of the storage device is detected 10 minutes after the data to be written is written into the storage device.
Step 12: and after the first detection time is up, obtaining the first storage capacity of the data to be written in the storage device so as to obtain the second storage capacity occupied in the storage device.
The first storage capacity is the data size of the data to be written in the storage device in the first detection time. The second storage capacity is the second storage capacity currently occupied by the storage device. The second storage capacity is almost equal to the first storage capacity when the storage device is first used, and is larger than the first storage capacity in other cases.
Step 13: and updating the first detection time according to the second storage capacity.
In some embodiments, a capacity class corresponding to the second storage capacity may be determined, and the first detection time may be updated according to the capacity class.
For example, the capacity ranks of the storage device are divided by percentage, with thirty-five percent or less being the capacity rank a, thirty-five percent to seventy percent being the capacity rank B, and seventy percent or more being the capacity rank C. Corresponding values are set for different capacity classes, e.g. capacity class a is set to a value of 1, capacity class B is set to a value of 2, and capacity class C is set to a value of 3. And dividing the first detection time by the numerical value of the capacity grade corresponding to the second storage capacity to obtain second detection time. The second detection time may be used as a new first detection time. Specifically, when the numerical value of the capacity rank corresponding to the second storage capacity is 1 or 2, the second detection time is obtained by dividing the first detection time by the numerical value of the capacity rank corresponding to the second storage capacity. And when the numerical value of the capacity grade corresponding to the second storage capacity is 3, deleting part of data in the storage device to release the storage capacity. The data with the oldest writing time may be deleted according to the writing time of the data.
In an application scenario, after determining data to be written, a first detection time can be obtained according to the type of the data to be written. And after the first detection time is up, obtaining the first storage capacity of the data to be written in the storage device so as to obtain the second storage capacity occupied in the storage device. And determining the capacity grade of the second storage capacity, correspondingly updating corresponding first detection time, and continuing to execute the steps if the type of the data to be written is not changed after the first detection time is up. When the occupation ratio of the second storage capacity in the storage device is larger than a set threshold, performing data aging of the storage device to delete part of the data.
In this embodiment, the detection time is dynamically updated by using the type of the data to be written and the storage capacity of the storage device, so that the detected storage capacity of the storage device better meets the actual situation, and on the premise of meeting the read-write requirement of the existing task on the storage device, the read-write operation on the storage device is reduced, the damage to the storage device caused by long-term frequent read-write is reduced, the service life of a hard disk is prolonged, and the waste of system resources is reduced.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for detecting a storage capacity of a storage device according to another embodiment of the present disclosure. The method comprises the following steps:
step 21: and acquiring a first weight corresponding to the type of the data to be written.
When the data to be written includes multiple types, weighting may be performed according to the first weight corresponding to each type to obtain an average weight value, and the average weight value is used as the first weight of the data to be written.
Step 22: and obtaining a first detection time by using the first weight and the standard detection time.
If the first weight is 0.8 and the standard detection time is 30 minutes, the first detection time is 0.8 × 30 — 24 minutes. It will be appreciated that different standard test times may be set depending on the overall capacity of the storage device.
Step 23: and after the first detection time is up, obtaining the first storage capacity of the data to be written in the storage device so as to obtain the second storage capacity occupied in the storage device.
Step 24: and calculating by using the first detection time and the first storage capacity to obtain the writing speed of the data to be written when the data is written into the storage device.
Since the first detection time and the first storage capacity are known, the writing speed of the data to be written in the first detection time can be calculated.
In some embodiments, referring to fig. 3, step 24 may specifically be the following step:
step 241: and acquiring the sequence number of the current first detection time.
In an embodiment, the first detection times are sorted each time, and the first detection times each time have corresponding sequence numbers.
Step 242: if the serial number is smaller than the preset serial number, the writing speeds corresponding to the serial number and a plurality of first detection times before the serial number are obtained respectively.
Step 243: calculating an average value of a plurality of writing speeds; the average value is taken as the writing speed.
It can be understood that when the sequence number is smaller than the preset sequence number, the storage device is indicated to write data less times. The number and the write speeds corresponding to the previous times are averaged, and the average value is taken as the write speed. If the preset number is 4, the writing speed is obtained from the corresponding first storage capacity and the first detection time when the number is 1, and at this time, the average value is not required because the number is 1. When the number is 2, the writing speed is obtained from the first storage capacity and the first detection time corresponding thereto, and the writing speed corresponding to the number 1, and the average value of the two writing speeds is obtained as the writing speed. At the time of number 3, the write speed is obtained from the corresponding first storage capacity and first detection time, and the write speeds corresponding to numbers 1 and 2, and the average of the three write speeds is obtained as the write speed. When the serial number is 4, the serial number is equal to the preset serial number, and the writing speed is obtained according to the corresponding first storage capacity and the first detection time. And if the serial number is greater than the preset serial number, calculating the writing speed according to the corresponding first storage capacity and the first detection time. And when the sequence number is greater than or equal to the preset sequence number, the obtained writing speed is greater than the previous writing speed, the current writing speed is used for updating the previous writing speed, and when the writing time is calculated again, the updated writing speed is used.
Step 25: and calculating by using the third storage capacity and the second storage capacity of the storage device to obtain a fourth storage capacity.
Wherein the third storage capacity is a total storage capacity of the storage device. The fourth storage capacity is obtained by subtracting the second storage capacity from the third storage capacity. The fourth storage capacity represents a remaining storage capacity of the storage device.
Step 26: and calculating by using the fourth storage capacity and the writing speed to obtain the writing time of the data to be written.
The writing time to the storage means at the writing speed can be obtained by dividing the fourth storage capacity by the writing speed. This is an estimate.
Step 27: the first detection time is updated with the write time.
Specifically, referring to fig. 4, step 27 may be the following step:
step 271: a ratio between the writing time and the first detection time is calculated.
Step 272: and if the ratio is smaller than the preset value, calculating by using the first detection time to obtain second detection time.
If the preset value is 3, if the ratio is less than 3, dividing the first detection time by 2 to obtain a second detection time. And taking the second detection time as a time interval, and acquiring the storage capacity of the storage device after the second detection time is reached. It can be understood that when the ratio is smaller than the preset value, which means that the value of the fourth storage capacity is gradually decreased, the remaining storage capacity is decreased, and at this time, the detection time needs to be shortened, so that the storage capacity can be acquired in more detail.
And if the ratio is larger than or equal to the preset value, the current first detection time is still used as the time interval, and the storage capacity of the storage device is acquired after the first detection time is reached.
In an application scenario, a capacity class is set for a storage device in advance and a first weight is set for data to be written according to a type. Such as a log file, a multimedia file, etc., the first weight corresponding to the log file is 0.9, and the first weight corresponding to the multimedia file is 0.8. And acquiring the residual storable capacity of the storage device after the first detection time is reached. A capacity level may be determined based on the remaining storable capacity. Simultaneously acquiring a service scene corresponding to data to be written; acquiring a second weight corresponding to a service scene; for example, when the service scenario is in a service peak period, the corresponding second weight is 0.5, and when the service scenario is in a service off-peak period, the corresponding second weight is 1. And obtaining first detection time by using the first weight, the second weight and the standard detection time. Specifically, the first detection time is obtained by dividing the initial detection time by a value corresponding to the capacity class by using the first weight and the standard detection time, which is the initial detection time, and then multiplying the value by the second weight.
And the initial traffic peak value is the average value of the capacity detection results of the previous three times and is used as the writing speed, and the writing speed is updated from the fourth time of capacity detection if the latest peak value is larger than the previous value.
In the embodiment of the application, the corresponding detection time is determined by using different storage capacities, and corresponding weights are set according to the file type of data to be written, the service scene (service peak period and non-peak period) and the peak value change of the increase of the storage capacity in unit time; and calculating to obtain a storage capacity detection time by comprehensively considering the factors. On the premise of satisfying the disk capacity detection function, the detection time obtained according to the method can reduce the read-write operation on the disk, reduce the damage to the disk caused by long-term frequent read-write, prolong the service life of the disk, and reduce the resource loss of a Central Processing Unit (cpu) on the read-write of the disk
In other words, the embodiment of the present application does not simply determine whether to do nothing below the first threshold, and operates to reduce the writing speed above the second threshold; the first detection time is estimated according to the type of the current file written into the disk and the condition of the service scene, and the first detection time can be dynamically changed according to the positions of the current disk capacity at the first threshold and the second threshold; in addition, implementing i with our own device functionality increases that if the current disk capacity is greater than a second threshold, i will initiate an aging mechanism (i.e., delete the oldest written file).
According to the embodiment of the application, the data files with certain capacity can be dynamically reserved in the storage device of the equipment end after the equipment is disconnected with the external data acquisition equipment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a storage capacity detection apparatus of a storage device provided in the present application. The detection device 50 comprises a processor 51 and a memory 52 connected to the processor 51; the memory 52 is used for storing program data, and the processor 51 is connected to the storage device for executing the program data to realize the following method:
obtaining first detection time according to the type of data to be written; after the first detection time is up, obtaining a first storage capacity of data to be written in the storage device to obtain a second storage capacity occupied in the storage device; and updating the first detection time according to the second storage capacity.
It will be appreciated that the processor 51 is also operative to execute program data to implement any of the embodiment methods described above.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a readable storage medium provided in the present application. The readable storage medium 60 is for storing program data 61, the program data 61, when executed by a processor, being for implementing the method of:
obtaining first detection time according to the type of data to be written; after the first detection time is up, obtaining a first storage capacity of data to be written in the storage device to obtain a second storage capacity occupied in the storage device; and updating the first detection time according to the second storage capacity.
It will be appreciated that the program data 61, when executed by a processor, is also for implementing any of the embodiment methods described above.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units in the other embodiments described above may be stored in a storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (7)

1. A method for detecting storage capacity of a storage device, the method comprising:
acquiring a first weight corresponding to the type of data to be written, and acquiring first detection time by using the first weight and standard detection time;
after the first detection time is up, obtaining a first storage capacity of the data to be written in the storage device to obtain a second storage capacity occupied in the storage device;
calculating by using the first detection time and the first storage capacity to obtain the writing speed of the data to be written when the data is written into the storage device;
performing a calculation using a third storage capacity of a storage device and the second storage capacity to obtain a fourth storage capacity, wherein: if the third storage capacity is the total storage capacity of the storage device, subtracting the second storage capacity from the third storage capacity to obtain a fourth storage capacity, where the fourth storage capacity represents the remaining storage capacity of the storage device;
calculating by using the fourth storage capacity and the writing speed to obtain the writing time of the data to be written;
and updating the first detection time by using the writing time.
2. The method of claim 1,
the method further comprises the following steps:
acquiring a service scene corresponding to the data to be written;
acquiring a second weight corresponding to the service scene;
the obtaining the first detection time by using the first weight and the standard detection time comprises:
and obtaining the first detection time by using the first weight, the second weight and the standard detection time.
3. The method of claim 1,
the calculating by using the first detection time and the first storage capacity to obtain the writing speed of the data to be written when writing into the storage device includes:
acquiring a sequence number of the current first detection time;
if the serial number is smaller than a preset serial number, acquiring the serial number and writing speeds corresponding to a plurality of first detection times before the serial number respectively;
calculating an average of a plurality of said writing speeds; taking the average value as the writing speed.
4. The method of claim 3,
the updating the first detection time with the write time includes:
calculating a ratio between the writing time and a first detection time;
and if the ratio is smaller than a preset value, calculating by using the first detection time to obtain a second detection time.
5. The method according to any one of claims 1 to 4,
the method further comprises the following steps:
and when the occupation ratio of the second storage capacity in the storage device is larger than a set threshold, performing data aging of the storage device to delete partial data.
6. A storage capacity detection apparatus of a storage device, characterized in that the detection apparatus comprises a processor and a memory connected to the processor;
the memory is used for storing program data, and the processor is connected with the storage device and used for executing the program data to realize the method as claimed in any one of claims 1-5.
7. A readable storage medium, characterized in that the readable storage medium is used for storing program data, which, when being executed by a processor, is used for carrying out the method according to any one of claims 1-5.
CN202110062331.8A 2021-01-18 2021-01-18 Storage capacity detection method and device of storage device and readable storage medium Active CN112711386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110062331.8A CN112711386B (en) 2021-01-18 2021-01-18 Storage capacity detection method and device of storage device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110062331.8A CN112711386B (en) 2021-01-18 2021-01-18 Storage capacity detection method and device of storage device and readable storage medium

Publications (2)

Publication Number Publication Date
CN112711386A CN112711386A (en) 2021-04-27
CN112711386B true CN112711386B (en) 2021-07-16

Family

ID=75549223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110062331.8A Active CN112711386B (en) 2021-01-18 2021-01-18 Storage capacity detection method and device of storage device and readable storage medium

Country Status (1)

Country Link
CN (1) CN112711386B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500586A (en) * 2013-09-26 2014-01-08 北京奇虎科技有限公司 Method and device for detecting capacity of storage device
CN104123100A (en) * 2013-04-25 2014-10-29 国际商业机器公司 Controlling data storage in an array of storage devices
CN107239225A (en) * 2016-03-29 2017-10-10 群联电子股份有限公司 Storage management method, memorizer memory devices and memorizer control circuit unit
JP2018156263A (en) * 2017-03-16 2018-10-04 東芝メモリ株式会社 Memory system, memory controller and method for controlling memory system
CN108959597A (en) * 2018-07-12 2018-12-07 深圳Tcl新技术有限公司 User's space guard method, device, equipment and display terminal storage medium
CN109947370A (en) * 2014-05-30 2019-06-28 北京忆恒创源科技有限公司 Write data into the method, apparatus and storage equipment of storage equipment
CN110377235A (en) * 2019-07-26 2019-10-25 Oppo(重庆)智能科技有限公司 Data processing method, device, mobile terminal and computer readable storage medium
CN110727406A (en) * 2019-10-10 2020-01-24 深圳力维智联技术有限公司 Data storage scheduling method and device
CN111194055A (en) * 2019-12-30 2020-05-22 广东博智林机器人有限公司 Data storage frequency processing method and device, electronic equipment and storage medium
CN112214493A (en) * 2020-10-20 2021-01-12 北京九思易自动化软件有限公司 Historical record storage method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7788526B2 (en) * 2007-01-10 2010-08-31 International Business Machines Corporation Providing enhanced tolerance of data loss in a disk array system
WO2016051512A1 (en) * 2014-09-30 2016-04-07 株式会社日立製作所 Distributed storage system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123100A (en) * 2013-04-25 2014-10-29 国际商业机器公司 Controlling data storage in an array of storage devices
CN103500586A (en) * 2013-09-26 2014-01-08 北京奇虎科技有限公司 Method and device for detecting capacity of storage device
CN109947370A (en) * 2014-05-30 2019-06-28 北京忆恒创源科技有限公司 Write data into the method, apparatus and storage equipment of storage equipment
CN107239225A (en) * 2016-03-29 2017-10-10 群联电子股份有限公司 Storage management method, memorizer memory devices and memorizer control circuit unit
JP2018156263A (en) * 2017-03-16 2018-10-04 東芝メモリ株式会社 Memory system, memory controller and method for controlling memory system
CN108959597A (en) * 2018-07-12 2018-12-07 深圳Tcl新技术有限公司 User's space guard method, device, equipment and display terminal storage medium
CN110377235A (en) * 2019-07-26 2019-10-25 Oppo(重庆)智能科技有限公司 Data processing method, device, mobile terminal and computer readable storage medium
CN110727406A (en) * 2019-10-10 2020-01-24 深圳力维智联技术有限公司 Data storage scheduling method and device
CN111194055A (en) * 2019-12-30 2020-05-22 广东博智林机器人有限公司 Data storage frequency processing method and device, electronic equipment and storage medium
CN112214493A (en) * 2020-10-20 2021-01-12 北京九思易自动化软件有限公司 Historical record storage method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李红艳." 针对固态盘的I/O优化技术研究".《中国博士学位论文全文数据库 信息科技辑》.2017,(第08期),I137-16. *

Also Published As

Publication number Publication date
CN112711386A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN109144414B (en) Multi-level storage method and device for block chain data
CN111324303B (en) SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium
CN111857592A (en) Data storage method and device based on object storage system and electronic equipment
US20210132829A1 (en) Method, device and computer program product of balance of storage space for file system
CN109597800B (en) Log distribution method and device
CN111061752A (en) Data processing method and device and electronic equipment
CN114895846A (en) Data processing method, device and equipment
CN111562884B (en) Data storage method and device and electronic equipment
CN115167780A (en) Data reconstruction method and device, electronic equipment and storage medium
CN112711386B (en) Storage capacity detection method and device of storage device and readable storage medium
CN112883065A (en) Data storage method and device and computer equipment
CN110781166B (en) Data management method and device in storage system
CN110647498A (en) File storage method, device, equipment and computer readable storage medium
CN111221790A (en) Log file processing method and device and computer readable storage medium
CN113806087B (en) Method and device for adjusting service speed based on brushing speed
CN111338567B (en) Mirror image caching method based on Protocol Buffer
CN111880735B (en) Data migration method, device, equipment and storage medium in storage system
CN110851286B (en) Thread management method and device, electronic equipment and storage medium
CN108762679B (en) Method for combining online DDP (distributed data processing) and offline DDP (distributed data processing) and related device thereof
CN114443629A (en) Cluster bloom filter data duplication removing method, terminal equipment and storage medium
CN111736991A (en) Method, device and equipment for scheduling cloud platform resources and readable medium
CN114911668B (en) Data resource monitoring method and system
CN116450054B (en) IO request processing method, device, host and computer readable storage medium
CN115794446B (en) Message processing method and device, electronic equipment and storage medium
CN105095197A (en) Method and device for processing data

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