Process monitoring method and device of storage system, equipment, medium and product

By creating a target monitoring process in the storage system, monitoring and processing processes whose resource usage exceeds the threshold, the problems of excessive memory and unreasonable resources in the storage system are solved, and the stable operation of the storage system is achieved.

CN120469887APending Publication Date: 2025-08-12INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510546853.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

Too many processes in the storage system will occupy a lot of memory, and unreasonable resource utilization will have adverse effects on the operation of the entire storage system.

Method used

Create a target monitoring process in the storage system, and obtain the resource usage of the process to be monitored through the process, and process according to the preset processing strategy when it detects that the resource usage exceeds the threshold.

Benefits of technology

Ensure that the resource usage of each process is within a reasonable range and achieve stable and reliable operation of the storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469887A_ABST
    Figure CN120469887A_ABST
Patent Text Reader

Abstract

The invention discloses a process monitoring method and device of a storage system, equipment, a medium and a product, and relates to the technical field of storage systems, a plurality of processes run in the storage system, and a target monitoring process can be recreated; the resource usage amount of at least one running to-be-monitored process can be obtained through the target monitoring process, and if it is detected that the resource usage amount of a certain target process exceeds a resource usage threshold value corresponding to the target process, the resource usage amount of the target process can be processed according to a processing strategy corresponding to the target process. According to the scheme, at least one to-be-monitored process is immediately processed, so that the problems that excessive processes in a current storage system occupy a large amount of memory, and if occupied resources are unreasonable, adverse effects are caused to operation of the whole storage system can be solved, the resource use condition of each process can be in a reasonable range through the scheme, and the user experience is improved. The resources of the whole storage system are reasonably distributed, and the storage system can stably and reliably run.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of storage systems, and in particular to a process monitoring method, apparatus, device, medium, and product for a storage system. Background Art

[0002] In the digital information age, the storage market's demand for centralized storage continues to grow, and the number of processes running in storage systems is also increasing. However, the memory of the entire storage system is limited. Too many processes will occupy a large amount of memory. If the resources occupied by each process are unreasonable, it will also have a negative impact on the operation of the entire storage system. Therefore, how to monitor and process processes to ensure the stable operation of the storage system has become an urgent problem that needs to be solved. Summary of the Invention

[0003] The present application provides a process monitoring method, apparatus, device, medium and product for a storage system to at least solve the problem that too many processes in a storage system will occupy a large amount of memory, and if the resources are occupied unreasonably, it will have an adverse impact on the operation of the entire storage system.

[0004] The present application provides a process monitoring method for a storage system, wherein multiple processes are running in the storage system, comprising: creating a target monitoring process in the storage system, the target monitoring process being used to monitor resource usage of at least one process;

[0005] Obtain resource usage of at least one process to be monitored through a target monitoring process;

[0006] When it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, at least one process to be monitored is processed according to a preset processing strategy corresponding to the target process, where the target process is any one of the at least one process to be monitored.

[0007] The present application also provides a process monitoring device for a storage system, wherein a plurality of processes are running in the storage system, comprising: a creation module, configured to create a target monitoring process in the storage system, wherein the target monitoring process is configured to monitor resource usage of at least one process;

[0008] An acquisition module is used to obtain the resource usage of at least one process to be monitored through a target monitoring process;

[0009] The processing module is used to process at least one process to be monitored according to a preset processing strategy corresponding to the target process when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process. The target process is any one of the at least one process to be monitored.

[0010] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned storage system process monitoring methods when executing the computer program.

[0011] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned storage system process monitoring methods are implemented.

[0012] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned storage system process monitoring methods when executed by a processor.

[0013] Through the present application, there are multiple processes running in the storage system. In order to better monitor these processes, a target monitoring process can be created, which can be used to monitor the resource usage of at least one process; the resource usage of at least one running process to be monitored can be obtained through the target monitoring process. If it is detected that the resource usage of a target process exceeds the resource usage threshold corresponding to the target process, then the at least one process to be monitored can be immediately processed according to the processing strategy corresponding to the target process. This can solve the problem that too many processes in the current storage system will occupy a large amount of memory, and if the resources are occupied unreasonably, it will have an adverse effect on the operation of the entire storage system. Through this solution, not only can the resource usage of each process be within a reasonable range, the resources of the entire storage system can be reasonably allocated, and the storage system can be ensured to operate stably and reliably. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0015] Figure 1 The process of a process monitoring method of a storage system provided in an embodiment of the present application is as follows Figure 1 ;

