Process information filtering method and device, medium, electronic equipment and program product

By using a filter combined with an information summary algorithm and a Bloom filter before the server shuts down, the system process is filtered, which solves the problem of low filtering efficiency in the list method and achieves efficient process filtering effect.

CN119669453APending Publication Date: 2025-03-21INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411883798.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

Before the server shuts down, the system process is filtered by a list, which has low filtering efficiency.

Method used

The filter built on the information digest algorithm and the Bloom filter is adopted to process information in a fixed length process through the information digest algorithm, and the Bloom filter is used to filter out process information whose importance value is greater than the preset degree threshold.

Benefits of technology

It improves the efficiency of process information filtering before the server shutdown, avoids the problems of large workload of list management and low filtering efficiency, and realizes efficient process filtering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669453A_ABST
    Figure CN119669453A_ABST
Patent Text Reader

Abstract

The invention discloses a process information filtering method and device, a medium, electronic equipment and a program product. Relates to the field of financial science and technology, and the method comprises the following steps: when it is detected that a shutdown instruction is triggered, obtaining information of a process running at the current moment in a target device, and obtaining T pieces of first process information, the shutdown instruction being used for requesting to perform shutdown processing on the target device; the T pieces of first process information are input into a target filter, a filtering result is obtained, the target filter at least comprises a filter constructed based on an information digest algorithm and a Bloom filter, and the target filter is used for filtering out the process information with the importance degree value larger than a preset degree threshold value from the T pieces of first process information. By means of the method and device, the problem that in the related technology, before the server is shut down, the system process is filtered in a list mode, and the filtering efficiency is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology, and specifically, to a method, device, medium, electronic device and program product for filtering process information. Background Art

[0002] With the development of information technology, people's requirements for automation in equipment resource management are gradually increasing. In the decommissioning scenario, it is usually necessary for the application administrator to check the system process of the server to be shut down to ensure that no important processes exist before the server is shut down.

[0003] In the related art, system processes can only be browsed and carefully checked by users step by step. A system process list management model can also be introduced to screen out common non-important system processes from a list (for example, a white list), and then determine whether the checked process is a non-important system process based on the screened results. Although common system processes can be managed regularly and some process results can be filtered to improve some efficiency, the workload of list management is still large, the efficiency of reading process information from a large amount of data in the list is still relatively low, and the manpower maintenance cost of list management is high.

[0004] With regard to the problem that in the related art, before the server is shut down, the system process is filtered by a list method, and the filtering efficiency is low, no effective solution has been proposed yet. Summary of the invention

[0005] The main purpose of the present application is to provide a method, device, medium, electronic device and program product for filtering process information to solve the problem of low filtering efficiency in the related art of filtering system processes by a list before shutting down the server.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for filtering process information is provided. The method comprises: when a shutdown instruction is detected to be triggered, obtaining information of the process currently running in the target device, obtaining T first process information, wherein the shutdown instruction is used to request the shutdown of the target device, and T is a natural number; inputting the T first process information into a target filter, obtaining a filtering result, wherein the target filter at least includes: a filter constructed based on an information summary algorithm and a Bloom filter, and the target filter is used to filter out process information whose importance value is greater than a preset degree threshold from the T first process information.

[0007] Furthermore, T pieces of the first process information are input into the target filter to obtain a filtering result, including: inputting T pieces of the first process information into the target filter, using the information summary algorithm to perform fixed-length processing on each of the T pieces of the first process information to obtain T target process information, wherein the fixed-length processing is used to process the length of the first process information to a preset length; inputting T pieces of the target process information into the Bloom filter to obtain the filtering result.

[0008] Furthermore, the Bloom filter includes: a target array with a length of m, and T target process information are input into the Bloom filter to obtain the filtering result, including: inputting T target process information into the Bloom filter, and using K hash functions to calculate the target process information to obtain a first calculation result, wherein K is a positive integer; based on the first calculation result, mapping each target process information to the target array, and based on the mapping position of each target process information in the target array, filtering out the target process information whose importance value is greater than the preset degree threshold from the T target process information to obtain the filtering result.

[0009] Further, based on the mapping position of each target process information in the target array, target process information whose importance value is greater than the preset degree threshold is filtered out from the T target process information to obtain the filtering result, including: when the value of the mapping position of any target process information in the target array is a first preset value, determining that the importance value of the target process information is not greater than the preset degree threshold; when the value of the mapping position of any target process information in the target array has at least one second preset value, determining that the importance value of the target process information is greater than the preset degree threshold; based on the target process information among the T target process information whose importance value is greater than the preset degree threshold, determining the filtering result.

