System resource monitoring method, device and equipment for system-on-chip (SOC)

By monitoring and managing the system resources of each SOC in multi-SOC embedded devices, the problem of impact on equipment performance and stability is solved, efficient resource monitoring and alarm functions are achieved, and the operation stability of the equipment is improved.

CN119537125APending Publication Date: 2025-02-28XIAOMI EV TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311118856.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In multi-SOC embedded devices, it is difficult for the prior art to effectively monitor and manage the system resources of each SOC, resulting in the impact of equipment performance and stability.

Method used

A system resource monitoring method for system-on-chip SOC is provided. By acquiring system resource data of each SOC, a monitoring interface is provided to display these data, and an alarm message is issued when the resource data exceeds a preset threshold. This method also supports multi-threading parallel reading of process files, storing data to databases, and generating resource data change curves.

Benefits of technology

It realizes efficient monitoring and management of SOC system resources, can promptly alarm and adjust resource use, and improve the operation stability of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537125A_ABST
    Figure CN119537125A_ABST
Patent Text Reader

Abstract

The invention relates to a system resource monitoring method, device and equipment of a system-on-chip (SOC). The method comprises the following steps: acquiring system resource data of each SOC; providing a monitoring interface, wherein the monitoring interface is used for displaying system resource data of each SOC; and in response to the condition that the system resource data of at least one SOC is greater than or equal to a corresponding preset threshold value, sending alarm information through the monitoring interface. According to the technical scheme, the system resource data of the SOC can be obtained, and the alarm information is sent out when the system resource data of the SOC is larger than the preset threshold value. According to the invention, the method can achieve the high-efficiency monitoring of the resources of the SOC, and improves the operation stability of a device equipped with the SOC.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of embedded devices, and in particular to a method, device and equipment for monitoring system resources of a system on chip (SOC). Background Art

[0002] In the related art, embedded devices usually have the characteristics of limited available system resources and small size, so the resource consumption of various system resources of embedded devices directly affects the performance and stability of embedded devices. Especially for embedded devices with multiple SOCs (System on Chip), each SOC needs to consume more system resources to achieve collaborative work, so monitoring the system resources of SOC is particularly important. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a system resource monitoring method, device, equipment and storage medium of a system on chip (SOC).

[0004] According to a first aspect of an embodiment of the present disclosure, a method for monitoring system resources of a SOC is provided, the method comprising: acquiring system resource data of each of the at least one SOC; providing a monitoring interface, the monitoring interface being used to display the system resource data of each of the SOCs; and issuing an alarm message through the monitoring interface in response to the system resource data of at least one of the SOCs being greater than or equal to a corresponding preset threshold.

[0005] In one implementation, there are multiple SOCs, and obtaining the system resource data of each SOC includes: reading the process file of each SOC in parallel through multiple threads to obtain the system resource data of each SOC.

[0006] In one implementation, the method further includes: storing the system resource data of each SOC in a system resource database respectively.

[0007] In an optional implementation, the method further includes: acquiring multiple system resource data stored in the system resource database; generating a system resource data change curve based on the multiple system resource data; and displaying the system resource data change curve through the monitoring interface.

[0008] In an optional implementation, the method further includes: obtaining first system resource data that is less than the preset threshold value among the system resource data of each of the SOCs stored in the system resource database; and determining a new preset threshold value corresponding to each of the SOCs based on the first system resource data.

[0009] In one implementation, the system resource data includes at least one of the following: system input / output I / O data of the SOC; disk I / O data of the SOC; central processing unit CPU data of the SOC; graphics processing unit GPU data of the SOC; memory data of the SOC; and video memory data of the SOC.

[0010] In one implementation, obtaining the system resource data of each of the SOCs includes: obtaining a pre-configured YAML configuration file; wherein the YAML configuration file includes the type of system resource data to be monitored, and the YAML configuration file may also include the preset threshold; based on the YAML configuration file, obtaining the system resource data of each of the SOCs.