[0016] Figure 2 The process of a process monitoring method of a storage system provided in an embodiment of the present application is as follows Figure 2 ;

[0017] Figure 3 The process of a process monitoring method of a storage system provided in an embodiment of the present application is as follows Figure 3 ;

[0018] Figure 4 A structural diagram of a process monitoring device for a storage system provided in an embodiment of the present application;

[0019] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0021] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0022] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0023] The storage system is a collection of hardware and software components used to store data and programs in electronic devices such as computers. It includes memory (main memory), external storage (such as hard disks and SSDs), cache, etc. It can store data for a long time and will not lose data even after a power outage (such as hard disks and SSDs). It also provides fast data access capabilities through memory and cache to meet the high-speed computing requirements of the CPU.

[0024] A process is an instance of a running program on a computer and serves as the fundamental unit of resource allocation and scheduling for the operating system. Each process has its own independent address space, code, data, and system resources. Multiple processes can run simultaneously, improving system utilization. Different processes are isolated from each other, so a crash in one process does not affect others. Processes also have a high-level priority relationship, and the operating system can determine CPU resource allocation based on information such as process priority and status.

[0025] It should be noted that when a process is running, it needs memory to store code, data and stack. Therefore, the process will occupy the memory space in the storage system, and the process may also call files, resources, data, etc. stored in the storage system. However, the storage space capacity of the storage system is limited. If more and more processes are running, the memory of the storage system will also be occupied. In addition, if the resources occupied by the process are unreasonable, for example, some processes occupy most of the memory, resulting in other processes having no resources to call, this will have an adverse impact on the operation of the entire storage system. Therefore, how to monitor and process the processes to ensure the stable operation of the storage system has become a problem that needs to be solved urgently.

[0026] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0027] like Figure 1 As shown, Figure 1 A flowchart of a storage system process monitoring method provided in an embodiment of the present application, the method may include the following steps:

[0028] 101. In the storage system, create a target monitoring process.

[0029] In an embodiment of the present application, multiple processes are running in the storage system. In order to monitor the resource usage of these processes, a target monitoring process can be created. The target monitoring process is used to monitor the resource usage of at least one process.

[0030] It should be noted that the target monitoring process and other running processes are independent of each other and are at the same layer. Since the target monitoring process is used to monitor other processes, the target monitoring process can be started earlier than other processes, which makes it convenient to start monitoring other processes.

[0031] 102. Obtain resource usage of at least one process to be monitored through the target monitoring process.

[0032] In an embodiment of the present application, when monitoring other processes, the target monitoring process can obtain the resource usage of at least one process to be monitored. The resource usage can represent the resource usage of the process, so that the target monitoring process can make judgments based on the resource usage.

[0033] It should be noted that the at least one process to be monitored can be at least one of all the running processes in the storage system except the target monitoring process. That is to say, the target monitoring process can only perform resource monitoring on some of the running processes in the storage system, and of course it can also perform resource monitoring on all running processes, and can be flexibly configured for the target monitoring process.

[0034] In some embodiments, the method of obtaining the resource usage of at least one process to be monitored through the target monitoring process can also be flexibly configured. It can be actively reported by at least one process to be monitored, or it can be feedback obtained after the target monitoring process issues a command. Of course, it can also be read directly from each process by the target monitoring process. The embodiments of this application do not make specific limitations.

[0035] In some embodiments, the resource usage may include many parameters, such as: memory usage, number of files opened, number of threads created, number of network connections, etc., which are not specifically limited in the embodiments of the present application.

[0036] In some embodiments, the frequency of obtaining the resource usage of at least one monitored process can be set by itself, and can be obtained in real time, according to a certain period, or at certain fixed times. The embodiments of this application do not make specific limitations.

[0037] 103. When it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, at least one process to be monitored is processed according to a preset processing strategy corresponding to the target process.

