CN112199262A - Storage space use condition calculation method and device, storage medium and electronic equipment - Google Patents

Storage space use condition calculation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112199262A
CN112199262A CN202011036107.3A CN202011036107A CN112199262A CN 112199262 A CN112199262 A CN 112199262A CN 202011036107 A CN202011036107 A CN 202011036107A CN 112199262 A CN112199262 A CN 112199262A
Authority
CN
China
Prior art keywords
storage space
score
current equipment
usage
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.)
Granted
Application number
CN202011036107.3A
Other languages
Chinese (zh)
Other versions
CN112199262B (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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202011036107.3A priority Critical patent/CN112199262B/en
Publication of CN112199262A publication Critical patent/CN112199262A/en
Application granted granted Critical
Publication of CN112199262B publication Critical patent/CN112199262B/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/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/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a method and a device for calculating the use condition of a storage space, a storage medium and electronic equipment. The method comprises the following steps: detecting the use conditions of at least two storage space types in the storage space of the current equipment; respectively scoring the use conditions of the at least two storage space types to obtain the use score of the storage space of the current equipment; and determining the utilization rate of the storage space of the current equipment according to the utilization score of the storage space of the current equipment. According to the technical scheme, the use condition of the storage space type can be scored from each dimension, the storage space use rate is determined according to the scoring result, and the accuracy of storage space use rate calculation is improved.

Description

Storage space use condition calculation method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of data storage, in particular to a method and a device for calculating the use condition of a storage space, a storage medium and electronic equipment.
Background
With the development of the intelligent terminal, more and more users communicate and work on the intelligent terminal. Because each file occupies a certain storage space of the system, the files accumulate day by day, and limited resources of the terminal are gradually exhausted, so that the storage resources of the terminal are insufficient.
The traditional method for early warning the intelligent storage space is to calculate the utilization rate of the storage space and set fixed early warning for graded warning.
The traditional calculation of the utilization rate of the storage space is directly obtained by calculating the surplus according to the utilization rate of the storage space, the utilization rate of the storage space is not accurately calculated, early warning of the utilization rate of the storage space does not occur frequently, and the early warning of the utilization rate of the storage space does not occur.
Disclosure of Invention
The embodiment of the application provides a storage space use condition calculation method and device, a storage medium and electronic equipment, the use conditions of storage space types are scored from different dimensions, the storage space use rate is determined according to scoring results, and the accuracy of storage space use rate calculation is improved.
In a first aspect, an embodiment of the present application provides a storage space usage calculation method, where the method includes:
detecting the use conditions of at least two storage space types in the storage space of the current equipment;
respectively scoring the use conditions of the at least two storage space types to obtain the use score of the storage space of the current equipment;
and determining the utilization rate of the storage space of the current equipment according to the utilization score of the storage space of the current equipment.
In a second aspect, an embodiment of the present application provides a storage space usage calculation apparatus, including:
the storage space type use condition detection module is used for detecting the use conditions of at least two storage space types in the storage space of the current equipment;
the storage space use score obtaining module is used for respectively grading the use conditions of the at least two storage space types to obtain the use score of the storage space of the current equipment;
and the storage space utilization rate determining module is used for determining the storage space utilization rate of the current equipment according to the storage space utilization score of the current equipment.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a storage space usage calculation method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program to implement the storage space usage calculation method according to the embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, the using conditions of at least two storage space types in the storage space of the current equipment are detected, then the using conditions of the at least two storage space types are respectively graded, the using score of the storage space of the current equipment is obtained, and the using rate of the storage space of the current equipment is determined according to the using score of the storage space of the current equipment. By executing the technical scheme, the use condition of the storage space type can be scored from different dimensions, the storage space use rate is determined according to the scoring result, and the accuracy of storage space use rate calculation is improved.
Drawings
Fig. 1 is a flowchart of a method for calculating usage of a storage space according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a storage space usage calculation process provided in the second embodiment of the present application;
FIG. 3 is a schematic structural diagram of a storage space usage computing device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. 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.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for calculating usage of a storage space according to an embodiment of the present application, where the present embodiment is applicable to a case of calculating usage of a storage space, and the method may be executed by a device for calculating usage of a storage space, where the device may be implemented by software and/or hardware, and may be integrated in a device such as an intelligent terminal for calculating usage of a storage space.
As shown in fig. 1, the method for calculating the usage of the storage space includes:
s110, detecting the use conditions of at least two storage space types in the storage space of the current equipment.
Wherein, the storage space may refer to a medium required for data storage. The set of physical addresses is called physical space, also called storage space, i.e. the total capacity of a certain storage device. For example, 256MB of memory, 128MB of U-disk, and 80GB of hard disk.
Wherein the storage space type may be a storage space having different performance. For example, some storage spaces can hold data and have good compatibility, while some storage spaces are more stable and reliable during high-speed downloading.
In this embodiment, the current device may be an intelligent terminal having a network connection function. For example, the electronic device may be a computer, a mobile phone, or a tablet.
In this embodiment, various applications may be installed on the current device, and various files such as audio files, video files, and download files may also be stored. The installation and the operation of each application occupy the system memory of the current equipment; each audio, image, video and download file also occupies the current device storage resources. The current device can detect and record the use information of each file in real time. The usage information of each file includes the size of the occupied storage space, the file type, and the like. The current device may detect the usage of the type of storage space in the storage space when an application is started or a file is used.
And S120, respectively grading the use conditions of the at least two storage space types to obtain the use score of the storage space of the current device.
In the embodiment, the use condition of the storage space type is scored according to the used storage space of the storage space. For example, the a memory type setting is 100 points in total, and detecting that the used memory is half of the total memory size, the a memory usage score is 50 points.
In this embodiment, the usage of the storage space type is scored according to the size of the used storage space of the storage space type, and the usage score of the storage space of the current device is obtained. Wherein, the scoring system can set a total score according to the requirements of the user. For example, the total score of the storage space may be set to 100 points, or the total score of the storage space may be set to 300 points.
In this technical solution, optionally, before scoring the usage of the at least two storage space types, the method further includes:
dividing the type of a storage space of the current equipment; wherein the storage space types are at least two.
In this embodiment, the storage space may be divided according to the usage performance of the storage space of the current device, and the storage space may be divided into different storage space types. Wherein at least two memory space types are divided.
By dividing the storage space of the current equipment, the storage space is divided into different storage space types, so that the use condition of the storage space types can be conveniently scored according to different performances in the follow-up process.
In this technical solution, optionally, the storage space types include: file storage, block storage, and object storage.
The file storage is a standard file-level storage mode, and a storage private network is established by connecting a storage system and a server host through a network switch by adopting a network technology. The main characteristic is that the storage device, the network interface and the Ethernet technology are integrated together, and the data is accessed directly through the Ethernet. The requirement of department gate level storage capacity and the requirement of file transmission can be quickly realized.
The block storage is the most common storage mode, and mainly depends on an operating system of a host to realize the work of IO reading and writing of data, data management, data backup and the like. For example, a hard disk on a personal PC, a hard disk on a server, and an external device are directly connected to a computer through a SCSI or FC interface, and the like are stored in a block storage mode. Among them, SCSI (Small Computer System Interface) is an independent processor standard used for System-level interfaces between computers and intelligent devices, i.e., hard disks, floppy drives, optical drives, printers, scanners, and the like. The FC (Fibre Channel, mesh Channel technology) interface is an interface standard form of optical fiber butt joint, and focuses on fast, efficient and reliable transmission of data.
The object storage is a storage mode which has the characteristics of high-speed direct access to a disk of file storage and distributed sharing of block storage. The core is to separate data paths, namely data reading or writing, and control paths, namely metadata, and construct a Storage system based on Object-based Storage devices (OSD), wherein each Object-based Storage Device has certain intelligence and can automatically manage data distribution thereon.
By dividing the storage space types into file storage, block storage and object storage, the service conditions of the storage space types can be scored according to different storage space types, so that the scoring of the service conditions of the storage space types is more accurate.
In this technical solution, optionally, the scoring the usage of the at least two storage space types respectively includes:
if the storage space type is file storage, grading by adopting a first grading standard;
if the storage space type is block storage, grading by adopting a second grading standard;
and if the storage space type is object storage, grading by adopting a third grading standard.
In this embodiment, the scoring is performed by using corresponding scoring criteria according to different storage space types. The first scoring criterion, the second scoring criterion and the third scoring criterion may be set according to the type of the storage space. For example, when the storage space type is file storage, a first scoring criterion score total score of 100 points may be set; when the storage space type is a block storage, the second scoring criterion score total may be set to 50 points.
By adopting different scoring standards, the service conditions of the storage space types can be scored according to the performances of the different storage space types, so that the scoring of the service conditions of the storage space types is more accurate.
And S130, determining the storage space utilization rate of the current equipment according to the storage space utilization score of the current equipment.
In this embodiment, the current device storage space usage rate is a ratio of the used storage space of the current device storage space to the total storage space.
In this embodiment, after obtaining the current device storage space usage score, the current device storage space usage rate may be determined according to the current device storage space usage score. For example, the total preset score of the current device storage space is 100 points, and the current device storage space usage score is 80 points, the current device storage space usage rate is 80 percent.
In this technical solution, optionally, determining the usage rate of the storage space of the current device according to the usage score of the storage space of the current device includes:
and determining the utilization rate of the storage space of the current equipment according to the use score of the storage space of the current equipment and the preset total score of the storage space of the current equipment.
The preset total score of the storage space of the current device can be set according to the requirements of users. For example, the total score of the storage space may be set to 100 points, or the total score of the storage space may be set to 300 points.
In this embodiment, the current device storage space usage score and the preset total score of the current device storage space are obtained, and the current device storage space usage rate may be determined by calculating a ratio of the current device storage space usage score to the preset total score of the current device storage space. For example, if the current device storage space usage score is 50 points and the preset total score of the current device storage space is 100 points, the current device storage space usage rate is 50 percent.
The calculation accuracy of the storage space utilization rate is higher by obtaining the current equipment storage space utilization score and the preset total score of the current equipment storage space and determining the storage space utilization rate according to the scoring result.
In this technical solution, optionally, after determining the current device storage space usage rate according to the current device storage space usage score, the method further includes:
and sending storage space usage alarm information according to the current equipment storage space usage rate.
The warning information may be a window prompt message sent to the current device, or a warning sound sent to the current device.
According to the current equipment storage space utilization rate, sending storage space utilization warning information, prompting a user to reasonably arrange tasks according to the current equipment storage space utilization rate, avoiding unnecessary influence caused by insufficient storage space, and improving user experience.
In this technical solution, the selectable alarm information includes: first level alarm information, second level alarm information and third level alarm information.
In this embodiment, the levels of the first-level warning information, the second-level warning information and the third-level warning information are sequentially increased, which indicates that the larger the usage rate of the storage space is. For example, when the storage space usage rate is 40 percent, a primary alarm message may be sent; when the storage space utilization rate is 60 percent, secondary alarm information can be sent; when the storage space usage rate is 80 percent, three levels of alert information may be sent.
By setting different alarm information to prompt the utilization rate of the storage space of the current equipment, the user can experience more intuitively, and the user experience is improved.
In this technical solution, optionally, sending the storage space usage alarm information according to the current device storage space usage rate includes:
and sending storage space use alarm information of corresponding levels according to the current equipment storage space use rate.
In this embodiment, the user may set the storage space usage alarm information of a level matching the current device storage space usage rate according to the requirement. For example, when the storage space usage rate is set to be 50 percent, primary alarm information is sent; the primary alarm information can also be sent when the storage space utilization rate is set to be 60 percent.
The user storage space using condition is prompted according to the different levels of warning information, so that the user can experience more visually, and the user experience is improved.
According to the technical scheme provided by the embodiment of the application, the using conditions of at least two storage space types in the storage space of the current equipment are detected, then the using conditions of the at least two storage space types are respectively graded, the using score of the storage space of the current equipment is obtained, and the using rate of the storage space of the current equipment is determined according to the using score of the storage space of the current equipment. By executing the technical scheme, the use condition of the storage space type can be scored, the storage space use rate is determined according to the scoring result, and the accuracy of storage space use rate calculation is improved.
Example two
Fig. 2 is a schematic diagram of a storage space usage calculation process provided in the second embodiment of the present invention, and the second embodiment is further optimized based on the first embodiment. The concrete optimization is as follows: respectively scoring the use conditions of the at least two storage space types to obtain the use score of the current equipment storage space, and the method comprises the following steps: and for each storage space type, adopting at least two dimensions to grade the use condition of the current equipment storage space type to obtain the use score of the current equipment storage space. The details which are not described in detail in this embodiment are shown in the first embodiment. As shown in fig. 2, the method comprises the steps of:
s210, detecting the use conditions of at least two storage space types in the current equipment storage space.
S220, for each storage space type, adopting at least two dimensions to grade the use condition of the current equipment storage space type to obtain the use score of the current equipment storage space.
In this embodiment, the dimension may be the performance of each storage space type. For example, stability, sensitivity, etc. may be used. The service conditions of the current equipment storage space types are scored from different dimensions, and the service conditions of the storage space types can be scored according to the characteristics of the storage space types.
In this technical solution, optionally, the at least two dimensions include: degree of stability, degree of sensitivity, and degree of correlation;
correspondingly, for each storage space type, adopting at least two dimensions to grade the use condition of the current equipment storage space type to obtain the use score of the current equipment storage space, and the method comprises the following steps:
and for each storage space type, scoring the use condition of the current equipment storage space type from the stability degree, the sensitivity degree and the correlation degree to obtain the use score of the current equipment storage space.
In this embodiment, the stable state generally means that the current device does not crash or slow down when running for a long time and executing software occupying a large amount of memory instantly. The three storage modes are different in stability, the file storage characteristic is a tree structure, a group of files are in the same subdirectory, the upper level of the directory is also provided with a father directory, and a path represents a unique identifier to access a specific file; the block storage is partitioned according to a fixed size, and an addressing code is given for access; the object store is between the block store and the file store. Thus, the degree of stability is highest with the files stored the next, the objects stored the lowest, and the blocks stored the lowest.
In this embodiment, the sensitivity level refers to the physical dependence of the storage space type. Among them, the file storage is highest, the object storage is next and the block storage is lowest for the physical degree of dependence.
In the present embodiment, the degree of correlation refers to the correlation between the storage space types. The object store is between the file store and the block store, so some files are related to each other. For example, if q-piece indexes are stored in blocks and a particular file is stored in a file, then for q-files, the stored block area and file area are related.
And the service condition of the current equipment storage space type is scored according to the stability degree, the sensitivity degree and the correlation degree, so that the accuracy of the storage space utilization rate calculation is improved.
In this technical solution, optionally, for each storage space type, scoring the usage of the current device storage space type from the stability degree, the sensitivity degree, and the correlation degree to obtain a usage score of the current device storage space, includes:
for each storage space type, scoring the service condition of the current equipment storage space type from the stability degree, the sensitivity degree and the correlation degree to obtain a stability degree score, a sensitivity degree score and a correlation degree score of the service condition of the current equipment storage space type;
and obtaining the use score of the storage space of the current equipment according to the stability degree score, the sensitivity degree score and the correlation degree score.
In this embodiment, the service conditions of the current device storage space type are scored from the stability degree, the sensitivity degree and the correlation degree respectively, so as to obtain a stability degree score, a sensitivity degree score and a correlation degree score of the service conditions of the current device storage space type, and the stability degree score, the sensitivity degree score and the correlation degree score may be added to obtain a service condition score of the current device storage space type; and the stability degree score, the sensitivity degree score and the correlation degree score can be weighted and summed to obtain the service condition score of the current equipment storage space type.
And the service condition of the current equipment storage space type is scored according to the stability degree, the sensitivity degree and the correlation degree, so that the accuracy of the storage space utilization rate calculation is improved.
In this technical solution, optionally, obtaining a current device storage space usage score according to the stability degree score, the sensitivity degree score, and the relevance degree score includes:
and adding the stability degree score, the sensitivity degree score and the correlation degree score to obtain the use score of the storage space of the current equipment.
The stability degree score, the sensitivity degree score and the correlation degree score are added, so that the use score of the storage space of the current equipment can be obtained, the use rate of the storage space is determined according to the score result, and the calculation accuracy of the use rate of the storage space is higher.
And S230, determining the storage space utilization rate of the current equipment according to the storage space utilization score of the current equipment.
According to the technical scheme provided by the embodiment of the application, the using conditions of at least two storage space types in the current equipment storage space are detected, then, for each storage space type, the using conditions of the current equipment storage space type are graded by adopting at least two dimensions, and the using score of the current equipment storage space is obtained. And determining the storage space utilization rate of the current equipment according to the storage space utilization score of the current equipment. By executing the technical scheme, the use condition of the storage space type can be scored from different dimensions, the storage space use rate is determined according to the scoring result, and the accuracy of storage space use rate calculation is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a storage space usage computing device according to a third embodiment of the present application, and as shown in fig. 3, the storage space usage computing device includes:
a storage space type usage detecting module 310, configured to detect usage of at least two storage space types in a current device storage space;
a storage space usage score obtaining module 320, configured to respectively score usage situations of the at least two storage space types, and obtain a current device storage space usage score;
the storage space usage determining module 330 is configured to determine a current device storage space usage according to the current device storage space usage score.
In this technical solution, optionally, the apparatus further includes:
the storage space type division module is used for carrying out storage space type division on the storage space of the current equipment; wherein the storage space types are at least two.
In this technical solution, optionally, the storage space types include: file storage, block storage, and object storage.
In this embodiment, optionally, the storage space usage score obtaining module 320 includes:
the first scoring standard submodule is used for scoring by adopting a first scoring standard if the storage space type is file storage;
the second scoring standard submodule is used for scoring by adopting a second scoring standard if the storage space type is block storage;
and the third scoring standard submodule is used for scoring by adopting a third scoring standard if the storage space type is object storage.
In this technical solution, optionally, the storage space usage score obtaining module 320 further includes:
and the storage space use score obtaining submodule is used for adopting at least two dimensions to grade the use condition of the current equipment storage space type according to each storage space type so as to obtain the use score of the current equipment storage space.
In this technical solution, optionally, the at least two dimensions include: degree of stability, degree of sensitivity, and degree of correlation;
correspondingly, the storage space usage score obtaining submodule includes:
and the storage space use score obtaining unit is used for grading the use condition of the current equipment storage space type from the stability degree, the sensitivity degree and the correlation degree aiming at each storage space type to obtain the use score of the current equipment storage space.
In this technical solution, optionally, the storage space usage score obtaining unit includes:
the score obtaining subunit is configured to, for each storage space type, score the use condition of the current device storage space type from the stability degree, the sensitivity degree, and the correlation degree, and obtain a stability degree score, a sensitivity degree score, and a correlation degree score of the use condition of the current device storage space type;
and the storage space use score obtaining subunit is used for obtaining the current equipment storage space use score according to the stability degree score, the sensitivity degree score and the correlation degree score.
In this technical solution, optionally, the storage space uses a score obtaining subunit, which is specifically configured to:
and adding the stability degree score, the sensitivity degree score and the correlation degree score to obtain the use score of the storage space of the current equipment.
In this technical solution, optionally, the storage space usage determining module 330 is specifically configured to:
and determining the utilization rate of the storage space of the current equipment according to the use score of the storage space of the current equipment and the preset total score of the storage space of the current equipment.
In this technical solution, optionally, the apparatus further includes:
and the warning information sending module is used for sending the storage space usage warning information according to the current equipment storage space usage rate.
In this technical solution, optionally, the alarm information includes: first level alarm information, second level alarm information and third level alarm information.
In this technical solution, optionally, the warning information sending module is specifically configured to:
and sending storage space use alarm information of corresponding levels according to the current equipment storage space use rate.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a storage space usage calculation method, including:
detecting the use conditions of at least two storage space types in the storage space of the current equipment;
respectively scoring the use conditions of the at least two storage space types to obtain the use score of the storage space of the current equipment;
and determining the utilization rate of the storage space of the current equipment according to the utilization score of the storage space of the current equipment.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the storage space usage calculation operation described above, and may also perform related operations in the storage space usage calculation method provided in any embodiment of the present application.
EXAMPLE five
The embodiment of the application provides electronic equipment, and the storage space use condition calculation device provided by the embodiment of the application can be integrated in the electronic equipment. Fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application. As shown in fig. 4, the present embodiment provides an electronic device 400, which includes: one or more processors 420; the storage device 410 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 420, the one or more processors 420 implement the storage space usage calculation method provided in the embodiment of the present application, the method includes:
detecting the use conditions of at least two storage space types in the storage space of the current equipment;
respectively scoring the use conditions of the at least two storage space types to obtain the use score of the storage space of the current equipment;
and determining the utilization rate of the storage space of the current equipment according to the utilization score of the storage space of the current equipment.
Of course, those skilled in the art can understand that the processor 420 also implements the technical solution of the storage space usage calculation method provided in any embodiment of the present application.
The electronic device 400 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 4, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of the processors 420 in the electronic device may be one or more, and one processor 420 is taken as an example in fig. 4; the processor 420, the storage device 410, the input device 430, and the output device 440 in the electronic apparatus may be connected by a bus or other means, and are exemplified by a bus 450 in fig. 4.
The storage device 410 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and module units, such as program instructions corresponding to the storage space usage calculation method in the embodiment of the present application.
The storage device 410 may mainly 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 according to the use of the terminal, and the like. Further, the storage 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 410 may further include memory located remotely from processor 420, which may be connected 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 input means 430 may be used to receive input numbers, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. The output device 440 may include a display screen, speakers, or other electronic equipment.
The electronic equipment provided by the embodiment of the application can achieve the purposes of improving the calculation speed and the processing effect of the use condition of the storage space.
The storage space usage calculating device, the storage medium and the electronic device provided in the above embodiments may execute the storage space usage calculating method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a storage space usage calculation method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (15)

1. The method for calculating the use condition of the storage space is characterized by comprising the following steps:
detecting the use conditions of at least two storage space types in the storage space of the current equipment;
respectively scoring the use conditions of the at least two storage space types to obtain the use score of the storage space of the current equipment;
and determining the utilization rate of the storage space of the current equipment according to the utilization score of the storage space of the current equipment.
2. The method of claim 1, wherein prior to scoring the usage of the at least two storage space types separately, the method further comprises:
dividing the type of a storage space of the current equipment; wherein the storage space types are at least two.
3. The method of claim 2, wherein the storage space type comprises: file storage, block storage, and object storage.
4. The method of claim 3, wherein scoring the usage of the at least two storage space types separately comprises:
if the storage space type is file storage, grading by adopting a first grading standard;
if the storage space type is block storage, grading by adopting a second grading standard;
and if the storage space type is object storage, grading by adopting a third grading standard.
5. The method of claim 1, wherein scoring the usage of the at least two storage space types separately to obtain a current device storage space usage score comprises:
and for each storage space type, adopting at least two dimensions to grade the use condition of the current equipment storage space type to obtain the use score of the current equipment storage space.
6. The method of claim 5, wherein the at least two dimensions comprise: degree of stability, degree of sensitivity, and degree of correlation;
correspondingly, for each storage space type, adopting at least two dimensions to grade the use condition of the current equipment storage space type to obtain the use score of the current equipment storage space, and the method comprises the following steps:
and for each storage space type, scoring the use condition of the current equipment storage space type from the stability degree, the sensitivity degree and the correlation degree to obtain the use score of the current equipment storage space.
7. The method of claim 6, wherein for each storage space type, scoring the usage of the current device storage space type from a stability degree, a sensitivity degree, and a relevance degree to obtain a current device storage space usage score comprises:
for each storage space type, scoring the service condition of the current equipment storage space type from the stability degree, the sensitivity degree and the correlation degree to obtain a stability degree score, a sensitivity degree score and a correlation degree score of the service condition of the current equipment storage space type;
and obtaining the use score of the storage space of the current equipment according to the stability degree score, the sensitivity degree score and the correlation degree score.
8. The method of claim 7, wherein obtaining a current device storage space usage score based on the stability score, the sensitivity score, and the relevance score comprises:
and adding the stability degree score, the sensitivity degree score and the correlation degree score to obtain the use score of the storage space of the current equipment.
9. The method of claim 1, wherein determining a current device storage space usage rate based on the current device storage space usage score comprises:
and determining the utilization rate of the storage space of the current equipment according to the use score of the storage space of the current equipment and the preset total score of the storage space of the current equipment.
10. The method of claim 1, wherein after determining a current device storage space usage rate based on the current device storage space usage score, the method further comprises:
and sending storage space usage alarm information according to the current equipment storage space usage rate.
11. The method of claim 10, wherein the alert information comprises: first level alarm information, second level alarm information and third level alarm information.
12. The method of claim 11, wherein sending a storage space usage alarm message according to the current device storage space usage comprises:
and sending storage space use alarm information of corresponding levels according to the current equipment storage space use rate.
13. A storage space usage calculation apparatus, comprising:
the storage space type use condition detection module is used for detecting the use conditions of at least two storage space types in the storage space of the current equipment;
the storage space use score obtaining module is used for respectively grading the use conditions of the at least two storage space types to obtain the use score of the storage space of the current equipment;
and the storage space utilization rate determining module is used for determining the storage space utilization rate of the current equipment according to the storage space utilization score of the current equipment.
14. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the storage space usage calculation method according to any one of claims 1 to 12.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the storage usage calculation method according to any one of claims 1-12 when executing the computer program.
CN202011036107.3A 2020-09-27 2020-09-27 Storage space use condition calculation method and device, storage medium and electronic equipment Active CN112199262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011036107.3A CN112199262B (en) 2020-09-27 2020-09-27 Storage space use condition calculation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011036107.3A CN112199262B (en) 2020-09-27 2020-09-27 Storage space use condition calculation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112199262A true CN112199262A (en) 2021-01-08
CN112199262B CN112199262B (en) 2023-06-20

Family

ID=74007438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011036107.3A Active CN112199262B (en) 2020-09-27 2020-09-27 Storage space use condition calculation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112199262B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020129216A1 (en) * 2001-03-06 2002-09-12 Kevin Collins Apparatus and method for configuring available storage capacity on a network as a logical device
CN101201783A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method for early warning insufficiency of memory space of network memory system
CN106249898A (en) * 2016-08-12 2016-12-21 北京金山安全软件有限公司 Prompting method and device for insufficient storage space and mobile device
CN108170789A (en) * 2017-12-27 2018-06-15 郑州云海信息技术有限公司 A kind of classification storage method and relevant apparatus based on distributed file system
CN111372027A (en) * 2020-03-18 2020-07-03 浙江大华技术股份有限公司 Video file storage method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020129216A1 (en) * 2001-03-06 2002-09-12 Kevin Collins Apparatus and method for configuring available storage capacity on a network as a logical device
CN101201783A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method for early warning insufficiency of memory space of network memory system
CN106249898A (en) * 2016-08-12 2016-12-21 北京金山安全软件有限公司 Prompting method and device for insufficient storage space and mobile device
CN108170789A (en) * 2017-12-27 2018-06-15 郑州云海信息技术有限公司 A kind of classification storage method and relevant apparatus based on distributed file system
CN111372027A (en) * 2020-03-18 2020-07-03 浙江大华技术股份有限公司 Video file storage method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN112199262B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
US20200142860A1 (en) Caseless file lookup in a distributed file system
US11296940B2 (en) Centralized configuration data in a distributed file system
WO2018213788A1 (en) Systems and methods for crowdsourced actions and commands
US11080143B2 (en) Systems and processes for data backup and recovery
CN110162512B (en) Log retrieval method, device and storage medium
CN107861691B (en) Load balancing method and device of multi-control storage system
CN110008197B (en) Data processing method and system, electronic equipment and storage medium
US20180366113A1 (en) Robust replay of digital assistant operations
CN114780252B (en) Resource management method and device of data warehouse system
WO2021169163A1 (en) File data access method and apparatus, and computer-readable storage medium
US11157456B2 (en) Replication of data in a distributed file system using an arbiter
CN113485909B (en) Test method, test device, computing equipment and medium
CN102970380B (en) Obtain method and the cloud storage server of the media data of cloud storage file
CN112000971B (en) File permission recording method, system and related device
CN111552438B (en) Method, device, server and storage medium for writing object
CN111274004B (en) Process instance management method and device and computer storage medium
CN112199262B (en) Storage space use condition calculation method and device, storage medium and electronic equipment
WO2019228009A1 (en) Lsm tree optimization method and device and computer equipment
CN115576772A (en) Method and device for reporting embedded point information, medium and electronic equipment
CN113886353B (en) Data configuration recommendation method and device for hierarchical storage management software and storage medium
CN104866356A (en) Method for implementing fast start of APP
US7949632B2 (en) Database-rearranging program, database-rearranging method, and database-rearranging apparatus
CN115270941A (en) Method, device and equipment for training data classification model and storage medium
CN114064729A (en) Data retrieval method, device, equipment and storage medium
CN115328891A (en) Data migration method and device, storage medium and electronic equipment

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