CN112131078B - Method and equipment for monitoring disk capacity - Google Patents

Method and equipment for monitoring disk capacity Download PDF

Info

Publication number
CN112131078B
CN112131078B CN202010997939.5A CN202010997939A CN112131078B CN 112131078 B CN112131078 B CN 112131078B CN 202010997939 A CN202010997939 A CN 202010997939A CN 112131078 B CN112131078 B CN 112131078B
Authority
CN
China
Prior art keywords
data
increment
valley
sampled
peak
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
CN202010997939.5A
Other languages
Chinese (zh)
Other versions
CN112131078A (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.)
Shanghai Suninfo Technology Co ltd
Original Assignee
Shanghai Suninfo 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 Shanghai Suninfo Technology Co ltd filed Critical Shanghai Suninfo Technology Co ltd
Priority to CN202010997939.5A priority Critical patent/CN112131078B/en
Publication of CN112131078A publication Critical patent/CN112131078A/en
Application granted granted Critical
Publication of CN112131078B publication Critical patent/CN112131078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The method comprises the steps of detecting incremental data of the disk according to a preset monitoring frequency; screening the disk incremental data according to a specified time period to obtain data to be sampled, and determining an incremental average value according to the data to be sampled; setting a valley-peak increment value weighting parameter and a valley-peak frequency, and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value; and storing the data to be sampled into sampling data according to the judgment result and the valley-peak frequency, and calculating the available time of the magnetic disk according to the sampling data. Therefore, the remaining use time of the disk is evaluated by combining the factors of the emergency and the special time period, and the accuracy of the remaining use time of the disk is improved.

Description