[0010] Furthermore, before inputting T first process information into the target filter to obtain the filtering result, it also includes: establishing an initial array with a length of m, wherein the values ​​at all positions in the initial array are the second preset values, and m is greater than the target preset value; obtaining n second process information, wherein the second process information includes: process information of processes whose importance values ​​are not greater than the preset threshold value, and the length of n second process information is the preset length; using K hash functions to calculate each second process information to obtain a second calculation result; based on the second calculation result, mapping each first process information to the initial array, and setting the value of the target position in the initial array to the first preset value to obtain the target array, wherein the target position includes: positions where n second process information has a mapping relationship in the initial array.

[0011] Furthermore, after inputting T pieces of the first process information into the target filter to obtain the filtering results, it also includes: sending the filtering results to the terminal device used by the target object, wherein the target object is used to review the process information in the filtering results; using the terminal device to receive the review results of the target object, and if the review results indicate that all the process information in the filtering results have passed the review, allowing the target device to shut down; if the review results indicate that any process information in the filtering results has failed the review, prohibiting the target device from shutting down.

[0012] Furthermore, after using the terminal device to receive the audit result of the target object, it also includes: determining the process information in the filtering results that has been audited by the target object to obtain third process information; when the number of times the third process information has been audited by the target object reaches a preset threshold, adding the third process information to the target array of the target filter.

[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a process information filtering device is provided, which includes: a first acquisition unit, which is used to acquire information about the process currently running in the target device when a shutdown instruction is detected to be triggered, and obtain T first process information, wherein the shutdown instruction is used to request shutdown of the target device, and T is a natural number; a first processing unit, which is used to input the T first process information into a target filter to obtain a filtering result, wherein the target filter at least includes: a filter constructed based on an information summary algorithm and a Bloom filter, and the target filter is used to filter out process information whose importance value is greater than a preset degree threshold from the T first process information.

[0014] Furthermore, the first processing unit includes: a first processing sub-unit, used to input T pieces of the first process information into the target filter, and use the information summary algorithm to perform fixed-length processing on each of the T pieces of the first process information to obtain T pieces of target process information, wherein the fixed-length processing is used to process the length of the first process information to a preset length; a second processing sub-unit, used to input the T pieces of the target process information into the Bloom filter to obtain the filtering result.

[0015] Furthermore, the Bloom filter includes: a target array with a length of m, and the second processing sub-unit includes: a calculation module, used to input T target process information into the Bloom filter, and use K hash functions to calculate the target process information to obtain a first calculation result, wherein K is a positive integer; a processing module, used to map each target process information to the target array based on the first calculation result, and based on the mapping position of each target process information in the target array, filter out the target process information whose importance value is greater than the preset degree threshold from the T target process information to obtain the filtering result.

[0016] Further, the processing module includes: a first determination submodule, used to determine that the importance value of the target process information is not greater than the preset threshold value when the values ​​of the mapping positions of any of the target process information in the target array are all first preset values; a second determination submodule, used to determine that the importance value of the target process information is greater than the preset threshold value when there is at least one second preset value in the values ​​of the mapping positions of any of the target process information in the target array; and a third determination submodule, used to determine the filtering result based on the target process information in T whose importance value is greater than the preset threshold value.

[0017] Furthermore, the filtering device for process information also includes: an establishment unit, which is used to establish an initial array with a length of m before inputting T first process information into the target filter to obtain the filtering result, wherein the values ​​at all positions in the initial array are the second preset values, and m is greater than the target preset value; a second acquisition unit, which is used to acquire n second process information, wherein the second process information includes: process information of processes whose importance values ​​are not greater than the preset degree threshold, and the length of the n second process information is the preset length; a calculation unit, which is used to calculate each second process information using K hash functions to obtain a second calculation result; a mapping unit, which is used to map each first process information to the initial array based on the second calculation result, and set the value of the target position in the initial array to the first preset value to obtain the target array, wherein the target position includes: positions where the n second process information has a mapping relationship in the initial array.

[0018] Furthermore, the filtering device for process information also includes: a sending unit, which is used to send the filtering results to the terminal device used by the target object after inputting T pieces of the first process information into the target filter to obtain the filtering results, wherein the target object is used to review the process information in the filtering results; a receiving unit, which is used to receive the review results of the target object using the terminal device, and allow the target device to shut down if the review results indicate that all the process information in the filtering results have passed the review; and a second processing unit, which is used to prohibit the target device from shutting down if the review results indicate that any process information in the filtering results has failed the review.

[0019] Furthermore, the filtering device for process information also includes: a determination unit, which is used to determine the process information in the filtering results that has been audited by the target object after receiving the audit result of the target object using the terminal device, and obtain third process information; an adding unit, which is used to add the third process information to the target array of the target filter when the number of times the third process information has been audited by the target object reaches a preset threshold.

[0020] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored executable program, wherein when the executable program is running, a method for filtering process information of a device where the computer-readable storage medium is located is controlled to execute.

[0021] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the method for filtering process information is executed when the program is running.

[0022] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer program product is provided, comprising computer instructions, which implement the steps of the process information filtering method when executed by a processor.

[0023] In an embodiment of the present application, when it is detected that the shutdown command is triggered, the information of the process currently running in the target device is obtained to obtain T first process information, wherein the shutdown command is used to request the target device to be shut down, and T is a natural number; the T first process information is input into the target filter to obtain a filtering result, wherein the target filter at least includes: a filter constructed based on the information digest algorithm and the Bloom filter, and the target filter is used to filter out the process information whose importance value is greater than the preset degree threshold from the T first process information, thereby solving the technical problem of low filtering efficiency in the related art of filtering system processes in the form of a list before the server is shut down. In the present invention, the target filter that combines the information digest algorithm and the Bloom filter is used to filter the running processes before the device is shut down, avoiding the situation in the related art that the running processes are filtered according to the process information recorded in the list before the server is shut down, and the filtering efficiency is low, thereby achieving the technical effect of efficient filtering of the running processes before the device is shut down. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 A hardware structure block diagram of a computer terminal for implementing a method for filtering process information is shown;

[0026] Figure 2 is a flowchart of a method for filtering process information provided in an embodiment of the present application;

[0027] Figure 3 is a flowchart of system process filtering provided according to an embodiment of the present application;

[0028] Figure 4 is a processing flow chart of a target filter provided according to an embodiment of the present application;

[0029] Figure 5 is a schematic diagram showing the filtering results provided in an embodiment of the present application;

[0030] Figure 6 is a schematic diagram of a device for filtering process information provided according to an embodiment of the present application;

[0031] Figure 7 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] It should be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.