[0011] According to the second aspect of an embodiment of the present disclosure, a system resource monitoring device for a SOC is provided, the device comprising: a first acquisition module, used to acquire system resource data of each of the SOCs; an interaction module, used to provide a monitoring interface, the monitoring interface being used to display the system resource data of each of the SOCs; and a monitoring module, used to issue an alarm message through the monitoring interface in response to the system resource data of at least one of the SOCs being greater than or equal to a corresponding preset threshold.

[0012] In one implementation, there are multiple SOCs, and the first acquisition module is specifically used to: read the process file of each SOC in parallel through multiple threads to obtain the system resource data of each SOC.

[0013] In one implementation, the device further includes: a storage module, configured to store the system resource data of each SOC into a system resource database.

[0014] In an optional implementation, the device further includes: a second acquisition module for acquiring multiple system resource data stored in the system resource database; a generation module for generating a system resource data change curve based on the multiple system resource data; and a display module for displaying the system resource data change curve through the monitoring interface.

[0015] In an optional implementation, the device also includes: a first processing module, used to obtain the first system resource data that is less than the preset threshold among the system resource data of each SOC stored in the system resource database; and a second processing module, used to determine a new preset threshold corresponding to each SOC based on the first system resource data.

[0016] In one implementation, the system resource data includes at least one of the following: system input / output I / O data of the SOC; disk I / O data of the SOC; central processing unit CPU data of the SOC; graphics processing unit GPU data of the SOC; memory data of the SOC; and video memory data of the SOC.

[0017] In one implementation, the first acquisition module is specifically used to: obtain a pre-configured YAML configuration file; wherein the YAML configuration file includes the type of system resource data to be monitored, and the YAML configuration file may also include the preset threshold; based on the YAML configuration file, obtain the system resource data of each of the SOCs.

[0018] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect above.

[0019] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method as described in the first aspect above.

[0020] According to a fifth aspect of an embodiment of the present disclosure, the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0021] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the system resource data of the SOC may be obtained, and an alarm message may be issued when the system resource data of the SOC is greater than a preset threshold value. The high-efficiency monitoring of the resources of the SOC may be achieved, and the operating stability of the equipment equipped with the SOC may be improved.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0024] Figure 1 The present invention is a flowchart of a method for monitoring system resources of a SOC according to an exemplary embodiment.

[0025] Figure 2 The figure is a flow chart showing another method for monitoring system resources of a SOC according to an exemplary embodiment.

[0026] Figure 3 The flowchart of another method for monitoring system resources of a SOC is shown according to an exemplary embodiment.

[0027] Figure 4 The figure is a flow chart showing a system resource monitoring solution of a SOC according to an exemplary embodiment.

[0028] Figure 5 The invention is a block diagram showing a system resource monitoring device of a SOC according to an exemplary embodiment.

[0029] Figure 6 The figure is a block diagram showing another system resource monitoring device of a SOC according to an exemplary embodiment.

[0030] Figure 7 is a block diagram showing another system resource monitoring device of a SOC according to an exemplary embodiment.

[0031] Figure 8 is a block diagram showing another system resource monitoring device of a SOC according to an exemplary embodiment.

[0032] Fig. 9 The figure is a block diagram of an electronic device for monitoring system resources of a SOC according to an exemplary embodiment. DETAILED DESCRIPTION

[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0034] In the description of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The various numbers such as first, second, etc. involved in the present disclosure are only distinguished for the convenience of description, and are not used to limit the scope of the embodiments of the present disclosure, nor do they indicate the order of precedence.

[0035] Figure 1FIG. 1 is a flow chart of a method for monitoring system resources of a SOC (System on Chip) according to an exemplary embodiment. Figure 1 As shown, the method may include but is not limited to the following steps.

[0036] Step S101: acquiring system resource data of each SOC in at least one SOC.

[0037] Specifically, the system resource data of each SOC in the at least one SOC is acquired respectively.

[0038] In one implementation, the system resource data includes at least one of the following: system I / O (Input / Output) data of the SOC; disk I / O data of the SOC; CPU (Central Processing Unit) data of the SOC; GPU (Graphics Processing Unit) data of the SOC; memory data of the SOC; and video memory data of the SOC.