Method and equipment for monitoring disk capacity
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for monitoring disk capacity.
Background
The existing disk capacity monitoring technology generally refers to checking the disk capacity regularly through a tool, then determining whether to perform early warning or not by referring to a set threshold value, and meanwhile, evaluating the remaining service time of a disk by combining with monitoring historical data.
However, in abnormal use scenarios such as an emergency or a special time period, influence factors such as the emergency and the special time period are not added to the evaluation condition, and only the disk capacity is evaluated on one side, so that the deviation between the disk capacity evaluation result and the actual residual capacity is large, and the disk capacity is about to run out but a negative result of a solution is not yet achieved.
Disclosure of Invention
An object of the present application is to provide a method and an apparatus for monitoring disk capacity, which solve the problem in the prior art that evaluation results of the remaining capacity and the remaining usage duration of a disk are inaccurate due to non-evaluation of an emergency and a special time period.
According to one aspect of the present application, there is provided a method of monitoring disk capacity, the method comprising:
detecting incremental data of the disk according to a preset monitoring frequency;
screening the disk incremental data according to a specified time period to obtain data to be sampled, and determining an incremental average value according to the data to be sampled;
setting a valley-peak increment value weighting parameter and a valley-peak frequency, and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value;
and storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency, and calculating the available time of the magnetic disk according to the sampling data.
Further, the storing the data to be sampled as sampling data according to the determination result and the valley-peak frequency includes:
and if the judgment result is that the increment of the data to be sampled is abnormal, judging whether the data to be sampled reaches the valley-peak frequency, and if so, saving the data to be sampled as sampled data.
Further, the method further comprises:
and if the judgment result is that the increment of the data to be sampled is normal, saving the data to be sampled as sampled data.
Further, after the determining whether the data to be sampled reaches the valley-peak frequency, the method includes:
if the frequency of the valley peak is not reached, an increment abnormity alarm is sent out.
Further, the determining whether the data to be sampled reaches the valley-peak frequency includes:
and judging whether the number of the valley values or the peak values in the data to be sampled reaches the valley-peak frequency, if so, classifying all the valley values and the peak values contained in the preset monitoring period as normal recorded values, and recalculating the increment average value.
Further, the determining whether the increment of the data to be sampled is abnormal according to the valley-peak increment value weighting parameter and the increment average value includes:
determining a valley value and a peak value in a preset monitoring period according to the valley-peak increment weighting parameter and the increment average value;
and respectively comparing the valley value and the peak value with the current data to be sampled, and judging whether the increment of the current data to be sampled is abnormal or not according to a comparison result.
Further, after the step of judging whether the increment of the current data to be sampled is abnormal according to the comparison result, the method includes:
and if the increment is abnormal, sending an increment abnormal alarm, and recording and storing the disk increment data with the increment abnormal, wherein the disk increment data with the increment abnormal are not used for calculating the increment average value.
According to another aspect of the present application, there is also provided an apparatus for monitoring disk capacity, the apparatus including:
the detection module is used for detecting the incremental data of the disk according to the preset monitoring frequency;
the sampling module is used for screening the disk incremental data according to a specified time period to obtain data to be sampled and determining an incremental average value according to the data to be sampled;
the judging module is used for setting a valley-peak increment value weighting parameter and a valley-peak frequency and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value;
and the data processing module is used for storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency and calculating the available time length of the magnetic disk according to the sampling data.
According to yet another aspect of the present application, there is also provided a computer readable medium having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the method of any one of the preceding claims.
According to yet another aspect of the present application, there is also provided a computer apparatus for monitoring disk capacity, wherein the apparatus includes:
one or more processors; and
a memory having computer readable instructions stored thereon that, when executed, cause the processor to perform the operations of any of the preceding methods.
Compared with the prior art, the method and the device have the advantages that the incremental data of the disk are detected according to the preset monitoring frequency; screening the disk incremental data according to a specified time period to obtain data to be sampled, and determining an incremental average value according to the data to be sampled; setting a valley-peak increment value weighting parameter and a valley-peak frequency, and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value; and storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency, and calculating the available time of the magnetic disk according to the sampling data. Therefore, the remaining use time of the disk is evaluated by combining the factors of the emergency and the special time period, and the accuracy of the remaining use time of the disk is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method for monitoring disk capacity according to an aspect of the present application;
FIG. 2 is a flow chart illustrating a method for monitoring disk capacity in a preferred embodiment of the present application;
FIG. 3 illustrates a block diagram of an apparatus frame for monitoring disk capacity according to another aspect of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
Fig. 1 is a schematic flow chart illustrating a method for monitoring disk capacity according to an aspect of the present application, where the method includes: S11-S14, wherein in the step S11, disk incremental data are detected according to a preset monitoring frequency; s12, screening the incremental data of the disk according to a specified time period to obtain data to be sampled, and determining an incremental average value according to the data to be sampled; s13, setting a valley-peak incremental value weighting parameter and a valley-peak frequency, and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak incremental value weighting parameter and the increment average value; and S14, storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency, and calculating the available time length of the magnetic disk according to the sampling data. Therefore, the remaining use time of the disk is evaluated by combining the factors of the emergency and the special time period, and the accuracy of the remaining use time of the disk is improved.
Specifically, in step S11, disk incremental data is detected according to a preset monitoring frequency. Here, the preset monitoring frequency is how often a disk increment detection is performed to obtain disk increment data, for example, the disk capacity is detected every 1 hour or 10 minutes, the higher the monitoring frequency is, the more accurate the evaluation value is, the more timely the warning is, but more system resources are consumed, and the monitoring frequency is set according to the actual application scenario and the service requirement.
And S12, screening the disk incremental data according to a specified time period to obtain data to be sampled, and determining an incremental average value according to the data to be sampled. Here, the specified time period may be a periodic time period or a specific time period, and the disk increment in the specified time period is identified as not being used as the sample data. Such as: the method includes the steps that data migration needs to be carried out at a certain time, the migration time lasts for 2 hours, a large amount of data can be written into a magnetic disk, redundant data needs to be cleared at the end of each month, data can be reduced, data cannot be generated from 20 points per day to 6 points in the next morning, and the like, incremental data or reduced data cannot be used as sampling data, screening is carried out according to a specific time period, data which are not in the specified specific time period and can be used for sampling data serve as data to be sampled, and then an incremental average value is calculated according to the data to be sampled.
And S13, setting a valley-peak increment value weighting parameter and a valley-peak frequency, and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value. Here, the valley-peak frequency is a proportional value, which is the number of times that a valley and a peak occur in a detection period of a preset number of cycles. The valley-peak increment value weighting parameters are paired and include a valley increment value weighting parameter and a peak increment value weighting parameter, which are used for weighting calculation to obtain a valley value and a peak value, so as to find out the disk growth under abnormal conditions, for example, the valley increment value weighting parameter is 0.4, the peak increment value weighting parameter is 1.2, or the valley increment value weighting parameter is 0.5, the peak increment value weighting parameter is 1.4, etc.
And S14, storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency, and calculating the available time length of the magnetic disk according to the sampling data. And if the judgment result is that the increment of the data to be sampled is abnormal or normal, further screening the data to be sampled according to the judgment result and the valley-peak frequency, determining the sampled data, calculating the average increment of the disk according to the sampled data, and calculating the available time of the disk according to the average increment of the disk. The available time of the disk is the ratio of the remaining space of the disk to the average increment of the disk.
In a preferred embodiment of the present application, in step S14, if the determination result is that the increment of the data to be sampled is abnormal, it is determined whether the data to be sampled reaches the valley-peak frequency, and if so, the data to be sampled is saved as the sampling data. Here, the bottom-to-top frequency is used to determine whether the bottom-to-top incremental value weighting is valid in a certain period, that is, the number of times of the disk increment skipping is large in a certain period, and reaches a preset ratio, which is considered as normal data writing. Therefore, when the increment of the data to be sampled is abnormal, whether the number of the valley values or the peak values of the data to be sampled reaches the valley-peak frequency or not is judged, and if the number of the valley values or the peak values of the data to be sampled reaches the valley-peak frequency, the data to be sampled is stored as normal data and is stored as sampling data.
In a preferred embodiment of the present application, if the determination result is that the increment of the data to be sampled is normal, the data to be sampled is saved as sampled data. And if the judgment result is that the increment of the data to be sampled is normal, saving the data to be sampled as the sampled data so as to facilitate the average increment of the subsequent disks.
In a preferred embodiment of the present application, after determining whether the data to be sampled reaches the valley-peak frequency, if the data to be sampled does not reach the valley-peak frequency, an increment abnormal alarm is issued. Here, when the number of the valley value and the peak value in the data to be sampled does not reach the valley-peak frequency, the abnormal data is written, and a real-time alarm is given for the abnormal data.
In a preferred embodiment of the present application, in step S14, it is determined whether the number of the valleys or the peaks in the data to be sampled reaches the valley-peak frequency, if yes, all the valleys and the peaks included in the preset monitoring period are classified as normal recorded values, and the incremental average value is recalculated. And if so, judging whether the number of the valley values or the peak values in the data to be sampled reaches the valley-peak frequency, if so, judging that the data to be sampled is normal data, returning all the valley values and the peak values contained in the preset monitoring period to normal recorded values, and recalculating the increment average value.
In a preferred embodiment of the present application, the valley-to-peak frequency value is the number of valleys and peaks occurring in 20 detection cycles. If the valley value or the peak value frequently appears in the disk increment detection process, after the valley value or the peak value reaches or exceeds the valley frequency value, all the valley values contained in the previous 20 detection values are classified as normal recorded values, and the increment average value is recalculated. The valley-peak frequency parameter is used to determine whether the weighting of the valley-peak increment value is valid in a certain period, and the number of times of the disk increment is increased or decreased in a certain period to reach a set ratio, which is considered as normal data writing.
In a preferred embodiment of the present application, in step S13, a valley value and a peak value in a preset monitoring period are determined according to the valley-peak increment weighting parameter and the increment average value; and respectively comparing the valley value and the peak value with the current data to be sampled, and judging whether the increment of the current data to be sampled is abnormal according to the comparison result. Here, the valley-peak increment weighting parameters are present in pairs and include a valley increment value weighting parameter and a peak increment value weighting parameter, a product of the valley increment value weighting parameter and the increment average value is a valley value, and a product of the peak increment value weighting parameter and the increment average value is a peak value. Respectively comparing the valley value and the peak value with the current data to be sampled, judging whether the increment of the current data to be sampled is abnormal or not according to the comparison result, and comparing the valley value and the peak value with the current data to be sampled to determine the data to be sampled which is lower than the valley value and the data to be sampled which is higher than the peak value, namely determining abnormal increment data.
In a preferred embodiment of the present application, the valley increment value weighting parameter is set to 0.5, the peak increment value weighting parameter is set to 1.8, the average value of the obtained disk increments in the first 5 detection periods is 10 GB/hour, and if the currently detected increment value is 4 GB/hour, the average value is lower than the valley value (10 GB × 0.5); if the current detection increment value is 20 GB/hour, it is higher than the peak value (10 GB × 1.8).
In a preferred embodiment of the present application, after determining whether the current data to be sampled is abnormal in increment according to the comparison result, if the current data to be sampled is abnormal in increment, an increment abnormal alarm is issued, and the abnormal increment data of the disk is recorded and stored, wherein the abnormal increment data of the disk is not used for calculating an increment average value. In this case, the disk delta data with delta anomaly is not used to calculate a delta average to accurately reflect the current data characteristics.
Fig. 2 is a schematic flow chart of a method for monitoring the capacity of a disk in a preferred embodiment of the present application, where a specific time period may be periodic or a specific time period, and disk increments within the specific time period are identified as not being used as sampling data. And performing weighted calculation on the valley and peak increment value of the average value of the increment values detected in the first 5 detection periods to determine the valley and peak values. And only recording and storing the increment value which is lower than or higher than the set weighted increment value, and triggering an abnormal alarm at the same time, wherein the increment value is not used as sampling data for calculating the average value of the increment in the future. The valley-peak frequency is used to determine whether the weighting of the valley-peak increment value is valid in a certain period, and the number of times of the disk increment is increased or decreased in a certain period to reach a set ratio, which is considered as normal data writing. The valley-peak frequency value is a proportional value, which is the number of valleys and peaks that occur in 20 detection cycles. If the valley value or the peak value frequently appears in the disk increment detection process, after the valley value or the peak value reaches or exceeds the valley frequency value, all the valley values contained in the previous 20 detection values are classified as normal recording values, and the increment average value is recalculated to accurately reflect the current data characteristics in real time. According to the factors, the disk data acquisition tool judges and samples data, calculates the average increment of the disk, and further calculates the available time length of the disk: disk available duration = disk remaining space ÷ disk average delta. Therefore, the remaining use time of the disk is evaluated by combining the factors of the emergency and the special time period, and the accuracy of the remaining use time of the disk is improved.
Embodiments of the present application further provide a computer-readable medium, on which computer-readable instructions are stored, where the computer-readable instructions are executable by a processor to implement the foregoing method for monitoring the capacity of a magnetic disk.
In correspondence with the method described above, the present application also provides a terminal, which includes modules or units capable of executing the method steps described in fig. 1 or fig. 2 or various embodiments, and these modules or units can be implemented by hardware, software or a combination of hardware and software, and the present application is not limited thereto. For example, in an embodiment of the present application, there is also provided a computer device for monitoring disk capacity, where the device includes:
one or more processors; and
a memory having computer readable instructions stored thereon that, when executed, cause the processor to perform the operations of the foregoing described method.
For example, the computer readable instructions, when executed, cause the one or more processors to: detecting incremental data of the disk according to a preset monitoring frequency; screening the disk incremental data according to a specified time period to obtain data to be sampled, and determining an incremental average value according to the data to be sampled; setting a valley-peak increment value weighting parameter and a valley-peak frequency, and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value; and storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency, and calculating the available time of the magnetic disk according to the sampling data.
Fig. 3 is a schematic diagram illustrating a frame structure of an apparatus for monitoring disk capacity according to another aspect of the present application, where the apparatus includes: the detection module 100 is configured to detect incremental data of a disk according to a preset monitoring frequency; the sampling module 200 is configured to screen the disk incremental data according to a specified time period to obtain data to be sampled, and determine an incremental average value according to the data to be sampled; the judging module 300 is configured to set a valley-peak increment value weighting parameter and a valley-peak frequency, and judge whether the increment of the data to be sampled is abnormal according to the valley-peak increment value weighting parameter and the increment average value; and the data processing module 400 is configured to store the data to be sampled as sampling data according to the determination result and the valley-peak frequency, and calculate a usable disk duration according to the sampling data. Therefore, the remaining use time of the disk is evaluated by combining the factors of the emergency and the special time period, and the accuracy of the remaining use time of the disk is improved.
It should be noted that the content executed by the detecting module 100, the sampling module 200, the judging module 300, and the data processing module 400 is respectively the same as or corresponding to the content executed in the above steps S11, S12, S13, and S14, and for the sake of brevity, no further description is repeated here.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal bearing medium and/or stored in a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (9)