[0035] Embodiment 1

[0036] According to an embodiment of the present application, a method embodiment of a method for filtering process information is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0037] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for filtering process information is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0038] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0039] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the filtering method of process information in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the filtering method of the above-mentioned process information is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0040] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0041] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0042] Under the above operating environment, this application provides Figure 2 The filtering method of the process information shown. Figure 2 It is a flowchart of a method for filtering process information according to the first embodiment of the present application.

[0043] Step S201, when it is detected that the shutdown instruction is triggered, obtain information of the processes currently running in the target device to obtain T first process information, wherein the shutdown instruction is used to request shutdown processing of the target device, and T is a natural number.

[0044] The above-mentioned target device may include but is not limited to a server, for example, a server in a financial institution, and the above-mentioned T first process information may include but is not limited to: process identification (for example, process ID), process name, process status, resources occupied by the process, running time, etc.

[0045] In this embodiment, when a shutdown instruction is detected to shut down the target device, the information of the currently running process in the target device can be read to obtain T first process information. By automatically obtaining all running process information, efficient process information filtering can be performed later.

[0046] Step S202, input T first process information into the target filter to obtain a filtering result, wherein the target filter at least includes: a filter constructed based on an information summary algorithm and a Bloom filter, and the target filter is used to filter out process information whose importance value is greater than a preset degree threshold from the T first process information.

[0047] The target filter may include a filter constructed based on a message digest algorithm and a Bloom filter. The message digest algorithm may include but is not limited to: MD5-message digest algorithm.

[0048] In this embodiment, process information whose importance value is greater than a preset threshold value may include: information about processes that have been determined at the current moment to require closing the process before the target device can be shut down, and information about processes that have not been determined at the current moment to require closing the process before the target device can be shut down. That is, the process information whose importance value is greater than the preset threshold value can be information about processes that need to be manually reviewed or manually processed.

[0049] The process information whose importance value is not greater than the preset threshold value may include: information about processes that have been determined at the current moment and do not need to be closed before shutting down the target device, or information about processes that do not need to be manually reviewed or processed.

[0050] Since the number of system processes of each server is uncontrollable and the length of the processes varies in the filtering of the system process check, in this embodiment, a target filter can be used to filter the first process information. At the same time, an information summary algorithm can be deployed in the target filter. The information summary algorithm can be used to perform fixed-length processing on the collected first process information, thereby avoiding the direct use of traditional Bloom filters, which will increase the repetition rate of Hash mapping and cause misjudgment of the Bloom filter.

[0051] Through the above steps, in this embodiment, the target filter that combines the information summary algorithm and the Bloom filter is used to filter the running processes before the device is shut down, avoiding the low filtering efficiency of filtering the running processes according to the process information recorded in the list before the server is shut down in the related technology, thereby achieving the technical effect of efficiently filtering the running processes before the device is shut down, and further solving the technical problem of low filtering efficiency of filtering the system processes by using a list before the server is shut down in the related technology.

[0052] Figure 3 is a flowchart of system process filtering provided according to an embodiment of the present application, such as Figure 3 As shown, it includes: real-time collection of common system processes, construction of Bloom filters, filtering of system processes and process display. Processes that have passed multiple audits can be included in the common system process collection.