[0039] Among them, in the embodiments of the present disclosure, the above-mentioned CPU data may include but is not limited to the CPU utilization; the above-mentioned GPU data may include but is not limited to the GPU utilization; the above-mentioned SOC video memory data may include but is not limited to the used video memory capacity and the unused video memory capacity.

[0040] In the embodiments of the present disclosure, terms such as "system on chip" and "system-on-chip" can be used interchangeably.

[0041] It should be noted that, in the embodiments of the present disclosure, the aforementioned SOC may be a SOC in an embedded device, and the operating system of the embedded device may include but is not limited to QNX and Linux.

[0042] Step S102: providing a monitoring interface, where the monitoring interface is used to display system resource data of each SOC.

[0043] For example, a monitoring interface may be displayed by a pre-set display device, and a plurality of display windows may be displayed in the monitoring interface, and each display window may display system resource data of a SOC.

[0044] Step S103: In response to the system resource data of at least one SOC being greater than or equal to the corresponding preset threshold, an alarm message is issued through the monitoring interface.

[0045] For example, in response to at least one system resource data of at least one SOC being greater than or equal to a threshold value corresponding to the system resource data, an alarm message for the SOC is issued through a monitoring interface. For example, target system resource data greater than or equal to the corresponding threshold value in the system resource data of the SOC is highlighted on a display interface.

[0046] As an example, taking the system resource data as CPU data and the CPU data as CPU utilization as an example, in response to the utilization of the CPU of SOC_A being greater than or equal to a preset threshold (eg, 90 percent), the window displaying the CPU data of SOC_A in the monitoring interface is highlighted.

[0047] As another example, taking the case where the system resource data is the video memory data of the SOC, and the video memory data includes the used video memory capacity and the unused video memory capacity, in response to the ratio of the used video memory capacity of SOC_A to the sum of the used video memory capacity and the unused video memory capacity of SOC_A being greater than or equal to a preset threshold (e.g., 85 percent), the window displaying the video memory data of SOC_A in the monitoring interface is highlighted.

[0048] In some embodiments of the present disclosure, in response to the system resource data of at least one SOC being greater than or equal to the corresponding preset threshold, an alarm message may be simultaneously issued in other preset ways, for example, an alarm message may be sent to a terminal device of a manager corresponding to the SOC.

[0049] It should be noted that, in the implementation of the present disclosure, if there are multiple SOCs, the preset thresholds corresponding to the system resource data of each SOC may be the same or different.

[0050] It should be noted that, in the embodiment of the present disclosure, if there are multiple items of system resource data, the preset threshold corresponding to each item of system resource data may be the same or different.

[0051] By implementing the embodiments of the present disclosure, the system resource data of the SOC can be obtained, and an alarm message can be issued when the system resource data of the SOC is greater than a preset threshold, so that efficient monitoring of the resources of the SOC can be achieved and the operating stability of the equipment equipped with the SOC can be improved.

[0052] In one implementation, when there are multiple SOCs, system resource data of each SOC may be obtained simultaneously. Figure 2 , Figure 2 FIG. 1 is a flow chart of another method for monitoring system resources of a SOC according to an exemplary embodiment. Figure 2 As shown, the method may include but is not limited to the following steps:

[0053] Step S201: Read the process file of each SOC in parallel through multiple threads to obtain system resource data of each SOC.

[0054] Specifically, the designated file corresponding to each SOC is read in parallel by multiple threads simultaneously to read the process file information of each SOC, thereby obtaining the system resource data of each SOC.

[0055] Step S202: providing a monitoring interface, where the monitoring interface is used to display system resource data of each SOC.

[0056] In the embodiments of the present disclosure, step S202 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0057] Step S203: In response to the system resource data of at least one SOC being greater than or equal to the corresponding preset threshold, an alarm message is issued through the monitoring interface.