1. A method of monitoring the capacity of a disk, wherein,
the method comprises the following steps:
detecting incremental data of the disk according to a preset monitoring frequency;
screening the disk incremental data according to a specified time period to obtain data to be sampled, and determining an incremental average value according to the data to be sampled;
setting a valley-peak increment value weighting parameter and a valley-peak frequency, and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value, wherein the valley-peak increment value weighting parameter is used for representing a valley increment weighting parameter and a peak increment weighting parameter which are generated in pairs; wherein, the determining whether the increment of the data to be sampled is abnormal according to the valley-peak increment value weighting parameter and the increment average value comprises: determining a valley value and a peak value in a preset monitoring period according to the valley-peak increment weighting parameter and the increment average value; respectively comparing the valley value and the peak value with the current data to be sampled, and judging whether the increment of the current data to be sampled is abnormal or not according to the comparison result;
and storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency, and calculating the available time of the magnetic disk according to the sampling data.
2. The method of claim 1, wherein,
the storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency comprises:
and if the judgment result is that the increment of the data to be sampled is abnormal, judging whether the data to be sampled reaches the valley-peak frequency, and if so, saving the data to be sampled as sampled data.
3. The method of claim 1, wherein,
the method further comprises the following steps:
and if the judgment result is that the increment of the data to be sampled is normal, saving the data to be sampled as sampled data.
4. The method of claim 2, wherein,
after judging whether the data to be sampled reaches the valley-peak frequency, the method includes:
if the frequency of the valley peak is not reached, an increment abnormity alarm is sent out.
5. The method of claim 2, wherein,
the judging whether the data to be sampled reaches the valley-peak frequency comprises:
and judging whether the number of the valley values or the peak values in the data to be sampled reaches the valley-peak frequency, if so, classifying all the valley values and the peak values contained in the preset monitoring period as normal recorded values, and recalculating the increment average value.
6. The method of claim 1, wherein,
after judging whether the increment of the current data to be sampled is abnormal according to the comparison result, the method comprises the following steps:
and if the increment is abnormal, sending an increment abnormal alarm, and recording and storing the disk increment data with the increment abnormal, wherein the disk increment data with the increment abnormal are not used for calculating the increment average value.
7. An apparatus for monitoring the capacity of a magnetic disk, wherein,
the apparatus comprises:
the detection module is used for detecting the incremental data of the disk according to the preset monitoring frequency;
the sampling module is used for screening the disk incremental data according to a specified time period to obtain data to be sampled and determining an incremental average value according to the data to be sampled;
the judging module is used for setting a valley-peak increment value weighting parameter and a valley-peak frequency and judging whether the increment of the data to be sampled is abnormal or not according to the valley-peak increment value weighting parameter and the increment average value;
and the data processing module is used for storing the data to be sampled as sampling data according to the judgment result and the valley-peak frequency and calculating the available time length of the magnetic disk according to the sampling data.
8. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 1 to 6.
9. A computer apparatus for monitoring the capacity of a magnetic disk, wherein,
the apparatus comprises:
one or more processors; and
a memory having computer-readable instructions stored thereon that, when executed, cause the processor to perform the operations of the method of any of claims 1 to 6.
CN202010997939.5A 2020-09-21 2020-09-21 Method and equipment for monitoring disk capacity Active CN112131078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010997939.5A CN112131078B (en) 2020-09-21 2020-09-21 Method and equipment for monitoring disk capacity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010997939.5A CN112131078B (en) 2020-09-21 2020-09-21 Method and equipment for monitoring disk capacity