[0038] In an embodiment of the present application, after obtaining the resource usage of at least one process to be monitored through the target monitoring process, the resource usage of each process to be monitored can be detected. Since the type, function, and status of each process may be different, the resource usage threshold corresponding to each process may also be different. Therefore, when comparing and detecting the resource usage of the process to be monitored, it is necessary to compare it with the resource usage threshold corresponding to the process to be monitored. If the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, then it can be considered that the memory usage of the current target process is unreasonable, which may affect the operation of other processes and the operation of the entire storage system. Therefore, the target process needs to be processed.

[0039] In some embodiments, when resource usage includes memory usage and the number of open files, reference Figure 2As shown, it can be seen that the storage system is started, and then the target monitoring process, process A, process B and process C are started. Here, only three processes are taken as an example. In practice, more processes may be running. The target monitoring process obtains the resource usage of process A, process B and process C, which can specifically include obtaining the memory usage of the process and the number of files opened by the process, and then determines whether the resource usage of the process exceeds the threshold. When the resource usage of the process exceeds the threshold, it is processed according to the corresponding processing strategy.

[0040] Furthermore, the types, functions, and states of various processes may also differ, so the processing strategies for each process may also be different. For example, some processes are essential to ensure the normal operation of storage systems or electronic devices, so the processing strategy for these processes cannot be directly shut down, and may require reporting alarm information. Alternatively, some processes have higher priorities, so the processing strategy for these processes may be to output an exception log and shut down lower-priority processes. Therefore, when processing a target process, it is also necessary to follow the processing strategy corresponding to the target process.

[0041] In addition, if the target process is important to the operation of the entire storage system or electronic device, or the target process has a high priority, then even if the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, the target process may not be processed, but other processes may be processed. Therefore, at least one monitored process can be processed according to the preset processing strategy corresponding to the target process.

[0042] It should be noted that the target process is any one of the at least one process to be monitored.

[0043] In an embodiment of the present application, in addition to the normally running processes, a target monitoring process is also created, and the resource usage of other running processes is monitored through the target monitoring process. Once it is found that the resource usage of a process exceeds the threshold, corresponding measures are taken immediately. This not only ensures that the resource usage of each process is within a reasonable range, but also reasonably allocates the resources of the entire storage system and ensures that the storage system can operate stably and reliably.

[0044] like Figure 3 As shown, Figure 3 Another flowchart of a method for monitoring a process of a storage system provided in an embodiment of the present application, the method may include the following steps:

[0045] 301. In a storage system, determine at least one process to be monitored that requires resource monitoring.

[0046] In an embodiment of the present application, since multiple processes may be running in the storage system, not all processes need to be monitored, and some processes may not need to be monitored. Therefore, at least one process to be monitored that requires resource monitoring can be first determined in the storage system.

[0047] It should be noted that the at least one process to be monitored can be determined based on parameters such as the type and characteristics of the process; it can also be determined based on the historical monitoring of each process, for example: some processes have been monitored, so they need to continue to be monitored; it can also be determined based on the instructions of the staff, for example: the staff has determined that certain processes need to be monitored. Of course, other methods can also be included, and the embodiments of this application do not make specific limitations.

[0048] 302. Determine a resource usage threshold and a processing strategy for at least one process to be monitored.

[0049] In an embodiment of the present application, the resource usage threshold and processing strategy of each process to be monitored are one-to-one corresponding. It can also be understood that each process to be monitored has a corresponding resource usage threshold and processing strategy, and the resource usage threshold and processing strategy corresponding to different processes to be monitored can be the same or different.

[0050] In some embodiments, the resource usage threshold and processing strategy can be determined based on parameters such as the type, function, and characteristics of each process. For example, if a process needs to call many files to perform data calculations during operation, then the resource usage threshold corresponding to the process can be set larger; it can also be manually configured by staff, or determined based on historical process operation conditions. This application embodiment does not make specific limitations.

[0051] In some embodiments, the processing policy may refer to a processing method when the resource usage of a process exceeds a threshold. The processing policy may be for the current process or for other processes.

[0052] 303. Create a target monitoring process based on resource usage thresholds and processing strategies.

