A memory information monitoring method and device, electronic equipment and storage medium
By monitoring and modifying memory type names on the server, the problem of mixed information for different types of memory was solved, enabling accurate monitoring and heat dissipation strategies for different types of memory, thus improving system efficiency and security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETTRIX INFORMATION IND CO LTD
- Filing Date
- 2023-01-12
- Publication Date
- 2026-07-10
AI Technical Summary
When different types of memory are mixed in a server, existing technology cannot distinguish between different types of memory information, which makes it impossible to provide targeted sensor heat dissipation strategies and affects system operating efficiency.
The CPU temperature monitoring service monitors memory information updates in the resource management service and modifies memory names when memory types differ to distinguish between different types of memory information. The virtual sensor service is used for aggregation and temperature monitoring.
It enables separate monitoring of different types of memory information without affecting system operating efficiency, improving the accuracy of temperature monitoring and the targeting of heat dissipation strategies.
Smart Images

Figure CN118331812B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, electronic device, and storage medium for monitoring memory information. Background Technology
[0002] The Baseboard Manager Controller (BMC) is used for remote management, monitoring, and control of servers, enabling the monitoring of the overall health status of the server. OpenBMC is an open-source system management software architecture; in OpenBMC, memory information is displayed through the dbus service.
[0003] In existing technologies, the temperature of the corresponding sensor can be monitored by displaying memory information on dbus. However, when different types of memory are mixed in a server, the information of different types of memory is not distinguished when displayed on dbus, and the information of each type of memory is mixed together. However, the temperature threshold of the sensor corresponding to different types of memory may be different. Therefore, the existing memory information monitoring method cannot provide sensor heat dissipation strategies for different types of memory. Summary of the Invention
[0004] This invention provides a method, apparatus, electronic device, and storage medium for monitoring memory information, so as to enable separate monitoring of different types of memory information without affecting system operating efficiency.
[0005] In a first aspect, embodiments of the present invention provide a method for monitoring memory information, the method comprising:
[0006] The CPU temperature monitoring service monitors memory information updates in the resource management service.
[0007] If it is determined that the memory information in the resource management service has been updated, then obtain the updated memory information;
[0008] If it is determined that the memory type of the updated memory information is different from the default memory type, the memory name of the updated memory information is modified to distinguish the memory type of the updated memory information.
[0009] Secondly, embodiments of the present invention also provide a memory information monitoring device, the device comprising:
[0010] The memory information update monitoring module is used to monitor memory information updates in the resource management service through the central processing unit temperature monitoring service;
[0011] The memory information acquisition module is used to acquire updated memory information if it is determined that the memory information in the resource management service has been updated.
[0012] The memory name modification module is used to modify the memory name of the updated memory information if it is determined that the memory type of the updated memory information is different from the default memory type, so as to distinguish the memory type of the updated memory information.
[0013] Thirdly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a memory information monitoring method as described in any of the embodiments of the present invention.
[0014] Fourthly, embodiments of the present invention also provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to perform a memory information monitoring method as described in any of the embodiments of the present invention.
[0015] The technical solution of this invention monitors memory information updates in the resource management service through a central processing unit temperature monitoring service. When memory information is updated, the system determines the memory type of the updated memory information. If the updated memory type is inconsistent with the default memory type, the memory name of the updated memory information is modified to distinguish between different types of memory information. This solves the problem in existing technologies where different types of memory are mixed together when a server uses various types of memory, enabling separate monitoring of different types of memory information without affecting system operating efficiency.
[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of a memory information monitoring method provided in Embodiment 1 of the present invention;
[0019] Figure 2 This is a flowchart of a memory information monitoring method provided in Embodiment 2 of the present invention;
[0020] Figure 3 This is a schematic diagram of the structure of a memory information monitoring device provided in Embodiment 3 of the present invention;
[0021] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] Example 1
[0025] Figure 1 The flowchart of a memory information monitoring method provided in Embodiment 1 of the present invention is applicable to situations where there are multiple types of memory on the same server, and different types of memory information are monitored separately. This method can be executed by a memory information monitoring device, which can be implemented in hardware and / or software and can be configured in the server.
[0026] like Figure 1 As shown, the method includes:
[0027] S110: Monitor memory information updates in resource management services through the central processing unit temperature monitoring service.
[0028] The CPU temperature monitoring service, also known as the CPUSensor service, monitors the temperature of the CPU (Central Processing Unit) and memory, as well as fan operation. The resource management service, also known as the AssetManager service, manages access to resources in the assets folder. Memory information mainly refers to the number of memory modules, memory module capacity, corresponding sensor temperature information, sensor operating status, and sensor alarm signals, but this embodiment does not limit the type of memory information.
[0029] In this embodiment, the AssetManager service is used to add updated memory information to the DBUS. Optionally, the CPU temperature monitoring service monitors the memory information updates in the resource management service, including: obtaining memory information through the basic input / output system and sending the memory information to the baseboard control manager; adding the memory information to the message bus system for display through the resource management service of the baseboard control manager; and monitoring the memory information updates in the resource management service through the CPU temperature monitoring service in the message bus system.
[0030] The Basic Input Output System (BIOS) is the fundamental program controlling the server host's startup. The Baseboard Management Controller (BMC) is a core subsystem independent of the server host, responsible for core functions such as hardware status management, operating system management, health status management, and power consumption management. The Message Bus System (DBus) is used to establish communication between the server host and the BMC.
[0031] In this embodiment, after the BIOS obtains the memory information of the server host, it pushes the memory information to the BMC. After the BMC receives the memory information through the AssetManager service, it adds the memory information to DBus so that users can query the memory information by entering command line in the terminal.
[0032] S120. If it is determined that the memory information in the resource management service has been updated, then obtain the updated memory information.
[0033] In this embodiment, the CPUSensor service monitors updates to memory information in the AssetManager service. Once memory information is updated, the CPUSensor service obtains the updated memory information and determines the memory type of the memory information.
[0034] S130. If it is determined that the memory type of the updated memory information is different from the default memory type, then the memory name of the updated memory information is modified to distinguish the memory type of the updated memory information.
[0035] In this embodiment, the server's memory may have multiple different memory types. For example, memory types may include DDR2, DDR3, DDR4, DDR5, DDR_T, or DIMM (Dual-Inline-Memory Modules). This embodiment does not limit the number or specific type of memory. The memory type can be determined based on the specific content of the memory information. For example, the memory information can be parsed to determine the field value corresponding to the field representing the memory type, and then the memory type corresponding to that field value can be determined. However, this embodiment does not limit the specific method of determining the memory type. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
[0036] Furthermore, the default memory type is one type of memory type. For example, the default memory type can be DIMM, but this embodiment does not limit the specific type of the default memory type.
[0037] Taking DIMM as the default memory type as an example, in the prior art, the memory information added to DBus cannot be distinguished by name based on different types; the memory name for different types of memory information is DIMM_[AH][1-2]_CPU[1-2]. In this embodiment, when the memory type of the updated memory information is not the default memory type, the name of the updated memory information is modified to match the memory type. For example, when the memory type is DDR-T, the memory name can be modified from “DIMM_[AH][1-2]_CPU[1-2]” to “PMEM_DIMM_[AH][1-2]_CPU[1-2]”, that is, a prefix matching the memory type is added to the default memory name. In another optional embodiment, the memory name can also be modified from “DIMM_[AH][1-2]_CPU[1-2]” to “PMEM_[AH][1-2]_CPU[1-2]”, that is, “DIMM” in the default memory name is modified to a prefix matching the memory type. This embodiment does not restrict the way memory names are modified, as long as the modified memory names can distinguish different types of memory information. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
[0038] In this embodiment, by distinguishing memory information for different memory types according to their names, temperature monitoring and fault monitoring can be performed separately for each type of memory. It is understood that factors such as CPU physical performance, kernel programs, and outdated drivers can all cause memory module temperatures to become too high. Excessive memory module temperature not only affects system performance but may even damage the memory modules. Therefore, when the memory temperature measured by the memory sensor exceeds a preset temperature threshold, the chassis fan speed is typically increased to enhance the chassis's heat dissipation performance. However, different memory types may have different corresponding temperature thresholds. Therefore, this embodiment distinguishes between different types of memory information, enabling separate temperature monitoring for each type of memory and improving the accuracy of memory temperature monitoring.
[0039] It should be noted that existing technologies typically utilize the VirtualSensor service to obtain memory information from the AssetManager service and monitor different memory types separately. However, this approach significantly impacts system efficiency. The solution in this embodiment, however, modifies the memory names of different memory types using the CPUSensor service, fundamentally differentiating between them. This not only enables separate monitoring of different memory types but also greatly reduces the impact on system efficiency.
[0040] The technical solution of this invention monitors memory information updates in the resource management service through a central processing unit temperature monitoring service. When memory information is updated, the system determines the memory type of the updated memory information. If the updated memory type is inconsistent with the default memory type, the memory name of the updated memory information is modified to distinguish between different types of memory information. This solves the problem in existing technologies where different types of memory are mixed together when a server uses various types of memory, enabling separate monitoring of different types of memory information without affecting system operating efficiency.
[0041] Example 2
[0042] Figure 2 This is a flowchart of a memory information monitoring method provided in Embodiment 2 of the present invention. Based on the above embodiments, the present invention further specifies the process of monitoring memory information updates and the process of modifying memory names, and adds a process of memory information aggregation and a process of temperature monitoring for different types of memory.
[0043] like Figure 2 As shown, the method includes:
[0044] S210. Monitor whether there are memory information updates in the resource management service through the attribute change listening method and / or interface listening method in the central processing unit temperature monitoring service.
[0045] The property change monitoring method refers to the PropertiesChanged method, which is used to add, change, or delete property values. Specifically, the PropertiesChanged event is defined in the CPUSensor service and is triggered when a property value changes. The interface monitoring method refers to the interfacesAdded method, which can monitor the generation of memory information in the AssetManager service. However, this embodiment does not limit the method of monitoring updated memory information in the AssetManager service. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
[0046] S220. If it is determined that the memory information in the resource management service has been updated, then obtain the updated memory information.
[0047] S230. Determine whether the memory type of the updated memory information is the same as the default memory type. If yes, execute S240; otherwise, execute S250.
[0048] In this embodiment, after obtaining the memory type of the updated memory information, it is determined whether the memory type is the default memory type in order to determine whether the memory name needs to be modified.
[0049] S240. The memory name that keeps the memory information updated is the default memory name.
[0050] When the memory type of the updated memory information is the default memory type, the default memory name should remain unchanged. For example, when the default memory type is DIMM, the default memory name of the memory information is DIMM_[AH][1-2]_CPU[1-2].
[0051] S250. Based on the memory type of the updated memory information, modify the memory name of the updated memory information from the default memory name to a memory name that matches the memory type.
[0052] When the memory type of the updated memory information is not the default memory type, the memory name of the memory information is modified according to the memory type, and the modified memory name matches the memory type. For example, when the memory type is DDR-T, the memory name is changed from DIMM_[AH][1-2]_CPU[1-2] to PMEM_[AH][1-2]_CPU[1-2].
[0053] S260. Through virtual sensor services, aggregate memory information of different memory types according to the memory name of each memory information.
[0054] The Virtual Sensor service refers to the VirtualSensor service. Specifically, in the JSON configuration file corresponding to the VirtualSensor service, memory information for different memory types can be aggregated into different temporary files. For example, memory information named "DIMM_[AH][1-2]_CPU[1-2]" can be aggregated into the DIMM_Temp file, and memory information named "PMEM_DIMM_[AH][1-2]_CPU[1-2]" can be aggregated into the CPS_Temp file. This allows setting temperature thresholds, monitoring temperatures, and adjusting fan speeds for DIMM and CPS type memory modules respectively.
[0055] In this embodiment, after the CPUSensor service modifies the memory names of memory information of different memory types, it fundamentally distinguishes different types of memory information. Furthermore, the VirtualSensor service aggregates memory information of different memory types separately, enabling more intuitive temperature threshold settings, temperature monitoring, heat dissipation strategy adjustments, and fault alarm monitoring based on the aggregated different types of memory information.
[0056] S270. Based on the memory information of the target type, determine the sensor temperature that matches the memory of the target type.
[0057] The target type refers to the type of memory to be monitored. The target type can be one or more of the various memory types currently installed in the server. The sensor temperature is the temperature of the memory module monitored by a temperature sensor matched to the memory module. The sensor temperature can be obtained by parsing the memory information.
[0058] Specifically, because the CPUSensor service modifies the memory names for different memory types, the memory information displayed in the DBUS service can be distinguished based on the memory name. Furthermore, the user interface can use the `ipmitool sensor` command to query different types of memory information, which includes sensor temperature.
[0059] S280. If it is determined that the temperature of the sensor is greater than or equal to the temperature threshold that matches the target type, then execute the heat dissipation strategy that matches the target type.
[0060] In this embodiment, temperature thresholds can be preset for different memory types. This embodiment does not limit the specific value of the temperature threshold or the setting method.
[0061] Cooling strategies may include, but are not limited to, at least one of the following: adjusting the host fan speed to enhance the chassis's heat dissipation capacity; providing a user interface alert when the memory module temperature is too high and suggesting that the user can alleviate the high memory module temperature by closing current programs; or forcibly closing background programs when the memory module temperature is high. This embodiment does not limit the specific cooling strategy employed.
[0062] Example 3
[0063] Figure 3 This is a schematic diagram of a memory information monitoring device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a memory information update monitoring module 310, a memory information acquisition module 320, and a memory name modification module 330. Wherein:
[0064] The memory information update monitoring module 310 is used to monitor memory information updates in the resource management service through the central processing unit temperature monitoring service;
[0065] The memory information acquisition module 320 is used to acquire updated memory information if it is determined that the memory information in the resource management service has been updated.
[0066] The memory name modification module 330 is used to modify the memory name of the updated memory information if it is determined that the memory type of the updated memory information is different from the default memory type, so as to distinguish the memory type of the updated memory information.
[0067] The technical solution of this invention monitors memory information updates in the resource management service through a central processing unit temperature monitoring service. When memory information is updated, the system determines the memory type of the updated memory information. If the updated memory type is inconsistent with the default memory type, the memory name of the updated memory information is modified to distinguish between different types of memory information. This solves the problem in existing technologies where different types of memory are mixed together when a server uses various types of memory, enabling separate monitoring of different types of memory information without affecting system operating efficiency.
[0068] Based on the above embodiments, the memory information update monitoring module 310 includes:
[0069] The memory information update monitoring unit is used to monitor whether there are memory information updates in the resource management service through the attribute change listening method and / or interface listening method in the central processing unit temperature monitoring service.
[0070] Based on the above embodiments, the memory name modification module 330 includes:
[0071] The memory name modification unit is used to modify the memory name of the updated memory information from the default memory name to a memory name that matches the memory type, based on the memory type of the updated memory information.
[0072] Based on the above embodiments, the device further includes:
[0073] The memory name retention module is used to retain the memory name of the updated memory information as the default memory name if it is determined that the memory type of the updated memory information is the same as the default memory type.
[0074] Based on the above embodiments, the device further includes:
[0075] The memory information aggregation module is used to aggregate memory information of different memory types based on the memory name of each memory information through virtual sensor services.
[0076] Based on the above embodiments, the device further includes:
[0077] The sensor temperature determination module is used to determine the sensor temperature that matches the memory of the target type based on the memory information of the target type.
[0078] A heat dissipation strategy determination module is used to execute a heat dissipation strategy matching the target type if it is determined that the sensor temperature is greater than or equal to a temperature threshold matching the target type.
[0079] Based on the above embodiments, the memory information update monitoring module 310 includes:
[0080] The memory information acquisition unit is used to acquire memory information through the basic input / output system and send the memory information to the baseboard control manager;
[0081] The memory information display unit is used to add the memory information to the message bus system for display through the resource management service of the baseboard control manager;
[0082] The memory information monitoring unit is used to monitor memory information updates in the resource management service through the central processing unit temperature monitoring service in the message bus system.
[0083] The memory information monitoring device provided in this embodiment of the invention can execute the memory information monitoring method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0084] Example 4
[0085] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0086] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0087] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0088] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods for monitoring memory information.
[0089] In some embodiments, the memory information monitoring method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the memory information monitoring method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the memory information monitoring method by any other suitable means (e.g., by means of firmware).
[0090] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0091] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0092] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0093] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0094] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0095] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0096] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0097] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for monitoring memory information, characterized in that, include: The CPU temperature monitoring service monitors memory information updates in the resource management service. If it is determined that the memory information in the resource management service has been updated, then obtain the updated memory information; If it is determined that the memory type of the updated memory information is different from the default memory type, then the memory name of the updated memory information is modified to distinguish the memory type of the updated memory information. Modifying the memory name of the updated memory information includes: Based on the memory type of the updated memory information, the memory name of the updated memory information is changed from the default memory name to a memory name that matches the memory type.
2. The method according to claim 1, characterized in that, The CPU temperature monitoring service monitors memory information updates in the resource management service, including: Monitor for memory information updates in the resource management service by using the attribute change listener method and / or interface listener method in the central processing unit temperature monitoring service.
3. The method according to claim 1, characterized in that, The method further includes: If it is determined that the memory type of the updated memory information is the same as the default memory type, then the memory name of the updated memory information is kept as the default memory name.
4. The method according to claim 1, characterized in that, After modifying the memory names in the updated memory information, the following is also included: The virtual sensor service aggregates memory information of different memory types based on the memory name of each memory information.
5. The method according to claim 4, characterized in that, After aggregating memory information for different memory types, the process also includes: Based on the memory information of the target type, determine the sensor temperature that matches the memory of the target type; If the sensor temperature is determined to be greater than or equal to a temperature threshold matching the target type, then a heat dissipation strategy matching the target type is executed.
6. The method according to claim 1, characterized in that, The CPU temperature monitoring service monitors memory information updates in the resource management service, including: Memory information is acquired through the basic input / output system and then sent to the baseboard control manager. The memory information is added to the message bus system for display through the resource management service of the baseboard control manager; The CPU temperature monitoring service in the message bus system monitors memory information updates in the resource management service.
7. A memory information monitoring device, characterized in that, include: The memory information update monitoring module is used to monitor memory information updates in the resource management service through the central processing unit temperature monitoring service; The memory information acquisition module is used to acquire updated memory information if it is determined that the memory information in the resource management service has been updated. The memory name modification module is used to modify the memory name of the updated memory information if it is determined that the memory type of the updated memory information is different from the default memory type, so as to distinguish the memory type of the updated memory information. The memory name modification module includes: The memory name modification unit is used to modify the memory name of the updated memory information from the default memory name to a memory name that matches the memory type, based on the memory type of the updated memory information.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the memory information monitoring method as described in any one of claims 1-6.
9. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the memory information monitoring method as described in any one of claims 1-6.