Publications (2)

Publication Number Publication Date
CN112131078A CN112131078A (en) 2020-12-25
CN112131078B true CN112131078B (en) 2023-03-31

Family

ID=73842101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010997939.5A Active CN112131078B (en) 2020-09-21 2020-09-21 Method and equipment for monitoring disk capacity

Country Status (1)

Country Link
CN (1) CN112131078B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468234B (en) * 2021-05-31 2023-12-22 济南浪潮数据技术有限公司 Monitoring data processing method, device, system and storage medium
CN115145494B (en) * 2022-08-11 2023-09-15 江苏臻云技术有限公司 Disk capacity prediction system and method based on big data time sequence analysis

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826755A (en) * 2010-05-11 2010-09-08 羿宝存 Intelligent power distribution network and power-consumption real-time monitoring and managing system
CN110134723A (en) * 2019-05-22 2019-08-16 网易(杭州)网络有限公司 A kind of method and database of storing data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8208395B2 (en) * 2008-10-31 2012-06-26 Verizon Patent And Licensing Inc. System and method for measuring interface utilization using policers
US8855101B2 (en) * 2010-03-09 2014-10-07 The Nielsen Company (Us), Llc Methods, systems, and apparatus to synchronize actions of audio source monitors

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826755A (en) * 2010-05-11 2010-09-08 羿宝存 Intelligent power distribution network and power-consumption real-time monitoring and managing system
CN110134723A (en) * 2019-05-22 2019-08-16 网易(杭州)网络有限公司 A kind of method and database of storing data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An O-O logical machine monitor supporting disk block migration;Lian-JouTsai et al;《Journal of Systems Architecture》;19980513;第43卷(第9期);第639-642页 *
磁盘容量远程监控程序的设计与实现;张乐君;《铁路计算机应用》;20150331;第24卷(第3期);第36-38页 *