[0053] Optionally, in the process information filtering method provided in the embodiment of the present application, T first process information are input into the target filter to obtain a filtering result, including: inputting T first process information into the target filter, using the information summary algorithm to perform fixed-length processing on each of the T first process information to obtain T target process information, wherein the fixed-length processing is used to process the length of the first process information to a preset length; inputting the T target process information into the Bloom filter to obtain a filtering result.

[0054] In this embodiment, the collected first process information can be processed into a fixed length through the information digest algorithm, so that a process of any length can obtain a fixed-length information after being processed by the information digest algorithm. For example, each first process information can be converted into 128-bit process information through the MD5-information digest algorithm to reduce the conflict of Hash mapping.

[0055] In this embodiment, a Bloom filter can also be used to map the target process information to different space vectors through multiple Hash functions, ensuring that for the target process information, only when the eigenvalues ​​of multiple space vectors mapped by multiple Hash functions are equal will an element be misjudged, thereby reducing the probability of misjudgment.

[0056] Optionally, in the process information filtering method provided in the embodiment of the present application, the Bloom filter includes: a target array with a length of m, T target process information is input into the Bloom filter, and a filtering result is obtained, including: T target process information is input into the Bloom filter, and the target process information is calculated using K hash functions to obtain a first calculation result, wherein K is a positive integer; based on the first calculation result, each target process information is mapped to the target array, and based on the mapping position of each target process information in the target array, the target process information whose importance value is greater than a preset degree threshold is filtered out from the T target process information to obtain a filtering result.

[0057] The above-mentioned Bloom filter includes: a target array with a length of m. In this embodiment, after T target process information is input into the Bloom filter, the hash value of each target process information can be calculated using K hash functions in the Bloom filter.

[0058] For each target process information, the hash value calculated by each hash function can be mapped to one or more positions in the target array, and the positions mapped by the hash values ​​calculated by the K hash functions can be used as the positions mapped by each target process information in the target array.

[0059] In this embodiment, based on the value of the mapping position of each target process information in the target array, it can be determined whether the importance value of the target process information is greater than a preset importance threshold, thereby determining the filtering result.

[0060] In this embodiment, during the process of checking and filtering process information before shutting down the device, Bloom filter technology is introduced, which can efficiently filter a large number of common system processes while ensuring a small space occupancy rate, thereby achieving the technical effect of improving process filtering efficiency.

[0061] Optionally, in the method for filtering process information provided in the embodiment of the present application, based on the mapping position of each target process information in the target array, target process information whose importance value is greater than a preset degree threshold is filtered out from T target process information to obtain a filtering result, including: when the value of the mapping position of any target process information in the target array is a first preset value, determining that the importance value of the target process information is not greater than the preset degree threshold; when the value of the mapping position of any target process information in the target array has at least one second preset value, determining that the importance value of the target process information is greater than the preset degree threshold; determining the filtering result based on the target process information whose importance value is greater than the preset degree threshold among the T target process information.