[0053] In an embodiment of the present application, when creating a target monitoring process, the target monitoring process can be configured, and the specific configuration data can be resource usage thresholds and processing strategies.

[0054] In some embodiments, after the target monitoring process is created, the target monitoring process may be deployed in a storage system and run.

[0055] 304. Construct a resource reading index command between the target monitoring process and at least one process to be monitored.

[0056] In an embodiment of the present application, when the target monitoring process monitors other processes, it needs to obtain the resource usage data of the process, and this data can be obtained by the target monitoring process in a variety of ways. Specifically, it can be obtained through a resource reading index command. The resource reading index command can enable the target monitoring process to read the resource usage of at least one process to be monitored.

[0057] In some embodiments, the target monitoring process can directly obtain the resource reading index command of at least one process to be monitored through the resource reading index command. For example, the target monitoring process can use the Linux ps command to view the memory usage of the process.

[0058] 305. Read a resource usage file of at least one process to be monitored through the target monitoring process.

[0059] In an embodiment of the present application, when the target monitoring process monitors at least one process to be monitored, in order to obtain the resource usage of at least one process to be monitored, the resource usage file of the at least one process to be monitored can be read, and the resource usage file can be used to record the resource usage of the process.

[0060] It should be noted that at least one process to be monitored can automatically generate the resource usage file in real time during its operation. The resource usage file can describe how much memory the process occupies, how many files it opens, how much data it sends, etc. at each moment.

[0061] In some embodiments, the resource usage file corresponds to at least one process to be monitored. That is, each process to be monitored corresponds to a resource usage file, and the resource usage file records the resource usage of the process to be monitored.

[0062] 306. Analyze the resource usage file to obtain resource usage of at least one process to be monitored.

[0063] In an embodiment of the present application, the resource usage file corresponding to each process to be monitored can be analyzed, and the resource usage recorded in the resource usage file can be extracted to obtain the resource usage of at least one process to be monitored.

[0064] In some embodiments, the monitored process may need to open files during operation, and a file descriptor will be generated each time a file is opened. The file descriptor can be saved in a resource usage file, so that the target monitoring process can read the resource usage file from the / proc / directory under the Linux system, and when analyzing the resource usage file, the number of file descriptors in the resource usage file can be counted to determine the number of files opened by the process as the resource usage of the process.

[0065] The resource usage of the process is recorded in the form of resource usage files. In this way, when the target monitoring process monitors each process, it can directly analyze and read the resource usage of the current process from the resource usage file, and then make a judgment based on the threshold. This can ensure the accuracy of the resource usage of the process and better stabilize the operating status of the storage system.

[0066] 307. When it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, at least one process to be monitored is processed according to a preset processing strategy corresponding to the target process.

[0067] In an embodiment of the present application, the target process is any one of at least one process to be monitored. When the target monitoring process detects that the resource usage of any process exceeds the resource usage threshold corresponding to the target process, the process or other processes will be processed according to the processing strategy corresponding to the process.

[0068] In some embodiments, when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, at least one process to be monitored is processed according to a preset processing strategy corresponding to the target process. Specifically, it may include: when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, determining the difference between the resource usage and the resource usage threshold; and processing at least one process to be monitored according to a preset processing strategy corresponding to the target process and the difference.

[0069] It should be noted that when the resource usage of a target process exceeds the resource usage threshold corresponding to the target process, processing must be performed on at least one of the monitored processes. However, the difference in the amount by which the resource usage exceeds the resource usage threshold may also affect the processing method for the at least one monitored process. For example, if the resource usage exceeds the resource usage threshold by only a small amount, some processing can be performed on the target process temporarily. However, if the resource usage exceeds the resource usage threshold by a significant amount, processing may be required on the target process and / or other processes in the at least one monitored process.

[0070] In some embodiments, different processing strategies can be set in advance for different differences, and the differences, processes, and processing strategies can be corresponded. In this way, after calculating the difference between the resource usage and the resource usage threshold, the processing strategy corresponding to the difference and the target process can be directly determined through the correspondence, so that at least one monitored process can be processed according to the processing strategy.

[0071] In some embodiments, the difference between the resource usage amount and the resource usage threshold may be divided into intervals in advance, and corresponding processing strategies may be determined for different differences.