Also Published As

Publication number Publication date
CN112131078A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN112131078B (en) Method and equipment for monitoring disk capacity
US8185348B2 (en) Techniques for monitoring a data stream
US20080167837A1 (en) Determining a window size for outlier detection
CN112131075B (en) Method and equipment for detecting abnormality of storage monitoring data
CN111767957A (en) Method and device for detecting log abnormity, storage medium and electronic equipment
CN113535454B (en) Log data anomaly detection method and device
CN111045881A (en) Slow disk detection method and system
CN110909306B (en) Business abnormality detection method and device, electronic equipment and storage equipment
CN110827245A (en) Method and equipment for detecting screen display disconnection
CN110688063A (en) Method, device, equipment and medium for screening Raid slow disc
CN114356577A (en) System capacity estimation method and device
CN114726581B (en) Abnormality detection method and device, electronic equipment and storage medium
CN113903389A (en) Slow disk detection method and device and computer readable and writable storage medium
CN112926636A (en) Method and device for detecting abnormal temperature of traction converter cabinet body
CN113210824B (en) Servo welding gun driving abnormity detection method and equipment
CN113112646A (en) Method and equipment for automatically opening and closing lock of vehicle
CN116682479A (en) Method and system for testing enterprise-level solid state disk time delay index
CN115757073A (en) System risk identification method and device, electronic equipment and storage medium
CN113625957B (en) Method, device and equipment for detecting hard disk faults
CN112819788B (en) Image stability detection method and device
CN114327266B (en) Method, device and medium for slowly identifying card of storage device
CN110852443B (en) Feature stability detection method, device and computer readable medium
CN113539352A (en) Solid state disk hidden fault detection method and related equipment
CN115981911A (en) Memory failure prediction method, electronic device and computer-readable storage medium
CN111737158A (en) Abnormal assertion processing method and device, electronic equipment and storage medium

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