[0058] In the embodiments of the present disclosure, step S203 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0059] By implementing the embodiments of the present disclosure, it is possible to obtain system resource data of multiple SOCs in parallel through multiple threads, and issue an alarm message when the system resource data of at least one SOC is greater than or equal to the corresponding preset threshold. It is possible to achieve efficient monitoring of the resources of multiple SOCs at the same time and improve the operating stability of multi-SOC equipment.

[0060] In one implementation, the project of resource data of the SOC to be monitored can be configured through a YAML configuration file. As an example, see Figure 3 , Figure 3 FIG. 1 is a flow chart of another method for monitoring system resources of a SOC according to an exemplary embodiment. Figure 3 As shown, the method may include but is not limited to the following steps:

[0061] Step S301: Obtain a pre-configured YAML configuration file.

[0062] In the embodiment of the present disclosure, the YAML configuration file includes the type of system resource data to be monitored.

[0063] In some embodiments of the present disclosure, the YAML configuration file may further include preset thresholds corresponding to the system resource data to be monitored.

[0064] In some embodiments of the present disclosure, the YAML configuration file may further include gateway information of each SOC, so as to obtain system resource data of each SOC based on the gateway information of each SOC.

[0065] Step S302: Based on the YAML configuration file, obtain system resource data of each SOC.

[0066] Specifically, based on the type of the system resource data to be monitored configured in the YAML configuration file, the system resource data to be monitored of each SOC is obtained.

[0067] As an example, take the YAML configuration file including the type of system resource data to be monitored, which is CPU data of SOC and GPU data of SOC, as an example, then the CPU data and GPU data of each SOC are obtained.

[0068] Step S303: providing a monitoring interface, where the monitoring interface is used to display system resource data of each SOC.

[0069] In the embodiments of the present disclosure, step S303 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0070] Step S304: In response to the system resource data of at least one SOC being greater than or equal to the corresponding preset threshold, an alarm message is issued through the monitoring interface.

[0071] In the embodiments of the present disclosure, step S304 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0072] By implementing the embodiments of the present disclosure, the system resource data and other configuration information of the SOC that needs to be monitored can be determined through a pre-configured YAML configuration file, thereby achieving efficient monitoring of the resources of the SOC and improving the operating stability of the device installed with the SOC.

[0073] In some embodiments of the present disclosure, the system resource monitoring method of the SOC may further include: storing the system resource data of each SOC into a system resource database respectively.

[0074] Specifically, the system resource data of each SOC is respectively stored in the system resource database as the system resource data of the SOC.

[0075] In an optional implementation, the above method may further include the following steps:

[0076] a1: Get multiple pieces of system resource data stored in the system resource database.

[0077] As an example, multiple pieces of system resource data of at least one SOC at multiple times stored in a system resource database are obtained.

[0078] As another example, multiple pieces of system resource data of multiple SOCs stored in the system resource database at at least one same time are obtained.

[0079] a2: Generate a system resource data change curve based on multiple system resource data.

[0080] As an example, taking the acquisition of multiple pieces of system resource data of at least one SOC stored in the system resource data control at multiple times as an example, based on the multiple pieces of system resource data, system resource data of each SOC is generated respectively, and system resource data change curves of the time periods corresponding to the multiple times are generated.

[0081] As another example, taking a plurality of pieces of system resource data of a plurality of SOCs stored in a system resource database at at least one moment as an example, based on the plurality of pieces of system resource data, a system resource data variation curve of the plurality of SOCs at the at least one moment is generated.

[0082] a3: Display the system resource data change curve through the monitoring interface.

[0083] Specifically, the change curves of the generated system resource data over time are displayed respectively through the monitoring interface.

[0084] In an optional implementation, the above method may further include the following steps: obtaining first system resource data that is less than a preset threshold among the system resource data of each SOC stored in the system resource database; and determining a new preset threshold corresponding to each of the SOCs based on the first system resource data.

[0085] For example, for each system resource data, the first system resource data that is less than the preset threshold value is obtained from the system resource data corresponding to each SOC stored in the system resource database; the average value of the first system resource data is calculated, and a new preset threshold value is determined based on the average value.