[0072] In this solution, in addition to being associated with a specific process, the processing strategy can also be associated with the difference between resource usage and the resource usage threshold, and the difference can also be divided. In this way, when determining the processing strategy of the process, the specific range of resource usage exceeded by the current process can be taken into account, thereby avoiding excessive processing and effectively avoiding inadequate processing.

[0073] In some embodiments, when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, at least one process to be monitored is processed according to a preset processing strategy corresponding to the target process. Specifically, it may include: when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, determining the target priority of the target process in at least one process to be monitored; and processing at least one process to be monitored according to the processing strategy corresponding to the target priority.

[0074] It should be noted that there is a priority order among the processes running in the storage system. Some processes that are very important to the operation of the entire system have higher priorities. Therefore, when the resource usage of these processes exceeds the threshold, the processing strategy may also be targeted at other processes with lower priorities. In other words, the processing strategies corresponding to processes of different priorities are different, and the objects targeted by the processing strategies may also be different.

[0075] In some embodiments, at least one monitored process is processed according to a processing strategy corresponding to the target priority, which may specifically include: when the target priority is in a first priority range, processing the target process according to a first processing strategy; when the target priority is in a second priority range, processing the target process according to a second processing strategy, and / or, processing at least one monitored process in the first priority range according to the first processing strategy; wherein the first priority range is lower than the second priority range.

[0076] It should be noted that the processing strategy for a lower-priority process may be directed at the process itself, while the processing strategy for a higher-priority process may be directed at other processes. The first processing strategy may include pausing or shutting down the process, and the second processing strategy may include reporting an alarm event or outputting an exception log. It can be understood that when the resource usage of a low-priority process exceeds the resource usage threshold, the process can be suspended or directly shut down; and when the resource usage of a high-priority process exceeds the resource usage threshold, the alarm event can be reported, and other low-priority processes can be suspended or shut down, thereby ensuring the normal operation of the high-priority process.

[0077] Through this solution, a priority order between different processes is introduced, and different processing strategies are configured for processes of different priorities, weakening the processing strategy for high-priority processes themselves. This can ensure the normal operation of the storage system, and through different processing of processes of different priorities, reasonable allocation of memory in the storage system can be achieved.

[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0079] like Figure 4 As shown, an embodiment of the present application further provides a process monitoring device for a storage system, which may include:

[0080] A creation module 401 is configured to create a target monitoring process in a storage system, where the target monitoring process is configured to monitor resource usage of at least one process.

[0081] An acquisition module 402 is configured to acquire resource usage of at least one process to be monitored through a target monitoring process;

[0082] The processing module 403 is used to process at least one process to be monitored according to a preset processing strategy corresponding to the target process when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process. The target process is any one of the at least one process to be monitored.

[0083] In some embodiments, the acquisition module 402 is specifically used to read the resource usage file of at least one process to be monitored through the target monitoring process, and the resource usage file is used to record the resource usage of the process; analyze the resource usage file to obtain the resource usage of at least one process to be monitored.

[0084] In some embodiments, the processing module 403 is specifically used to determine the difference between the resource usage and the resource usage threshold when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process; and process at least one process to be monitored according to a preset processing strategy corresponding to the target process and the difference.

[0085] In some embodiments, the processing module 403 is specifically used to determine the target priority of the target process in at least one process to be monitored when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process; and process at least one process to be monitored according to the processing strategy corresponding to the target priority.

[0086] In some embodiments, the processing module 403 is specifically used to process the target process according to the first processing strategy when the target priority is in the first priority interval; process the target process according to the second processing strategy when the target priority is in the second priority interval, and / or process at least one monitored process in the first priority interval according to the first processing strategy; wherein the first priority interval is lower than the second priority interval.

[0087] In some embodiments, the creation module 401 is specifically used to determine at least one process to be monitored that requires resource monitoring in the storage system; determine the resource usage threshold and processing strategy for at least one process to be monitored; and create a target monitoring process based on the resource usage threshold and processing strategy.

[0088] In some embodiments, the creation module 401 is further used to construct a resource reading index command between the target monitoring process and at least one process to be monitored, where the resource reading index command enables the target monitoring process to read the resource usage of at least one process to be monitored.