[0062] Figure 4 is a processing flow chart of a target filter provided in an embodiment of the present application, such as Figure 4As shown, the target process information of the system process can be obtained through three hash functions (such as Figure 4 Hash-a1, Hash-a2, and Hash-a3 in are mapped to positions in the target array, and can be mapped based on the values ​​of the mapped positions (such as Figure 4 1 and 0) in the filter to determine the filtering result.

[0063] In the case where the values ​​of the mapping positions of any target process information in the target array are all first preset values ​​(for example, 1), it can be determined that the importance value of the target process information is not greater than the preset threshold value, and the target process information may not be included in the filtering result. In the case where the values ​​of the mapping positions of any target process information in the target array have at least one second preset value (for example, 0), it can be determined that the importance value of the target process information is greater than the preset threshold value, and the target process information may be included in the filtering result.

[0064] For example, the system process to be queried can be processed with the MD5-information digest algorithm to obtain a 128-bit value output (corresponding to the target process information). The value processed by MD5 is calculated using a hash map and mapped to k mapping spaces. In each mapping space, the points that have been hash mapped are set to 1, and the rest are set to 0. Compare the values ​​of the mapping points in a single space one by one to see if they are 1. In all mapping spaces, if any of the mapping points has a value of 0, the queried system process must not be in the existing system process set, so the process is a new process and can be recorded in the filtering results.

[0065] By filtering the target process information through the target filter, the purpose of filtering out the process information that needs manual review and manual processing before the target device is shut down is achieved, and the technical effect of improving the filtering efficiency of the process information is achieved.

[0066] Optionally, in the filtering method for process information provided in the embodiment of the present application, before inputting T first process information into the target filter to obtain the filtering result, it also includes: establishing an initial array with a length of m, wherein the values ​​at all positions in the initial array are second preset values, and m is greater than the target preset value; obtaining n second process information, wherein the second process information includes: process information of processes whose importance values ​​are not greater than a preset degree threshold, and the length of the n second process information is a preset length; using K hash functions to calculate each second process information to obtain a second calculation result; based on the second calculation result, mapping each first process information to the initial array, and setting the value of the target position in the initial array to the first preset value to obtain the target array, wherein the target position includes: the position where the n second process information has a mapping relationship in the initial array.

[0067] The above-mentioned second process information may include: process information of processes whose importance value is not greater than a preset threshold, that is, process information that does not require manual review or manual processing, and each second process information can be process information that has been fixed-length processed by an information summary algorithm.

[0068] In this embodiment, an initial array of length m can be established, and the values ​​at all positions in the initial array are second preset values ​​(for example, 0), and n second process information is obtained. For each second process information, K hash functions can be used to calculate the second process information, and the hash value obtained by each hash function for calculating the second process information can be mapped to the position in the initial array, and the value mapped to the position in the initial array is set to the first preset value (for example, 1), and the target array in the Bloom filter has been established. It is convenient to filter the process information later, and the filtering efficiency of the process information and the accuracy of the filtering results are improved.

[0069] For example, the target Bloom filter involves the following parameters: 1. n: the number of source data; 2. k: the number of Hash functions; 3. m: the number of bits of the space vector. In this embodiment, the application characteristics of the target filter can set the values ​​of n, m, and k according to the actual system process inspection situation. n can be expressed as an estimate of the number of common system processes. If the number of managed processes in the destocking function list is 1800, the initial value of n can be set to 1800. With the subsequent review results of the process information in the subsequent filtering results, the estimate of n can be gradually adjusted. For example, if the number of process information that has passed the review is greater than the preset threshold, the process information can be added to the target filter, and n can be increased at this time. K can be a fixed value between 3 and 5. m is the number of bits of the space vector, such as the length of the target array. Generally, the larger the number of bits of m, the lower the misjudgment rate, but the larger the space occupied. In this embodiment, the initial value of n is 1800, and k is between 3 and 5. m can be set to 15000 to ensure that the error rate is less than 5%, and can be adjusted according to the space occupied by subsequent operations.

[0070] In the initial state, an array of length m can be set as a Bloom filter, and the values ​​on all bits are set to 0. The position of each source data process Hash function mapped in the array can be set to 1 to achieve the purpose of building a target filter.

[0071] Optionally, in the method for filtering process information provided in the embodiment of the present application, after inputting T first process information into the target filter to obtain the filtering result, it also includes: sending the filtering result to the terminal device used by the target object, wherein the target object is used to review the process information in the filtering result; using the terminal device to receive the review result of the target object, and when the review result indicates that all process information in the filtering result has passed the review, allowing the target device to shut down; when the review result indicates that any process information in the filtering result has failed the review, prohibiting the target device from shutting down.

[0072] In this embodiment, the filtering results can be sent to the terminal device used by the target object for display. Figure 5 is a schematic diagram showing the filtering results provided in the embodiment of the present application, such as Figure 5 As shown, it includes: production details to be recycled, specifically, it can include: server IP, application abbreviation (for example, F-ABCD), system process check time, system process check department (for example, system department 4), system process check result (corresponding to the filtering result) and operation (pass and return), wherein the target object is used to review the process information in the filtering result to determine whether it is allowed to directly shut down the target device without processing the process, such as Figure 5 As shown, "none" in the system process check result may indicate that there is no process information in the filtering result, and the character string in the system process check result may record the filtered process information (for example, Figure 5 / usr / bin / cloudw alker-upgrader start / etc… and [mm_percpu_wq][oom_reaper][watchdogd…] in the command line.

[0073] After obtaining the audit results, the terminal device can be used to receive the audit results of the target object. When the audit results indicate that all process information in the filtering results have passed the audit, the target device can be allowed to shut down. When the audit results indicate that any process information in the filtering results has failed the audit, the target device is prohibited from shutting down until the process associated with the process information is closed. The target device is allowed to shut down, thereby avoiding the situation where important processes are running before the device is shut down, resulting in the loss of important data, and achieving the technical effect of improving the reliability of the operation of the target device.

[0074] Optionally, in the method for filtering process information provided in the embodiment of the present application, after receiving the audit results of the target object using the terminal device, it also includes: determining the process information in the filtering results that has been audited by the target object to obtain third process information; when the number of times the third process information has been audited by the target object reaches a preset threshold, adding the third process information to the target array of the target filter.

[0075] In this embodiment, for the process information of the same process, if the number of times it has been reviewed and approved by the target object reaches a preset threshold, it can be determined that the importance value of the process information does not exceed the preset threshold, and the process information can be added to the target array of the target filter. In the subsequent shutdown processing of the target device, the target filter can directly filter out the process information without the need for another review, thereby achieving the technical effect of improving the filtering efficiency of process information before device shutdown.

[0076] In this embodiment, before the device is shut down, a Bloom filter is introduced to filter the process information, which can efficiently filter a large number of common system processes while ensuring a small space occupancy rate. When the device resources are decommissioned, only the latest filtered system processes are displayed to the administrator of application support, which improves the efficiency of resource decommissioning review. The application support administrator is relieved of the work of distinguishing complicated system processes. By setting an information summary algorithm in the Bloom filter and performing fixed-length processing on the process information, the misjudgment rate of system process filtering is reduced.

[0077] The method for filtering process information provided in the embodiment of the present application filters the running processes before the device is shut down through a target filter that combines an information summary algorithm and a Bloom filter, thereby avoiding the problem of low filtering efficiency in filtering the running processes according to the process information recorded in the list before the server is shut down in the related technology, thereby achieving the technical effect of efficiently filtering the running processes before the device is shut down, and further solving the technical problem of low filtering efficiency in filtering the system processes by means of a list before the server is shut down in the related technology.

[0078] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0079] Embodiment 2

[0080] The present application also provides a process information filtering device. It should be noted that the process information filtering device of the present application can be used to execute the process information filtering method provided by the present application. The following is an introduction to the process information filtering device provided by the present application.

[0081] According to an embodiment of the present application, a device for implementing the above-mentioned process information filtering method is also provided. Figure 6 As shown, the device includes: a first acquisition unit 61 and a first processing unit 62.

[0082] The first acquisition unit 61 is used to acquire information about the processes currently running in the target device when a shutdown instruction is detected to be triggered, and obtain T pieces of first process information, wherein the shutdown instruction is used to request the target device to be shut down, and T is a natural number;

[0083] The first processing unit 62 is used to input T first process information into a target filter to obtain a filtering result, wherein the target filter at least includes: a filter constructed based on an information summary algorithm and a Bloom filter, and the target filter is used to filter out process information whose importance value is greater than a preset degree threshold from the T first process information.

[0084] The filtering device for process information provided in the embodiment of the present application obtains the information of the process currently running in the target device through the first acquisition unit 61 when the shutdown command is detected to be triggered, and obtains T first process information, wherein the shutdown command is used to request the target device to be shut down, and T is a natural number. The T first process information is input into the target filter through the first processing unit 62 to obtain the filtering result, wherein the target filter at least includes: a filter constructed based on the information digest algorithm and the Bloom filter, and the target filter is used to filter out the process information whose importance value is greater than the preset degree threshold from the T first process information. Thus, the technical problem of low filtering efficiency in filtering system processes in the form of a list before the server is shut down in the related technology is solved. In this embodiment, the running process is filtered before the device is shut down through the target filter combined with the information digest algorithm and the Bloom filter, avoiding the situation in the related technology that the running process is filtered according to the process information recorded in the list before the server is shut down, and the filtering efficiency is low, thereby achieving the technical effect of efficient filtering of the running process before the device is shut down.

[0085] Optionally, in the filtering device for process information provided in the embodiment of the present application, the first processing unit includes: a first processing sub-unit, used to input T first process information into a target filter, and use an information summary algorithm to perform fixed-length processing on each of the T first process information to obtain T target process information, wherein the fixed-length processing is used to process the length of the first process information to a preset length; a second processing sub-unit, used to input the T target process information into a Bloom filter to obtain a filtering result.

[0086] Optionally, in the filtering device for process information provided in the embodiment of the present application, the Bloom filter includes: a target array with a length of m, and the second processing sub-unit includes: a calculation module, which is used to input T target process information into the Bloom filter, and use K hash functions to calculate the target process information to obtain a first calculation result, wherein K is a positive integer; a processing module, which is used to map each target process information to the target array based on the first calculation result, and based on the mapping position of each target process information in the target array, filter out the target process information whose importance value is greater than a preset degree threshold from the T target process information to obtain a filtering result.

[0087] Optionally, in the process information filtering device provided in the embodiment of the present application, the processing module includes: a first determination submodule, used to determine that the importance value of the target process information is not greater than a preset threshold value when the values ​​of the mapping positions of any target process information in the target array are all first preset values; a second determination submodule, used to determine that the importance value of the target process information is greater than a preset threshold value when there is at least one second preset value in the values ​​of the mapping positions of any target process information in the target array; and a third determination submodule, used to determine the filtering result based on the target process information in T target process information whose importance value is greater than the preset threshold value.

[0088] Optionally, in the filtering device for process information provided in the embodiment of the present application, the filtering device for process information also includes: an establishment unit, which is used to establish an initial array with a length of m before inputting T first process information into the target filter to obtain the filtering result, wherein the values ​​at all positions in the initial array are second preset values, and m is greater than the target preset value; a second acquisition unit, which is used to acquire n second process information, wherein the second process information includes: process information of processes whose importance values ​​are not greater than a preset degree threshold, and the length of the n second process information is a preset length; a calculation unit, which is used to calculate each second process information using K hash functions to obtain a second calculation result; a mapping unit, which is used to map each first process information to the initial array based on the second calculation result, and set the value of the target position in the initial array to the first preset value to obtain the target array, wherein the target position includes: the position where the n second process information has a mapping relationship in the initial array.

[0089] Optionally, in the filtering device for process information provided in the embodiment of the present application, the filtering device for process information also includes: a sending unit, which is used to send the filtering results to the terminal device used by the target object after inputting T first process information into the target filter to obtain the filtering results, wherein the target object is used to review the process information in the filtering results; a receiving unit, which is used to receive the review results of the target object using the terminal device, and allow the target device to shut down when the review results indicate that all process information in the filtering results have passed the review; and a second processing unit, which is used to prohibit the target device from shutting down when the review results indicate that any process information in the filtering results has failed the review.

[0090] Optionally, in the filtering device for process information provided in the embodiment of the present application, the filtering device for process information also includes: a determination unit, which is used to determine the process information that has been reviewed and approved by the target object in the filtering results after receiving the review results of the target object using a terminal device, and obtain third process information; an adding unit, which is used to add the third process information to the target array of the target filter when the number of times the third process information has been reviewed and approved by the target object reaches a preset threshold.

[0091] It should be noted that the first acquisition unit 61 and the first processing unit 62 described above correspond to steps S201 to S202 in the first embodiment, and the examples and application scenarios implemented by the two modules and the corresponding steps are the same, but are not limited to the contents disclosed in the first embodiment described above. It should be noted that the above modules or units may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the above modules may also be part of a device and may be run in the computer terminal 10 provided in the first embodiment.

[0092] Embodiment 3

[0093] An embodiment of the present application may provide an electronic device, Figure 7 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 7 As shown, the electronic device may include: one or more ( Figure 7 (only one is shown) processor 702, memory 704, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0094] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0095] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: when it is detected that the shutdown instruction is triggered, obtain the information of the process currently running in the target device to obtain T first process information, wherein the shutdown instruction is used to request the target device to be shut down, and T is a natural number; input the T first process information into the target filter to obtain the filtering result, wherein the target filter at least includes: a filter constructed based on the information summary algorithm and the Bloom filter, and the target filter is used to filter out the process information whose importance value is greater than a preset degree threshold from the T first process information.

