Equipment state monitoring method and related device
By using the first device to monitor the performance index data of the second device during chip design or research and development, and analyzing and determining the usage status of the third device, the problem of high terminal device management and communication costs is solved, and the utilization of hardware simulation equipment is improved. rate and efficiency.
Patent Information
- Application Number
- CN202310397224.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In chip design or research and development, multiple terminal devices establish communication connections with simulation hardware devices through serial ports or interfaces, resulting in high management and communication costs and low efficiency. It is difficult to effectively monitor the status of hardware simulation devices, resulting in unreasonable resource usage.
Establish a communication connection between the first device and the second device, obtain performance indicator data, perform data analysis and processing, determine the usage status of the third device, including idle and active status, and feed the results back to the user to realize the operation of the third device process Highly accurate monitoring of jitter conditions.
It reduces management and communication costs, improves the actual utilization of hardware simulation equipment, reduces the company's operating and procurement costs, and improves the rational allocation and use efficiency of resources.
Smart Images

Figure CN118796583A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a device status monitoring method and related devices. Background Art
[0002] In actual applications, simulation hardware devices used for chip design or development are often connected to multiple terminal devices through serial ports or interfaces, and the use of simulation hardware device resources is controlled by terminal device users. Since there are a large number of terminal devices and they are relatively scattered in space, and the purchase cost and maintenance cost of hardware simulation hardware devices are high, obtaining the working status of the terminal devices through on-site observation to determine whether the status of the hardware simulation hardware devices is occupied will result in high management costs and communication costs for developers of various terminal devices, and low efficiency.
[0003] Therefore, there is an urgent need for a method to solve the problems of high cost, low efficiency, low efficiency and unreasonable resource occupation generated in the above-mentioned equipment status monitoring process. Summary of the invention
[0004] The embodiment of the present application provides a device status monitoring method and related apparatus, which can obtain the performance indicator data of the second device to monitor the jitter of its process during operation, and after a series of analyses and mathematical calculations, accurately determine whether the third device is in an occupied state, and feed back the usage status of the third device to the user.
[0005] In a first aspect, an embodiment of the present application provides a device status monitoring method, which is applied to a first device, wherein the first device establishes a communication connection with at least one second device;
[0006] The method comprises:
[0007] Acquire at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize a change in a corresponding performance parameter of each second device when using resources of a third device;
[0008] Performing data analysis on the at least one performance indicator data set to obtain an analysis result;
[0009] Determining a usage state of the third device according to the analysis result, wherein the usage state includes an idle state and an active state;
[0010] The usage status is output.
[0011] In a second aspect, an embodiment of the present application provides a device status monitoring apparatus, which is applied to a first device, wherein the first device establishes a communication connection with a second device, and the first device includes at least one application program;
[0012] The device comprises: an acquisition unit, an analysis unit, a determination unit and an output unit; wherein,
[0013] The acquisition unit is used to acquire at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize a change in a corresponding performance parameter of each second device when using resources of a third device;
[0014] The analysis unit is used to perform data analysis on the at least one performance indicator data set to obtain an analysis result;
[0015] The determining unit is configured to determine a usage state of the third device according to the analysis result, wherein the usage state includes an idle state and an active state;
[0016] The output unit is used to output the usage status.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0020] It can be seen that in the embodiment of the present application, the first device obtains at least one performance indicator data set of the second device, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize the occupation of each resource in the third device by the process corresponding to each second device; data analysis and processing are performed on at least one performance indicator data set to obtain analysis results; the use status of the third device is determined according to the analysis results, wherein the use status includes an idle state and an active state; and the use status is output. In this way, it is possible to monitor the jitter of the process when it is running by obtaining the performance indicator data of the second device by the first device, and determine whether the third device is in an occupied state with high accuracy after a series of analysis and mathematical calculations, and feedback the use status of the third device to the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.
[0022] Figure 1 It is a schematic diagram of the system architecture of a device status monitoring method provided in an embodiment of the present application;
[0023] Figure 2 It is a flow chart of a device status monitoring method provided in an embodiment of the present application;
[0024] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0025] Figure 4 It is a block diagram of the functional units of a device status monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] 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 are within the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] The electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch, smart glasses, a smart helmet), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an IOS system, an Android system, a Microsoft system, or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop), etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may also be the first device and the second device in the present application scheme.
[0030] Figure 1 A schematic diagram of the system architecture of a device status monitoring method applicable to the present application scheme, specifically, Figure 1 As shown, the first device 100 establishes a communication connection with the second device 200, wherein the first device and the second device in the present application scheme can be any one of the above-mentioned electronic devices, and the second device 200 includes one or more, and the specified client software can be pre-installed in one or more second devices 200, and the second device 200 establishes a communication connection with the third device 300 via a serial port or a network.
[0031] It should be noted that in actual use scenarios, R&D personnel or engineers can use resources of one or more third devices 300 only through one second device 200. That is, install the corresponding client software on one second device 200, and use the corresponding client software to control and utilize resources of one or more third devices 300. Alternatively, install the corresponding client software on multiple second devices 200 respectively, select the target second device 200 to connect with the target third device 300 and utilize resources.
[0032] For example, if the current connection between the second device 200 and the third device 300 needs to be achieved through a hardware device such as a USB cable to achieve communication connection, the first device 100 determines whether the second device 200 is still using the resources of the third device 300 by monitoring the changes in the performance parameters of the second device 200. If it is determined that the resources of the second device 200 have been used up, the user is notified to remove the USB cable or replace the next second device 200 for connection. Specifically, it can be adjusted according to the actual usage, and is not specifically limited here.
[0033] Specifically, after the R&D personnel or engineers use client software such as t32, sscom, Xshell, etc. on the second device 200 to establish a connection with the third device 300, the resource occupation of the third device 300 is realized. The R&D personnel or engineers control the third device 300 through the client software of the second device 200. At this time, the various resources of the second device 200 will fluctuate in parameter indicators due to the operation and control of the third device 300 by the client software. The first device 100 determines whether the second device 200 is still occupying the third device 300 based on the various parameter indicators.
[0034] Furthermore, the first device 100 obtains the performance indicator data of the second device 200 used by the above-mentioned R&D personnel or engineers, and performs data analysis on the obtained performance indicator data to determine the occupancy of the third device 300 achieved by the R&D personnel or engineers through the client software in the second device 200. Specifically, the occupancy is reflected by the performance parameter changes caused by the client software during the use of the second device 200.
[0035] Exemplarily, the third device 300 can be a very expensive simulation hardware device such as HAPS that is used in related industries such as chip design and research and development. The operation and use of these devices and the human-computer data interaction usually rely on the second device 200 (any one of the terminal devices) connected thereto. Due to the high price of the third device 300 and supporting services, if the first device can be used to promptly know the engineer's use status and equipment utilization rate of the third device 300 through the second device 200, and provide a decision-making basis for managers to reasonably allocate hardware usage resources and make procurement needs, the actual utilization rate of the third device 300 can be effectively improved, thereby significantly reducing the company's operating and procurement costs.
[0036] It should be noted that Figure 1 The one or more second devices 200 shown are for the purpose of helping everyone understand that R&D personnel or engineers can select different types of electronic devices to establish connections with the third device 300, and remotely utilize the device resources of the third device 300 by installing corresponding client software on the second device 200. The second device 200 monitored by the first device 100 is a second device 200 being used by the R&D personnel or engineers.
[0037] In order to better understand the solution of the present application, the solution will be described in detail below.
[0038] See also Figure 2 , Figure 2 is a flow chart of a device status monitoring method provided in an embodiment of the present application, which is applied to a first device, wherein the first device establishes a communication connection with a second device; Figure 2 As shown, the equipment status monitoring method includes the following operations:
[0039] S201. Obtain at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize changes in corresponding performance parameters of each second device when using resources of a third device.
[0040] For example, Figure 1 In the system architecture, a first device establishes a communication connection with a second device. At least one second device can establish a communication connection with a third device through a designated client software, and a developer or engineer can select a second device to utilize the resources of the third device.
[0041] Specifically, after the second device establishes a communication connection with the third device through the client software, each second device is regarded as a process, which achieves the engineer's research and development goals by occupying the resources of the third device, including but not limited to: CPU resources, threads, input / output resources, etc.
[0042] For example, when the process corresponding to the second device uses the third device, corresponding performance indicator data will be generated. These performance indicator data are used to reflect the occupation of the above-mentioned various resources. When the engineer uses the client software on the second device, the occupation of the second device's own resources is completely different from when it is idle, for example: the occupation of CPU and memory, the change in the amount and rate of I / O transmission data, the change in the number of threads, etc. When the staff controls and uses the third device on the second device, the software performance parameters of the second device will also change accordingly. The first device analyzes and calculates the performance parameter changes caused by the software on the second device, and then determines whether the third device is being connected and controlled by a second device.
[0043] Furthermore, the first device obtains performance indicator data of at least one second device by establishing a communication connection with the second device.
[0044] Specifically, the performance indicator data includes the corresponding values of the above-mentioned various resources when they change over time, and the data representing the occupancy of various resources is obtained in real time. In practical applications, if the first device obtains the data corresponding to various resources in a continuous manner in real time, the data corresponding to each type of resource can be represented by a curve chart with the horizontal axis being time and the vertical axis being the occupancy changing over time. Alternatively, the performance indicator data is obtained at each time sampling point to obtain the performance indicator data corresponding to each time sampling point.
[0045] Exemplarily, at least one second device takes three second devices as an example, and the three second devices respectively correspond to process A, process B, and process C. Then the performance indicator data corresponding to processes A, B, and C respectively include but are not limited to data corresponding to CPU resource occupancy, I / O resource occupancy, and thread resource occupancy, that is, the performance indicator data sets corresponding to processes A, B, and C respectively constitute at least one performance indicator data set acquired by the first device.
[0046] S202: Perform data analysis on the at least one performance indicator data set to obtain an analysis result.
[0047] Exemplarily, the first device outputs the analysis result after a series of analysis and mathematical calculations on at least one performance indicator data set obtained, wherein the analysis result is mainly determined by a series of analysis and mathematical calculations, and the data jitter of each performance indicator data at each sampling time point is reflected according to the calculation result. Generally speaking, the more obvious the jitter is, the greater the change of the indicator at the sampling time point, that is, the resource occupancy changes more obviously, indicating that the process is in a working state. If the jitter is not obvious or significant, it indicates that the resource occupancy is relatively stable or not occupied at the sampling time point, indicating that the process is in an idle state.
[0048] S203: Determine a usage status of the third device according to the analysis result, wherein the usage status includes an idle state and an active state.
[0049] Furthermore, the analysis result obtained in step S202 is used to determine the usage status of the third device with high accuracy, that is, the usage status of the third device is determined according to the working status of each process.
[0050] S204: Output the usage status.
[0051] For example, the first device feeds back to the device manager or other engineer whether the third device is being effectively used by the engineer or other user. In turn, the device manager can determine whether to purchase additional devices based on the usage status, and other engineers can determine whether they can use or queue up for use based on whether the third device is currently being used.
[0052] It can be seen that the first device obtains at least one performance indicator data set of the second device, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize the occupation of each resource in the third device by the process corresponding to each second device; performs data analysis and processing on at least one performance indicator data set to obtain an analysis result; determines the usage status of the third device according to the analysis result, wherein the usage status includes an idle state and an active state; and outputs the usage status. In this way, it is possible to monitor the jitter of the process when it is running by obtaining the performance indicator data of the second device by the first device, and determine whether the third device is in an occupied state with high accuracy after a series of analysis and mathematical calculations, and feedback the usage status of the third device to the user.
[0053] In one possible example, the data analysis processing includes unit conversion processing; the data analysis processing is performed on the at least one performance indicator data set, and the method also includes the following steps: performing the unit conversion processing on the performance indicator data in each performance indicator data set to obtain a first data set, so as to enable the data in the first data set to evaluate the occupancy of each resource by each process under the same usage unit.
[0054] For example, when the process of the second device is running idle, the indicator data corresponding to various resources will still have a slight jitter. In order to filter out this interference, the first device converts the usage units of the data in the original indicator data set, such as memory and I / O usage units, from Byte to MB, thereby achieving evaluation under the same usage unit.
[0055] It can be seen that through the example of this application, by unifying the usage units into the same one, it is possible to reduce the interference of data jitter on the calculation, thereby improving the accuracy of the final analysis.
[0056] In a possible example, the data analysis process also includes differential calculation and standardization processing; after obtaining the first data set, the method also includes the following steps: performing window processing on the first data set according to a preset time length to obtain a first data subset corresponding to each process in at least one time window, wherein the preset time length is a time period of a preset length; performing segmentation processing on the first data subset corresponding to each time window to obtain at least one piece of data corresponding to each time window, wherein each piece of data in the at least one piece of data corresponds to the same time interval; performing the differential calculation based on the at least one piece of data to obtain a second data subset corresponding to each time window, wherein the second data subset is used to characterize the change between each piece of data corresponding to adjacent time periods of the process corresponding to the first data subset in each time window; performing the standardization processing based on each of the second data subsets to obtain a second data set, wherein the second data set includes at least one standard value corresponding to each resource occupied by each process, and the standard value is used to achieve the characterization of the occupancy of each resource in the same dimension.
[0057] Exemplarily, according to the regular usage scenarios of the second device including: time windows of software startup, work running, short break, and end of work, the duration corresponding to this cycle is used as the preset duration, for example: half an hour, 1 hour, etc., and the preset duration is used as a sliding window, and the collected data is processed in windows according to the sliding window to obtain at least one time window with the preset duration as the unit, and each time window corresponds to a set of indicator data, namely, the first data subset.
[0058] Furthermore, the first device performs segmentation processing on the sliding window corresponding to each preset time length, and divides the data in the sliding window into one or more segments at the same time interval, and each time interval corresponds to a piece of data, so as to obtain a second data subset.
[0059] Furthermore, a difference calculation is performed based on the second data subset, that is, a piece of data corresponding to each two adjacent time intervals is selected in turn, and a difference calculation is performed based on the absolute amount of the two pieces of data corresponding to the adjacent time intervals to obtain the change amount d of the data in the adjacent time intervals:
[0060] d i =|h i |-|h i-1 |
[0061] Among them, h iRepresents the i-th piece of data in the sliding window.
[0062] It should be noted that when the process corresponding to the second device is working, the corresponding indicator data at different sampling time points will change. This change is presented by the indicator data according to the different requirements for various resources during the actual operation process. In a continuous sampling interval, the indicator data of each sampling time point is increased or decreased based on the indicator data of the previous sampling point. Therefore, in order to obtain the increase or decrease of the indicator data of adjacent sampling time points, it is determined by calculating the change amount.
[0063] Exemplarily, taking the CPU indicator data corresponding to process A as an example, if the CPU indicator data of process A obtained by the first device is the indicator data within 0-200 minutes. First, the first device performs window processing on the CPU indicator data of 0-240 minutes with a preset duration of 60 minutes, and obtains the CPU indicator data corresponding to 4 sliding time windows, that is, 4 first data subsets. Then, each first data subset is segmented, for example, with 5 minutes as a segment, then each first data subset can be divided into 12 segments of CPU indicator data collected at adjacent time intervals, that is, the second data subset. Finally, select the CPU indicator data of every two adjacent time intervals for differential calculation. For example: data sampling is performed once every 5 minutes, then the absolute amount of the CPU indicator data in the last 5 minutes is subtracted from the absolute amount of the previous 5 minutes to obtain the change d for this 5-minute period.
[0064] Exemplarily, the processing flow of the difference calculation of other indicator data is similar to the above process and will not be described in detail here.
[0065] Furthermore, the first device performs standardization processing based on the result of differential calculation of each indicator data corresponding to each process, that is, the indicator data with different units and orders of magnitude are pulled into the same range through a normalization function, and the characteristics of each data after standardization will not change.
[0066] For example, the Sigmoid function is used in the example of this application to pull the value range of the original data to between -1 and 1, and obtain f i :
[0067] For example, the Sigmoid function is used in the example of this application to pull the value range of the original data to between -1 and 1, and obtain f i :
[0068]
[0069] Among them, d i is the difference value calculated above, and e is the irrational number constant in the formula.
[0070] It can be seen that in this example, the first device performs differential calculation and standardization on the indicator data corresponding to each process, and finally brings the indicator data with different units and orders of magnitude into the same range, and the characteristics of the data after standardization will not change. Then, the evaluation is performed based on the standardized data to obtain a fairer and more accurate result.
[0071] In a possible example, the data analysis processing also includes standard deviation calculation; after obtaining the second data set, the method also includes the following steps: determining, based on the second data set, an average value corresponding to at least one standard value corresponding to each of the resources occupied by each of the processes; performing the standard deviation calculation based on the average value and the at least one standard value to determine a third data set, wherein each standard deviation value included in the third data set is used to characterize the degree of jitter in the occupancy of each of the resources by each process over time, and the larger the standard deviation value, the greater the degree of jitter.
[0072] Exemplarily, the first device calculates the standard deviation of each performance indicator data after the standardization process, wherein the standard deviation value can reflect the degree of dispersion of a group of sample data, that is, the degree of jitter of each of them can be known, and the larger the value, the greater the jitter.
[0073] Specifically, the first device calculates the standard deviation σ according to the following formula:
[0074]
[0075] Where μ is f i The average number of, n is the number of samples in the time window, that is, the number of segments in each sliding window, f i is the standard value obtained from the above calculation.
[0076] For example, taking the above CPU indicator data as an example, the difference d corresponding to the CPU indicator data is calculated respectively. i , and according to d i Determine f i One of the sliding time windows is divided into 12 segments, that is, the number of sampling is 12. According to each f i The average μ is calculated, and finally, according to μ, n and f i Determine the standard deviation value corresponding to the CPU indicator data of process A.
[0077] Exemplarily, the first device calculates the standard deviation value corresponding to each indicator data of each process in sequence according to the above-mentioned example process to obtain a fourth data set consisting of at least one standard deviation value.
[0078] It can be seen that in this example, the first device calculates the standard deviation of each indicator data after standard processing to obtain the standard deviation value corresponding to each indicator data corresponding to each process. Then, the jitter degree of the data can be evaluated by the standard deviation value, and then the discrete degree of each indicator data in the time window can be determined.
[0079] In a possible example, the data analysis processing also includes a status score calculation; after determining the third data set, the method specifically includes the following steps: setting the weights corresponding to each resource occupied by each process respectively; performing the status score calculation according to the weight and each standard deviation value, determining the status score corresponding to each process respectively, and obtaining the fourth data set.
[0080] For example, since the processes corresponding to different second devices have an impact on various computer performance indicators in actual work, but the occupancy is different, for example, the process with more local calculations has high CPU and memory occupancy, but the I / O transmission data volume is small; the second device that frequently communicates with other devices has a small impact on the local CPU and memory, but the I / O transmission data volume is large. Therefore, when calculating the final state of a process of a second device, it cannot be reflected only by the standard deviation value of a certain performance indicator.
[0081] Specifically, the scheme proposed in this application assigns weights to each indicator according to simple objective importance by way of weighting, and the sum is 100%. Taking the A process corresponding to the second device as an example, different weights ω are set for each resource or its corresponding indicator data, and the calculation method of the final status score corresponding to the A process is:
[0082]
[0083] Among them, σ is the standard deviation of each performance indicator calculated above, ω is the weight of each performance indicator, and N is the number of performance indicator types involved in the calculation.
[0084] An example of expanding the above formula:
[0085] Score a =σ cpu ω cpu +σ mem ω mem +σ I / O ω I / O +σ other ω other
[0086] That is, after the standard deviation values and weights of the performance indicator data of various resources corresponding to process A are multiplied and calculated, the accumulation is the final status score of process A.
[0087] Furthermore, the first device calculates the status score of each process corresponding to the second device according to the above calculation method to obtain a fourth data set.
[0088] It can be seen that in this example, the first device sets different weights according to the different application scenarios focused on by different second devices, so as to more accurately calculate the status score of the process corresponding to each second device and combine it with the actual situation. The status score calculation result is used for the subsequent evaluation and determination of the status of each process, and finally the usage status of the third device is obtained more accurately.
[0089] In a possible example, after obtaining the fourth data set, the above method may further include the following steps: determining a state boundary value for each of the processes, wherein the state boundary value is used to distinguish the state of each of the processes, and the state of each of the processes includes a working state and an idle state; obtaining the analysis result according to the state boundary value and the state score of each of the processes, wherein the analysis result is used to characterize the state of each of the processes; determining the usage state of the third device according to the state of each of the processes; if the state of any of the processes is the working state, determining the usage state of the third device to be the occupied state; if the state of each of the processes is the idle state, determining the usage state of the third device to be the unoccupied state.
[0090] Exemplarily, the first device obtains the weighted standard deviation value, ie, the state score, of the process corresponding to each second device at each sampling time point through the above state score calculation process.
[0091] Furthermore, the first device determines a state demarcation point of each second device respectively, wherein the state demarcation point is used to determine whether the process corresponding to the second device is currently in a working state or an idle state.
[0092] In a possible example, a possible method for the first device to determine the state demarcation point is to obtain sample data corresponding to the daily working state and idle state of each second device, and obtain sample data generated by different second device users in daily use, such as sample data generated by engineers, managers, and other users when using the second device, as control data.
[0093] Furthermore, the first device performs a comparison verification based on the acquired sample data and the control data to determine the state demarcation point of each second device. That is, when the state score of the second device is greater than or equal to a certain value, the corresponding process is basically in a working state at these sampling time points; when it is less than a certain value, the process is in an idle state at these sampling points, and the first device determines the value as the state demarcation point of the process corresponding to the second device, for example, determining it as the state demarcation point Δ of the A process corresponding to the second device.a .
[0094] Further, the first device analyzes the state of process A at the sampling point in time according to the state score of process A sampled at each or random time, and obtains the analysis result. That is, when the state score is greater than Δ a When the state is less than or equal to Δ a When , it indicates slight jitter or no jitter and is in idle state.
[0095] In another possible example, the first device may also adjust the state demarcation point value by introducing a confusion matrix to make the final state judgment more accurate.
[0096] Furthermore, the first device determines the working state of the third device according to the state corresponding to each process. That is, if any process corresponding to the second device is in the working state, it indicates that the second device is using the device resources of the third device, and the use state of the third device is occupied, that is, active.
[0097] If the processes corresponding to each second device are in an idle state, it indicates that the third device is in a non-occupied state, that is, the device resources of the third device are idle, and at this time the third device can be accessed and used by any second device.
[0098] It can be seen that in this example, the first device first determines the state demarcation point for determining the process corresponding to the second device based on the sample data of different second devices, and further determines the usage state of the third device at the sampling time point based on the state of the process corresponding to each second device. In this way, it can be achieved that the state demarcation point is determined by differentiation, and the state of each process can be determined better and more accurately, avoiding the use of a unified standard to measure the state of the processes corresponding to different second devices, thereby improving the accuracy of determining the working state of the third device.
[0099] In one possible example, the output of the usage status, the above method may also include the following steps: in response to a user's access request, displaying the usage status on an access interface of the first device; or, sending result information including the usage status to the user through a preset interface, wherein the preset interface is used for the electronic device used by the user to establish a communication connection with the first device.
[0100] Specifically, the purpose of the first device determining the usage status of the third device is to allow engineers or managers to understand the current usage status of the third device more accurately, quickly and conveniently, and use the usage status as a reference for subsequent work. Therefore, after determining the usage status of the third device, the first device needs to transmit the usage status result to the user.
[0101] Specifically, the first device may respond to an access request from the user, wherein the access request includes a device identifier of a third device known in advance by the user and data information that the user desires to obtain, such as a usage status of the target third device.
[0102] Furthermore, the usage status of the third device included in the user's access request is displayed on the access interface. For example, engineers, managers, etc. access the browsing interface of their respective terminal devices, and after the first device receives the access request, the corresponding result information is displayed on the browsing interface, and the result information includes the usage status of the third device.
[0103] Alternatively, after determining the usage status of the third device according to a preset interface or a user preset email address, etc., the first device sends it to the terminal device on the user side through a preset interface or email address.
[0104] In a possible example, the first device can also introduce a deep learning model based on the output usage status of the third device. In a given business scenario, the possible active or idle time period of the third device in the future can be calculated and derived through the existing performance indicator data, thereby assisting engineers to make work arrangements in advance or to manage the queues for the second device to use the third device. This can better improve the resource utilization of the third device, save the time cost of the second device users, and improve the work efficiency of the second device users.
[0105] It can be seen that in this example, the first device determines the usage status of the third device through the obtained performance indicator data, and outputs the result information to the user through the interface or the user's active acquisition, which indirectly realizes the remote real-time feedback of the working status of high-value equipment and reduces repeated manpower input. In addition, the enterprise that receives the result information fed back by the first device can manage equipment resources according to its own needs, calculate the utilization rate, and thus formulate a more reasonable resource allocation strategy and equipment procurement budget, effectively reducing costs.
[0106] See also Figure 3 , Figure 3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 3 As shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, which are applied to the first device and / or the second device in the solution of the present application.
[0107] Optionally, if the electronic device is a first device, the one or more programs are stored in the memory, and the one or more programs are configured to cause the processor to execute the following steps:
[0108] Acquire at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize a change in a corresponding performance parameter of each second device when using resources of a third device;
[0109] Performing data analysis on the at least one performance indicator data set to obtain an analysis result;
[0110] Determining a usage state of the third device according to the analysis result, wherein the usage state includes an idle state and an active state;
[0111] The usage status is output.
[0112] It can be seen that the electronic device described in the embodiment of the present application obtains at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize the occupation of each resource in the third device by the process corresponding to each second device; performs data analysis and processing on at least one performance indicator data set to obtain an analysis result; determines the usage status of the third device according to the analysis result, wherein the usage status includes an idle state and an active state; and outputs the usage status. In this way, it is possible to obtain the performance indicator data of the second device through the first device to monitor the jitter of its process during operation, and determine whether the third device is in an occupied state with high accuracy after a series of analysis and mathematical calculations, and feedback the usage status of the third device to the user.
[0113] In one possible example, the data analysis process includes a unit conversion process;
[0114] The data analysis and processing of the at least one performance indicator data set is performed, and the program includes instructions for executing the following steps:
[0115] The unit conversion process is performed on the performance indicator data in each performance indicator data set to obtain a first data set, so as to enable the data in the first data set to evaluate the occupancy of each resource by each process under the same usage unit.
[0116] In a possible example, the data analysis process further includes difference calculation and standardization processing;
[0117] After obtaining the first data set, the program includes instructions for executing the following steps:
[0118] Performing window processing on the first data set according to a preset time length to obtain a first data subset corresponding to each process in at least one time window, wherein the preset time length is a time period of a preset length;
[0119] Performing segmentation processing on the first data subset corresponding to each of the time windows to obtain at least one piece of data corresponding to each of the time windows, wherein each piece of data in the at least one piece of data corresponds to the same time interval;
[0120] Performing the difference calculation according to the at least one piece of data to obtain a second data subset corresponding to each of the time windows, wherein the second data subset is used to characterize the amount of change between each piece of data corresponding to adjacent time periods of the process corresponding to the first data subset in each of the time windows;
[0121] The standardization processing is performed on each of the second data subsets to obtain a second data set, wherein the second data set includes at least one standard value corresponding to each of the resources occupied by each of the processes, and the standard value is used to characterize the occupancy of each of the resources within the same dimension.
[0122] In one possible example, the data analysis process further includes standard deviation calculation;
[0123] After obtaining the second data set, the program includes instructions for executing the following steps:
[0124] Determine, according to the second data set, an average value corresponding to at least one standard value corresponding to each resource occupied by each process;
[0125] The standard deviation is calculated based on the average value and the at least one standard value to determine a third data set, wherein each standard deviation value included in the fourth data set is used to characterize the degree of jitter in the occupancy of each resource by each process over time, and the larger the standard deviation value, the greater the degree of jitter.
[0126] In a possible example, the data analysis process further includes state score calculation;
[0127] After determining the third data set, the program includes instructions for executing the following steps:
[0128] Setting weights corresponding to each resource occupied by each process respectively;
[0129] The status score is calculated according to the weight and each standard deviation value, and the status score corresponding to each process is determined to obtain a fourth data set.
[0130] In a possible example, after obtaining the fourth data set, the program includes instructions for executing the following steps:
[0131] Determine a state demarcation value of each of the processes, wherein the state demarcation value is used to distinguish the state of each of the processes, and the state of each of the processes includes a working state and an idle state;
[0132] Obtaining the analysis result according to the state boundary value and the state score of each process, wherein the analysis result is used to characterize the state of each process;
[0133] Determining a usage status of the third device according to a status of each of the processes;
[0134] If the state of any of the processes is the working state, determining that the use state of the third device is the occupied state;
[0135] If the state of each of the processes is the idle state, it is determined that the usage state of the third device is the unoccupied state.
[0136] In a possible example, the outputting of the usage status, the program includes instructions for executing the following steps:
[0137] In response to a user's access request, displaying the usage status on an access interface of the first device; or,
[0138] The result information including the usage status is sent to the user through a preset interface, wherein the preset interface is used for the electronic device used by the user to establish a communication connection with the first device.
[0139] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0140] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0141] In the case of dividing each functional module into corresponding functional modules, Figure 4 A schematic diagram of a device status monitoring device is shown. Figure 4 As shown, it is applied to a first device, the first device establishes a communication connection with a second device, and the first device includes at least one application program; the apparatus includes: an acquisition unit 401, an analysis unit 402, a determination unit 403 and an output unit 404; wherein,
[0142] The acquisition unit 401 is used to acquire at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize the change of the corresponding performance parameter of each second device when using the third device resources;
[0143] The analysis unit 402 is used to perform data analysis on the at least one performance indicator data set to obtain an analysis result;
[0144] The determining unit 403 is configured to determine a usage state of the third device according to the analysis result, wherein the usage state includes an idle state and an active state;
[0145] The output unit 404 is used to output the usage status.
[0146] It can be seen that in the device status monitoring device provided by the embodiment of the present application, the first device obtains at least one performance indicator data set through the acquisition unit, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize the occupation of each resource in the third device by the process corresponding to each second device; the at least one performance indicator data set is subjected to data analysis and processing by the analysis unit to obtain the analysis result; the use status of the third device is determined according to the analysis result by the determination unit, wherein the use status includes the idle state and the active state; and the use status is output by the output unit. In this way, it is possible to monitor the jitter of the process when it is running by acquiring the performance indicator data of the second device through the first device, and to determine whether the third device is in an occupied state with high accuracy after a series of analysis and mathematical calculations, and to feed back the use status of the third device to the user.
[0147] In one possible example, the data analysis process includes a unit conversion process;
[0148] The data analysis and processing of the at least one performance indicator data set is performed, and the analysis unit 402 is further used for:
[0149] The unit conversion process is performed on the performance indicator data in each performance indicator data set to obtain a first data set, so as to enable the data in the first data set to evaluate the occupancy of each resource by each process under the same usage unit.
[0150] In a possible example, the data analysis process further includes difference calculation and standardization processing;
[0151] After obtaining the first data set, the analysis unit 402 is further used to:
[0152] Performing window processing on the first data set according to a preset time length to obtain a first data subset corresponding to each process in at least one time window, wherein the preset time length is a time period of a preset length;
[0153] Performing segmentation processing on the first data subset corresponding to each of the time windows to obtain at least one piece of data corresponding to each of the time windows, wherein each piece of data in the at least one piece of data corresponds to the same time interval;
[0154] Performing the difference calculation according to the at least one piece of data to obtain a second data subset corresponding to each of the time windows, wherein the second data subset is used to characterize the amount of change between each piece of data corresponding to adjacent time periods of the process corresponding to the first data subset in each of the time windows;
[0155] The standardization processing is performed on each of the second data subsets to obtain a second data set, wherein the second data set includes at least one standard value corresponding to each of the resources occupied by each of the processes, and the standard value is used to characterize the occupancy of each of the resources within the same dimension.
[0156] In one possible example, the data analysis process further includes standard deviation calculation;
[0157] After obtaining the second data set, the analysis unit 402 is further used to:
[0158] Determine, according to the second data set, an average value corresponding to at least one standard value corresponding to each resource occupied by each process;
[0159] The standard deviation is calculated based on the average value and the at least one standard value to determine a third data set, wherein each standard deviation value included in the third data set is used to characterize the degree of jitter in the occupancy of each resource by each process over time, and the larger the standard deviation value, the greater the degree of jitter.
[0160] In a possible example, the data analysis process further includes state score calculation;
[0161] After determining the third data set, the analysis unit 402 is further configured to:
[0162] Setting weights corresponding to each resource occupied by each process respectively;
[0163] The status score is calculated according to the weight and each standard deviation value, and the status score corresponding to each process is determined to obtain a fourth data set.
[0164] In a possible example, after obtaining the fourth data set, the analyzing unit 402 is further configured to:
[0165] Determine a state demarcation value of each of the processes, wherein the state demarcation value is used to distinguish the state of each of the processes, and the state of each of the processes includes a working state and an idle state;
[0166] Obtaining the analysis result according to the state boundary value and the state score of each process, wherein the analysis result is used to characterize the state of each process;
[0167] Determining a usage status of the third device according to a status of each of the processes;
[0168] If the state of any of the processes is the working state, determining that the use state of the third device is the occupied state;
[0169] If the state of each of the processes is the idle state, it is determined that the usage state of the third device is the unoccupied state.
[0170] In a possible example, the outputting of the usage status, the output unit 404 is further used for:
[0171] In response to a user's access request, displaying the usage status on an access interface of the first device; or,
[0172] The result information including the usage status is sent to the user through a preset interface, wherein the preset interface is used for the electronic device used by the user to establish a communication connection with the first device.
[0173] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0174] The electronic device provided in this embodiment is used to execute the above dual-core control method, and thus can achieve the same effect as the above implementation method.
[0175] In the case of using an integrated unit, the electronic device may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the electronic device, for example, it can be used to support the electronic device to execute the steps performed by the above-mentioned acquisition unit 401, analysis unit 402, determination unit 403 and output unit 404. The storage module can be used to support the electronic device to execute stored program codes and data, etc. The communication module can be used to support the communication between the electronic device and other devices.
[0176] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0177] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0178] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0179] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0180] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0181] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as 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, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0182] The units described above 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.
[0183] 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.
[0184] If the above-mentioned 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 memory. Based on this understanding, the technical solution of the present application is essentially 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 memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0185] A person skilled 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 related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0186] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A device status monitoring method, applied to a first device, characterized in that: The first device establishes a communication connection with at least one second device; The method comprises: Acquire at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize a change in a corresponding performance parameter of each second device when using resources of a third device; Performing data analysis on the at least one performance indicator data set to obtain an analysis result; Determining a usage state of the third device according to the analysis result, wherein the usage state includes an idle state and an active state; The usage status is output.
2. The method according to claim 1, characterized in that The data analysis process includes unit conversion process; The performing data analysis and processing on the at least one performance indicator data set includes: The unit conversion process is performed on the performance indicator data in each performance indicator data set to obtain a first data set, so as to enable the data in the first data set to evaluate the occupancy of each resource by each process under the same usage unit.
3. The method according to claim 2, characterized in that The data analysis process also includes differential calculation and standardization processing; After obtaining the first data set, the method further includes: Performing window processing on the first data set according to a preset time length to obtain a first data subset corresponding to each process in at least one time window, wherein the preset time length is a time period of a preset length; Performing segmentation processing on the first data subset corresponding to each of the time windows to obtain at least one piece of data corresponding to each of the time windows, wherein each piece of data in the at least one piece of data corresponds to the same time interval; Performing the difference calculation according to the at least one piece of data to obtain a second data subset corresponding to each of the time windows, wherein the second data subset is used to characterize the amount of change between each piece of data corresponding to adjacent time periods of the process corresponding to the first data subset in each of the time windows; The standardization processing is performed on each of the second data subsets to obtain a second data set, wherein the second data set includes at least one standard value corresponding to each of the resources occupied by each of the processes, and the standard value is used to characterize the occupancy of each of the resources within the same dimension.
4. The method according to claim 3, characterized in that The data analysis process also includes standard deviation calculation; After obtaining the second data set, the method further includes: Determine, according to the second data set, an average value corresponding to at least one standard value corresponding to each resource occupied by each process; The standard deviation is calculated based on the average value and the at least one standard value to determine a third data set, wherein each standard deviation value included in the third data set is used to characterize the degree of jitter in the occupancy of each resource by each process over time, and the larger the standard deviation value, the greater the degree of jitter.
5. The method according to claim 4, characterized in that The data analysis process also includes state score calculation; After determining the third data set, the method further includes: Setting weights corresponding to each resource occupied by each process respectively; The status score is calculated according to the weight and each standard deviation value, and the status score corresponding to each process is determined to obtain a fourth data set.
6. The method according to claim 5, characterized in that After obtaining the fourth data set, the method further includes: Determine a state demarcation value of each of the processes, wherein the state demarcation value is used to distinguish the state of each of the processes, and the state of each of the processes includes a working state and an idle state; Obtaining the analysis result according to the state boundary value and the state score of each process, wherein the analysis result is used to characterize the state of each process; Determining a usage status of the third device according to a status of each of the processes; If the state of any of the processes is the working state, determining that the use state of the third device is the occupied state; If the state of each of the processes is the idle state, it is determined that the usage state of the third device is the unoccupied state.
7. The method according to claim 1, characterized in that The outputting the usage status includes: In response to a user's access request, displaying the usage status on an access interface of the first device; or, The result information including the usage status is sent to the user through a preset interface, wherein the preset interface is used for the electronic device used by the user to establish a communication connection with the first device.
8. A device status monitoring device, applied to a first device, characterized in that: The first device establishes a communication connection with the second device, and the first device includes at least one application; The device comprises: an acquisition unit, an analysis unit, a determination unit and an output unit; wherein, The acquisition unit is used to acquire at least one performance indicator data set, wherein each performance indicator data set in the at least one performance indicator data set is used to characterize a change in a corresponding performance parameter of each second device when using resources of a third device; The analysis unit is used to perform data analysis on the at least one performance indicator data set to obtain an analysis result; The determining unit is configured to determine a usage state of the third device according to the analysis result, wherein the usage state includes an idle state and an active state; The output unit is used to output the usage status.
9. A first device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 7.