[0089] In the embodiments of the present application, the description of the features in the embodiments corresponding to the process monitoring device of the storage system can be found in the relevant description of the embodiments corresponding to the process monitoring method of the storage system, and will not be repeated here.

[0090] like Figure 5 As shown, an embodiment of the present application also provides an electronic device, including a memory 501 and a processor 502, wherein the memory 501 stores a computer program, and the processor 502 is configured to run the computer program to execute the steps in any of the above-mentioned storage system process monitoring method embodiments.

[0091] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned storage system process monitoring method embodiments when running.

[0092] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0093] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned embodiments of the process monitoring method for a storage system are implemented.

[0094] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned storage system process monitoring method embodiments.

[0095] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0096] The above is a detailed introduction to the process monitoring of a storage system provided by this application. Specific examples are used herein to illustrate the principles and implementation methods of this application. The description of the above embodiments is only intended to help understand the method and core ideas of this application. It should be pointed out that, for those skilled in the art, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

Claims

1. A process monitoring method for a storage system, characterized in that: There are multiple processes running in the storage system, and the method includes: In the storage system, creating a target monitoring process, wherein the target monitoring process is used to monitor resource usage of at least one process; Obtaining resource usage of at least one process to be monitored through the target monitoring process; When it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, the at least one process to be monitored is processed according to the preset processing strategy corresponding to the target process, and the target process is any one of the at least one process to be monitored.

2. The process monitoring method of the storage system according to claim 1, characterized in that: The obtaining, through the target monitoring process, the resource usage of at least one process to be monitored, includes: Reading a resource usage file of the at least one process to be monitored through the target monitoring process, wherein the resource usage file is used to record resource usage of the process; The resource usage file is analyzed to obtain resource usage of the at least one process to be monitored.

3. The method according to claim 1, characterized in that When it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, processing the at least one process to be monitored according to a preset processing strategy corresponding to the target process includes: When detecting that the resource usage of the target process exceeds a resource usage threshold corresponding to the target process, determining a difference between the resource usage and the resource usage threshold; The at least one process to be monitored is processed according to a preset processing strategy corresponding to the target process and the difference.

4. The method according to claim 1, wherein When it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process, processing the at least one process to be monitored according to a preset processing strategy corresponding to the target process includes: When it is detected that the resource usage of the target process exceeds a resource usage threshold corresponding to the target process, determining a target priority of the target process in the at least one process to be monitored; The at least one process to be monitored is processed according to a processing strategy corresponding to the target priority.

5. The method according to claim 4, characterized in that The processing of the at least one process to be monitored according to the processing strategy corresponding to the target priority includes: When the target priority is within a first priority range, processing the target process according to a first processing strategy; When the target priority is in the second priority interval, processing the target process according to the second processing strategy, and / or processing the at least one monitored process that is in the first priority interval according to the first processing strategy; The first priority range is lower than the second priority range.

6. The method according to claim 1, characterized in that In the storage system, creating a target monitoring process includes: In the storage system, determining the at least one process to be monitored that requires resource monitoring; Determining a resource usage threshold and a processing strategy for the at least one process to be monitored; The target monitoring process is created according to the resource usage threshold and the processing strategy.

7. The method according to claim 6, characterized in that After creating the target monitoring process according to the resource usage threshold and the processing strategy, the method further includes: A resource reading index command is constructed between the target monitoring process and the at least one process to be monitored, wherein the resource reading index command enables the target monitoring process to read the resource usage of the at least one process to be monitored.

8. A process monitoring device for a storage system, characterized in that: There are multiple processes running in the storage system, and the device includes: A creation module, configured to create a target monitoring process in the storage system, wherein the target monitoring process is configured to monitor resource usage of at least one process; An acquisition module, configured to acquire resource usage of at least one process to be monitored through the target monitoring process; A processing module is used to process the at least one process to be monitored according to a preset processing strategy corresponding to the target process when it is detected that the resource usage of the target process exceeds the resource usage threshold corresponding to the target process. The target process is any one of the at least one process to be monitored.

9. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the process monitoring method for a storage system according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the process monitoring method of the storage system according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the process monitoring method of the storage system according to any one of claims 1 to 7 are implemented.