[0096] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: input T first process information into the target filter to obtain filtering results, including: input T first process information into the target filter, and use the information summary algorithm to perform fixed-length processing on each of the T first process information to obtain T target process information, wherein the fixed-length processing is used to process the length of the first process information to a preset length; input the T target process information into the Bloom filter to obtain filtering results.

[0097] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: the Bloom filter includes: a target array with a length of m, T target process information is input into the Bloom filter, and a filtering result is obtained, including: T target process information is input into the Bloom filter, and the target process information is calculated using K hash functions to obtain a first calculation result, where K is a positive integer; based on the first calculation result, each target process information is mapped to the target array, and based on the mapping position of each target process information in the target array, the target process information whose importance value is greater than a preset degree threshold is filtered out from the T target process information to obtain a filtering result.

[0098] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: based on the mapping position of each target process information in the target array, filter out the target process information whose importance value is greater than the preset degree threshold from T target process information to obtain the filtering result, including: when the value of the mapping position of any target process information in the target array is a first preset value, determine that the importance value of the target process information is not greater than the preset degree threshold; when the value of the mapping position of any target process information in the target array has at least one second preset value, determine that the importance value of the target process information is greater than the preset degree threshold; determine the filtering result based on the target process information whose importance value is greater than the preset degree threshold among the T target process information.