[0086] For example, if the system resource data is CPU data, the CPU data is CPU utilization, and the preset threshold is 90%, the first system resource data in which the CPU utilization is less than 90% in the system resource data of SOC_A stored in the system resource database is obtained, and the corresponding average CPU utilization is obtained according to the first system resource data, the average CPU utilization is multiplied by the preset coefficient to obtain the first CPU utilization, and the new preset threshold corresponding to the first CPU utilization CPU data is set.

[0087] By implementing the embodiments of the present disclosure, the system resource data of the SOC can be stored as system resource data, and a system resource data change curve of each SOC can be generated according to the system resource data, which can help equipment managers understand the change trend of SOC resources and better manage the equipment installed with the SOC.

[0088] It should be noted that the system resource monitoring method of SOC provided in any embodiment of the present disclosure can be applied to an industrial computer in a local area network, the local area network is also connected to at least one first device that can be controlled by the industrial computer, and at least one SOC is installed on each first device.

[0089] In some embodiments, the industrial computer is a bastion host of the local area network.

[0090] See also Figure 4 , Figure 4 FIG. 1 is a flow chart showing a system resource monitoring solution of a SOC according to an exemplary embodiment. Figure 4 As shown, in this technical solution, a monitoring process can be started in the industrial computer, and the monitoring program can capture multiple SOC system resource information in parallel through multiple threads. The monitoring program can determine in parallel whether each SOC system resource exceeds the corresponding threshold value through multiple threads, and alarm the SOC system resource item that exceeds the threshold value.

[0091] See also Figure 5 , Figure 5 FIG. 1 is a block diagram of a system resource monitoring device for a SOC according to an exemplary embodiment. Figure 5 As shown, the above-mentioned device 500 includes: a first acquisition module 501, used to obtain the system resource data of each SOC; an interaction module 502, used to provide a monitoring interface, which is used to display the system resource data of each SOC; a monitoring module 503, used to issue an alarm message through the monitoring interface in response to the system resource data of at least one SOC being greater than or equal to the corresponding preset threshold.

[0092] In one implementation, there are multiple SOCs, and the first acquisition module 501 is specifically used to: read the process file of each SOC in parallel through multiple threads to obtain the system resource data of each SOC.

[0093] In one implementation, the above device further includes: a storage module. As an example, please refer to Figure 6 , Figure 6 FIG. 1 is a block diagram of another system resource monitoring device of a SOC according to an exemplary embodiment. Figure 6 As shown, the device 600 further includes a storage module 604, which is used to store the system resource data of each SOC into a system resource database. Figure 6 Modules 601 to 603 in Figure 5 Modules 501 to 503 in the embodiment have the same structure and function.

[0094] In an optional implementation, the above device further includes a second acquisition module, a generation module and a display module. As an example, see Figure 7 , Figure 7 FIG. 1 is a block diagram of another system resource monitoring device of a SOC according to an exemplary embodiment. Figure 7 As shown, the device 700 further includes: a second acquisition module 705, used to acquire multiple pieces of system resource data stored in the system resource database; a generation module 706, used to generate a system resource data change curve based on the multiple pieces of system resource data; and a display module 707, used to display the system resource data change curve through the monitoring interface. Figure 7 Modules 701 to 704 in Figure 6 Modules 601 to 604 in the embodiment have the same structure and function.

[0095] In an optional implementation, the above device further includes: a first processing module and a second processing module. As an example, see Figure 8 , Figure 8 FIG. 1 is a block diagram of another system resource monitoring device of a SOC according to an exemplary embodiment. Figure 8 As shown, the device 800 further includes a first processing module 805, which is used to obtain the first system resource data of each SOC stored in the system resource database, which is less than the preset threshold; and a second processing module 806, which is used to determine a new preset threshold corresponding to each SOC based on the first system resource data. Figure 8 Modules 801 to 804 in Figure 6 Modules 601 to 604 in the embodiment have the same structure and function.