[0099] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: before inputting T first process information into the target filter to obtain the filtering result, it also includes: establishing an initial array with a length of m, wherein the values ​​at all positions in the initial array are second preset values, and m is greater than the target preset value; obtaining n second process information, wherein the second process information includes: process information of processes whose importance values ​​are not greater than a preset threshold value, and the length of the n second process information is a preset length; using K hash functions to calculate each second process information to obtain a second calculation result; based on the second calculation result, mapping each first process information to the initial array, and setting the value of the target position in the initial array to the first preset value to obtain the target array, wherein the target position includes: the position where the n second process information has a mapping relationship in the initial array.

[0100] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: after inputting T first process information into the target filter to obtain the filtering result, it also includes: sending the filtering result to the terminal device used by the target object, wherein the target object is used to review the process information in the filtering result; using the terminal device to receive the review result of the target object, and when the review result indicates that all process information in the filtering result has passed the review, allowing the target device to shut down; when the review result indicates that any process information in the filtering result has not passed the review, prohibiting the target device from shutting down.

[0101] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: after using the terminal device to receive the review results of the target object, it also includes: determining the process information in the filtering results that has been reviewed and approved by the target object to obtain the third process information; when the number of times the third process information has been reviewed and approved by the target object reaches a preset threshold, the third process information is added to the target array of the target filter.