[0096] In one implementation, the system resource data includes at least one of the following: system input / output I / O data of the SOC; disk I / O data of the SOC; central processing unit CPU data of the SOC; graphics processing unit GPU data of the SOC; memory data of the SOC; and video memory data of the SOC.

[0097] In one implementation, the first acquisition module 501 is specifically used to: obtain a pre-configured YAML configuration file; wherein the YAML configuration file includes the type of system resource data to be monitored, and the YAML configuration file may also include a preset threshold; based on the YAML configuration file, obtain the system resource data of each SOC.

[0098] Through the device of the embodiment of the present disclosure, the system resource data of the SOC can be obtained, and an alarm message can be issued when the system resource data of the SOC is greater than a preset threshold, so that efficient monitoring of the resources of the SOC can be achieved and the operating stability of the equipment equipped with the SOC can be improved.

[0099] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0100] Fig. 9 The figure is a block diagram of an electronic device for monitoring system resources of a SOC according to an exemplary embodiment.

[0101] Reference Fig. 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an input / output (I / O) interface 810 , and a communication component 812 .

[0102] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, data communication, and recording operations. The processing component 902 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0103] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0104] The power component 906 provides power to the various components of the electronic device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 900.

[0105] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0106] The input / output interface 810 provides an interface between the processing component 902 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.

[0107] The communication component 812 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 812 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 812 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0108] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0109] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 820 of the electronic device 900 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0110] The present disclosure also provides a program product, which, when executed by the electronic device 900, enables the electronic device 900 to execute the method of any of the above embodiments. Optionally, the program product is a computer program product.

[0111] The present disclosure also proposes a computer program, which, when executed on a computer, enables the computer to execute the method of any one of the above embodiments.

[0112] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0113] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A system resource monitoring method for a system on chip (SOC), characterized in that: The method comprises: Acquiring system resource data of each of the at least one SOC; Providing a monitoring interface, the monitoring interface is used to display system resource data of each of the SOCs; In response to at least one of the SOC system resource data being greater than or equal to a corresponding preset threshold, an alarm message is issued through the monitoring interface.

2. The method according to claim 1, characterized in that There are multiple SOCs, and obtaining system resource data of each of the at least one SOC includes: The process file of each SOC is read in parallel through multiple threads to obtain the system resource data of each SOC.

3. The method according to claim 1, characterized in that The method further comprises: The system resource data of each SOC is stored in a system resource database respectively.

4. The method according to claim 3, characterized in that The method further comprises: Acquire multiple pieces of system resource data stored in the system resource database; Based on the plurality of system resource data, generating a system resource data change curve; The system resource data change curve is displayed through the monitoring interface.

5. The method according to claim 3, characterized in that The method further comprises: Acquire first system resource data that is less than the preset threshold value among the system resource data of each of the SOCs stored in the system resource database; Based on the first system resource data, a new preset threshold corresponding to each of the SOCs is determined.

6. The method according to claim 1, characterized in that The system resource data includes at least one of the following: System input / output I / O data of the SOC; Disk I / O data of the SOC; Central processing unit CPU data of the SOC; Graphics processor GPU data of the SOC; Memory data of the SOC; The video memory data of the SOC.

7. The method according to claim 1, characterized in that The acquiring system resource data of each of the at least one SOC comprises: Obtaining a pre-configured YAML configuration file; wherein the YAML configuration file includes the type of system resource data to be monitored, and the YAML configuration file may also include the preset threshold; Based on the YAML configuration file, system resource data of each of the at least one SOC is obtained.

8. A system resource monitoring device for a system on chip (SOC), characterized in that: The device comprises: A first acquisition module, configured to acquire system resource data of each of the at least one SOC; An interactive module, used for providing a monitoring interface, wherein the monitoring interface is used for displaying system resource data of each of the SOCs; The monitoring module is used to issue an alarm message through the monitoring interface in response to the system resource data of at least one of the SOCs being greater than or equal to a corresponding preset threshold.

9. An electronic device, characterized in that: The device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.