[0102] By using the embodiment of the present application, a solution for filtering process information is provided. Through the target filter combining the information digest algorithm and the Bloom filter, the running processes are filtered before the device is shut down, avoiding the low filtering efficiency of filtering the running processes according to the process information recorded in the list before the server is shut down in the related technology, thereby achieving the technical effect of efficiently filtering the running processes before the device is shut down. This solves the technical problem of low filtering efficiency of filtering the system processes by using the list method before the server is shut down in the related technology.

[0103] It can be understood by those skilled in the art that Figure 7The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations shown.

[0104] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0105] Embodiment 4

[0106] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the method for filtering process information provided in the first embodiment.

[0107] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0108] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program steps of the process information filtering method.

[0109] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0110] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0111] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0115] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for filtering process information, characterized in that: include: When it is detected that the shutdown instruction is triggered, information of the processes currently running in the target device is obtained to obtain T pieces of first process information, wherein the shutdown instruction is used to request the target device to be shut down, and T is a natural number; Input T pieces of the first process information into a target filter to obtain a filtering result, wherein the target filter at least includes: a filter constructed based on an information summary algorithm and a Bloom filter, and the target filter is used to filter out process information whose importance value is greater than a preset degree threshold from the T pieces of the first process information.

2. The filtering method according to claim 1, characterized in that: Input T pieces of the first process information into the target filter to obtain filtering results, including: Inputting T pieces of the first process information into the target filter, and performing fixed-length processing on each piece of the T pieces of the first process information using the information summary algorithm to obtain T pieces of target process information, wherein the fixed-length processing is used to process the length of the first process information into a preset length; Input T target process information into the Bloom filter to obtain the filtering result.

3. The filtering method according to claim 2, characterized in that: The Bloom filter includes: a target array with a length of m, and T target process information is input into the Bloom filter to obtain the filtering result, including: Inputting T target process information into the Bloom filter, and calculating the target process information using K hash functions to obtain a first calculation result, wherein K is a positive integer; Based on the first calculation result, each target process information is mapped to the target array, and based on the mapping position of each target process information in the target array, the target process information whose importance value is greater than the preset degree threshold is filtered out from the T target process information to obtain the filtering result.

4. The filtering method according to claim 3, characterized in that: Based on the mapping position of each target process information in the target array, the target process information whose importance value is greater than the preset degree threshold is filtered out from the T target process information to obtain the filtering result, including: When the value of the mapping position of any target process information in the target array is the first preset value, determining that the importance value of the target process information is not greater than the preset threshold value; In the case where the value of the mapping position of any of the target process information in the target array has at least one second preset value, determining that the importance value of the target process information is greater than the preset threshold value; The filtering result is determined based on the target process information whose importance value is greater than the preset threshold value in the target process information.

5. The filtering method according to claim 4, characterized in that: Before inputting the T pieces of the first process information into the target filter to obtain the filtering result, the method further includes: Establishing an initial array of length m, wherein the values ​​at all positions in the initial array are the second preset values, and m is greater than the target preset value; Obtaining n second process information, wherein the second process information includes: process information of a process whose importance value is not greater than the preset degree threshold, and the length of the n second process information is the preset length; Using the K hash functions to calculate each of the second process information, to obtain a second calculation result; Based on the second calculation result, each first process information is mapped to the initial array, and the value of the target position in the initial array is set to the first preset value to obtain the target array, wherein the target position includes: n positions where the second process information has a mapping relationship in the initial array.

6. The filtering method according to claim 1, characterized in that: After inputting the T pieces of the first process information into the target filter to obtain the filtering result, the method further includes: Sending the filtering result to a terminal device used by a target object, wherein the target object is used to review the process information in the filtering result; Receiving the audit result of the target object by using the terminal device, and allowing the target device to shut down if the audit result indicates that all process information in the filtering result has passed the audit; When the audit result indicates that any process information in the filtering result fails the audit, the target device is prohibited from shutting down.

7. The filtering method according to claim 6, characterized in that: After receiving the audit result of the target object by using the terminal device, the method further includes: Determine the process information approved by the target object in the filtering results to obtain third process information; When the number of times that the third process information is audited and passed by the target object reaches a preset threshold, the third process information is added to the target array of the target filter.

8. A process information filtering device, characterized in that: include: A first acquisition unit is used to acquire information of processes currently running in the target device when a shutdown instruction is detected to be triggered, and obtain T pieces of first process information, wherein the shutdown instruction is used to request shutdown processing of the target device, and T is a natural number; The first processing unit is used to input the T first process information into a target filter to obtain a filtering result, wherein the target filter at least includes: a filter constructed based on an information summary algorithm and a Bloom filter, and the target filter is used to filter out process information whose importance value is greater than a preset degree threshold from the T first process information.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for filtering process information according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program executes the method for filtering process information as described in any one of claims 1 to 7 when running.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the process information filtering method described in any one of claims 1 to 7 are implemented.