Thermal control strategy debugging method and device, storage medium and computer equipment
By independently compiling the thermal control configuration file and adjusting the thermal control strategy using the UEFI interface, the problem of time-consuming and resource-consuming thermal control strategy debugging in the existing technology is solved, and efficient thermal control strategy verification is achieved.
Patent Information
- Application Number
- CN202510860868.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-09-23
AI Technical Summary
The existing thermal control strategy debugging process consumes a lot of time and computing resources, and may lead to unpredictable errors, making the debugging and verification process lengthy and inefficient.
By independently compiling the thermal control configuration file and storing the compiled result in the ESP partition of the target device, the thermal control policy can be adjusted during restart using the UEFI interface, avoiding the tedious process of recompiling the entire UEFI code every time the policy is adjusted.
The efficiency of thermal control strategy debugging is improved, the effectiveness of new thermal control strategies can be quickly verified, and the consumption of development time and computing resources can be reduced.
Smart Images

Figure CN120686791A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of equipment development technology, and in particular to a thermal control strategy debugging method, device, storage medium and computer equipment. Background Art
[0002] As electronic devices continue to improve in performance and become increasingly complex, they generate significant amounts of heat during operation. Failure to effectively control this heat can severely impact device performance, stability, and service life. Therefore, during the product development phase, the development team must repeatedly debug and optimize thermal control strategies to ensure the device remains within a reasonable temperature range under various operating scenarios.
[0003] However, verifying and debugging the thermal control policy typically requires 15 to 20 policy adjustments and bug fixes. Each change requires integrating the new thermal control policy into the UEFI (Unified Extensible Firmware Interface) code and compiling it. This process not only consumes a significant amount of time and computing resources but can also lead to unforeseen errors, making the thermal control policy debugging and verification process lengthy and inefficient. Summary of the Invention
[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defect that the debugging of the thermal control strategy in the prior art not only consumes a lot of time and computing resources, but may also lead to some unpredictable errors, making the debugging and verification process of the thermal control strategy lengthy and inefficient.
[0005] In a first aspect, the present application provides a thermal control strategy debugging method, the method comprising:
[0006] Get the thermal control configuration file to be verified;
[0007] Compile the thermal control configuration file and store the compiled result file in the ESP partition of the target device;
[0008] Restarting the target device, and when the target device restarts, obtaining the latest compilation result file from the ESP partition using the UEFI interface, and adjusting the current thermal control strategy of the target device based on the compilation result file;
[0009] The current thermal control strategy of the target device is verified. If the verification fails, the process returns to the step of obtaining the latest thermal control configuration file corresponding to the target device. If the verification passes, the debugging is completed.
[0010] In one embodiment, obtaining the thermal control configuration file to be verified includes:
[0011] Determine the ESP partition corresponding to the target device;
[0012] The corresponding directory of the ESP partition is searched for a thermal control configuration file with the latest writing time, and the thermal control configuration file is read as the thermal control configuration file to be currently verified.
[0013] In one embodiment, compiling the thermal control configuration file and storing the compiled result file in the ESP partition of the target device includes:
[0014] Converting the format of the thermal control configuration file into a binary format to obtain a compilation result file corresponding to the thermal control configuration file;
[0015] A target directory is determined in the ESP partition corresponding to the target device, and the compilation result file is burned into the target directory.
[0016] In one embodiment, obtaining the latest compilation result file from the ESP partition using the UEFI interface and adjusting the current thermal control strategy of the target device based on the compilation result file includes:
[0017] Calling the UEFI interface to obtain the latest compilation result file in the ESP partition;
[0018] After determining a target storage block that makes the thermal control policy of the target device effective and parsing the content of the compilation result file, the parsed content is written into the target storage block to adjust the current thermal control policy of the target device.
[0019] In one embodiment, verifying the current thermal control strategy of the target device includes:
[0020] Detecting the temperature data of each temperature zone of the target device in real time, and determining the control logic of the target device under the temperature data according to the threshold and control logic defined in the current thermal control strategy;
[0021] Execute the control logic and evaluate the control effect of the current thermal control strategy based on the temperature data of each temperature zone of the target device after execution and the operating status of the target device. If the control effect meets expectations, the verification passes; if the control effect does not meet expectations, the verification fails.
[0022] In one embodiment, evaluating the control effect of the current thermal control strategy based on the temperature data of each temperature zone of the target device after execution and the operating status of the target device includes:
[0023] Acquiring temperature data of each temperature zone of the target device after executing the control logic, and acquiring the operating status of the target device after executing the control logic;
[0024] Determining whether the temperature data of each temperature zone of the target device is within a safety threshold of the corresponding temperature zone after executing the control logic, and determining a first control effect according to the determination result;
[0025] Determining a performance of the target device based on the operating state, and determining a second regulation effect according to the performance;
[0026] The control effect of the current thermal control strategy is determined by comprehensively considering the first control effect and the second control effect.
[0027] In one embodiment, after completing the debugging, the method further includes:
[0028] Record the thermal control strategy of the target device before and after each thermal control strategy adjustment and verification information after the thermal control strategy adjustment;
[0029] A debugging report of the target device in this debugging is generated according to the thermal control strategies of the target device before and after each thermal control strategy adjustment and verification information after the thermal control strategy adjustment.
[0030] In a second aspect, the present application provides a thermal control strategy debugging device, the device comprising:
[0031] A file acquisition module is used to obtain the thermal control configuration file to be verified;
[0032] A file compilation module, used to compile the thermal control configuration file and store the compiled result file in the ESP partition of the target device;
[0033] a policy adjustment module, configured to restart the target device, and when the target device restarts, obtain the latest compilation result file from the ESP partition using the UEFI interface, and adjust the current thermal control policy of the target device based on the compilation result file;
[0034] The policy verification module is used to verify the current thermal control policy of the target device. If the verification fails, the file acquisition module continues to execute; if the verification passes, the debugging is completed.
[0035] In a third aspect, the present application provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the thermal control strategy debugging method described in any of the above embodiments.
[0036] In a fourth aspect, the present application provides a computer device, comprising: one or more processors, and a memory;
[0037] The memory stores computer-readable instructions, and when the one or more processors execute the computer-readable instructions, the steps of the thermal control strategy debugging method described in any one of the above embodiments are performed.
[0038] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0039] The thermal control strategy debugging method, device, storage medium and computer equipment provided by the present application obtain the thermal control configuration file to be verified during the thermal control strategy debugging process, and then independently compile the thermal control configuration file. The thermal control configuration file is compiled independently and decoupled from the UEFI code, so that separate compilation processing can be achieved without embedding the firmware. After the compilation is completed, the generated compilation result file is stored in the ESP partition of the target device. The target device is then restarted. When the target device is restarted, the UEFI interface is used to automatically obtain the latest compilation result file from the ESP partition, and the current thermal control strategy of the target device is adjusted based on this, and then the current thermal control strategy of the target device is verified. In the above process, by separating the thermal control strategy from the UEFI code, the tedious process of recompiling the entire UEFI code for each policy adjustment is avoided, so that the effectiveness of the new thermal control strategy can be quickly verified, thereby improving the debugging efficiency of the thermal control strategy. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 labor.
[0041] Figure 1 A schematic diagram of a flow chart of a thermal control strategy debugging method provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a process for verifying the current thermal control strategy of a target device provided in an embodiment of the present application;
[0043] Figure 3 A flow chart of evaluating the control effect of the current thermal control strategy according to the temperature data of each temperature zone of the target device after execution and the operating status of the target device provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the structure of a thermal control strategy debugging device provided in an embodiment of the present application;
[0045] Figure 5 This is a diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0047] In one embodiment, this application provides a thermal control policy debugging method. The following embodiments illustrate this method as applied to a thermal control policy debugging tool. It is understood that the thermal control policy debugging method can be executed on a computer device equipped with a thermal control policy debugging tool, and this application does not impose any specific limitations on this.
[0048] Specifically, the existing thermal control policy debugging technology mainly relies on closely integrating the thermal control policy with the UEFI code and verifying it through steps such as compilation. In this process, developers need to make fine adjustments to the thermal control policy to adapt to the heat dissipation requirements under different hardware configurations and operating environments. However, this policy debugging method has obvious defects. After each modification to the thermal control policy, the code needs to be merged and compiled again, which not only increases the workload of developers, but also may cause some unpredictable errors. Moreover, due to the complexity of the UEFI code, the compilation process itself requires a lot of time and computing resources, making the debugging process of the thermal control policy lengthy and inefficient. Based on this, Figure 1 As shown, the present application provides a thermal control strategy debugging method, the method comprising:
[0049] S101: Obtain a thermal control configuration file to be verified.
[0050] A thermal control profile is a set of parameters that defines the thermal control strategy for electronic devices under different operating conditions. This profile includes, but is not limited to, key information such as temperature thresholds, fan speed control curves, and cooling mode switching conditions. These parameters collectively determine the device's cooling behavior in various scenarios.
[0051] In this step, when the developer needs to debug the thermal control strategy of an electronic device, the formulated strategy data is uploaded to the computer device. When the computer device receives the strategy data, it generates a thermal control configuration file based on the strategy data and stores the generated thermal control configuration file in the ESP partition of the electronic device.
[0052] Specifically, the ESP partition is a special partition in the UEFI system used to store files and data related to the boot process.
[0053] S102: Compile the thermal control configuration file and store the compiled result file in the ESP partition of the target device.
[0054] The target device is the electronic device on which the thermal control policy is to be debugged. The compiled result file is a binary file generated after compiling the thermal control configuration file. This file contains the specific parameters and instructions for the thermal control policy and can be directly recognized and executed by the UEFI firmware of the target device.
[0055] In this step, the thermal control configuration file is compiled into a binary format that the UEFI firmware can directly recognize and execute. This file, known as the compiled result file, is then stored in the ESP partition. Leveraging the ESP's fast access capabilities, the UEFI firmware can quickly load the latest thermal control policy when the target device reboots, eliminating the need to recompile and update the entire UEFI firmware.
[0056] S103: Restart the target device, and when the target device restarts, obtain the latest compilation result file from the ESP partition using the UEFI interface, and adjust the current thermal control strategy of the target device based on the compilation result file.
[0057] Among them, the UEFI interface refers to a set of standardized programming interfaces and function calls provided by the Unified Extensible Firmware Interface.
[0058] In this step, after the thermal control configuration file is compiled to obtain the compilation result file and the file is stored in the ESP partition, the target device is restarted through relevant instructions. During the restart process of the target device, the UEFI interface is used to automatically obtain the latest compilation result file from the ESP partition, and then the current thermal control policy of the target device is adjusted based on the compilation result file to verify and debug the thermal control policy.
[0059] Specifically, the UEFI interface can identify and access files in the ESP partition, ensuring that the compiled file can be loaded correctly. When the compiled file is read, the UEFI firmware parses the contents and adjusts the target device's current thermal control strategy based on the parameters contained therein. For example, if the compiled file specifies new temperature thresholds or fan speed control curves, the UEFI firmware will update these parameters accordingly, thereby adjusting the device's cooling behavior.
[0060] For example, when developing a high-performance laptop, developers may modify and compile the thermal control configuration file multiple times while debugging the thermal control strategy, and store the compiled files in the ESP partition. Each time the device is restarted, the UEFI interface reads the latest compiled file from the ESP partition and adjusts the thermal control strategy based on the file's contents, quickly verifying that the new strategy can effectively control the device temperature while maintaining good performance.
[0061] S104: Verify the current thermal control strategy of the target device. If the verification fails, return to the step of obtaining the latest thermal control configuration file corresponding to the target device to continue execution. If the verification passes, the debugging is completed.
[0062] In this step, the developer will evaluate the effectiveness of the thermal control strategy through a preset test scenario or a series of preset test scenarios. These test scenarios may include the temperature performance of the device when running under high load, the heat dissipation effect under different ambient temperatures, and the stability after long-term operation, etc. Then, based on the results of the verification, determine whether to adjust the current thermal control strategy. That is, when the verification fails, return to the step of obtaining the latest thermal control configuration file corresponding to the target device and continue to execute. In this way, the thermal control strategy adjusted by the developer based on the verification results can be obtained again for further adjustment and optimization. When the verification passes, it can be considered that the debugging is completed at this time, and the currently adjusted thermal control strategy can be used as the final thermal control strategy.
[0063] In the above embodiment, during the debugging of the thermal control strategy, a thermal control configuration file to be verified is obtained, and then the thermal control configuration file is independently compiled. The thermal control configuration file is independently compiled and decoupled from the UEFI code, so that separate compilation processing can be achieved without embedding the firmware. After the compilation is completed, the generated compilation result file is stored in the ESP partition of the target device. The target device is then restarted. When the target device is restarted, the UEFI interface is used to automatically obtain the latest compilation result file from the ESP partition, and the current thermal control strategy of the target device is adjusted based on this, and then the current thermal control strategy of the target device is verified. In the above process, by separating the thermal control strategy from the UEFI code, the tedious process of recompiling the entire UEFI code for each policy adjustment is avoided, so that the effectiveness of the new thermal control strategy can be quickly verified, thereby improving the debugging efficiency of the thermal control strategy.
[0064] In one embodiment, obtaining a thermal control configuration file to be verified includes:
[0065] S1: Determine the ESP partition corresponding to the target device.
[0066] S2: Query the thermal control configuration file with the latest writing time in the corresponding directory of the ESP partition, and read the thermal control configuration file as the thermal control configuration file to be verified.
[0067] In this embodiment, the ESP partition can be identified and located through the partition table of the target device or by using a specific tool (such as a disk management tool). When the target device and the corresponding ESP partition are determined, the thermal control configuration file is searched in the specific directory of the determined ESP partition. This specific directory usually has a fixed naming rule, such as / EFI / HotControl / . In this specific directory, the write time of all thermal control configuration files can be queried to find the thermal control configuration file with the latest write time. This is because the latest thermal control configuration file usually contains the latest thermal control policy parameters and also reflects the most recent verification results. The content of the thermal control configuration file is read through the file system interface and loaded into the debugging tool as the thermal control configuration file for subsequent debugging and verification.
[0068] In one embodiment, compiling the thermal control configuration file and storing the compiled result file in the ESP partition of the target device includes:
[0069] S1: Convert the format of the thermal control configuration file into a binary format to obtain a compilation result file corresponding to the thermal control configuration file.
[0070] S2: Determine the target directory in the ESP partition corresponding to the target device and burn the compilation result file to the target directory.
[0071] In this embodiment, to validate the parameters in the thermal control configuration file, the configuration file must be converted to binary format to compile the file, resulting in a compiled file that can be recognized and understood by the machine. Next, after determining the target directory on the target device and the corresponding ESP partition, the compiled file is burned to the target directory. This ensures that the compiled file can be quickly read and applied by the UEFI firmware during device startup.
[0072] In one embodiment, the UEFI interface is used to obtain the latest compilation result file from the ESP partition, and the current thermal control strategy of the target device is adjusted based on the compilation result file, including:
[0073] S1: Call the UEFI interface to obtain the latest compilation result file in the ESP partition.
[0074] S2: Determine the target storage block that makes the thermal control strategy of the target device effective, parse the content of the compilation result file, and write the parsed content into the target storage block to adjust the current thermal control strategy of the target device.
[0075] The target storage block refers to the unique memory block allocated by the UEFI firmware for the thermal control policy, that is, the specific block that enables the update of the thermal control policy to take effect.
[0076] In this embodiment, when the target device restarts, the debugging tool automatically calls the UEFI interface to obtain the latest compilation result file in the ESP partition. It then determines the target storage block where the target device's thermal control policy will take effect. The compiled result file is then parsed and the parsed content is written to the target storage block. This allows the compiled result file reflecting the updated thermal control policy to take effect and be applied to the target device's subsequent thermal management, thereby adjusting the target device's current thermal control policy. The combination of the debugging tool and the UEFI interface decouples the thermal control policy from the UEFI code, avoiding frequent UEFI code compilation, thereby optimizing the thermal control policy debugging process and improving debugging efficiency.
[0077] like Figure 2 As shown, in one embodiment, verifying the current thermal control strategy of the target device includes:
[0078] S201: Detecting temperature data of each temperature zone of the target device in real time, and determining the control logic of the target device under the temperature data according to the threshold and control logic defined in the current thermal control strategy.
[0079] S202: Execute the control logic, and evaluate the control effect of the current thermal control strategy based on the temperature data of each temperature zone of the target device after execution and the operating status of the target device.
[0080] S203: Determine whether the control effect of the current thermal control strategy meets expectations.
[0081] S204: If the control effect meets expectations, the verification is passed.
[0082] S205: If the control effect does not meet expectations, the verification fails.
[0083] Temperature data includes the actual operating temperature values of each temperature zone of the target device. The control effect reflects the temperature changes in each temperature zone of the target device after executing the thermal control strategy, as well as the overall operating status of the target device.
[0084] In this embodiment, temperature sensors within the target device can be used to monitor temperature data in each temperature zone of the target device in real time. These sensors are typically located near key components of the target device (such as the CPU, GPU, and battery). Next, the control logic for the current temperature data is determined based on the thresholds and control logic defined in the current thermal control policy. For example, if the CPU temperature exceeds the set threshold, the thermal control policy may trigger the fan to accelerate to reduce the temperature. After executing the control logic, the debugging tool evaluates the effectiveness of the current thermal control policy based on the temperature data from each temperature zone of the target device and the target device's operating status. This evaluation process primarily includes checking whether the temperature has dropped within a safe threshold and whether the target device has experienced performance degradation or abnormalities. Finally, the tool determines whether the current thermal control policy has achieved the expected control effect. If the control effect meets the expected effect, the verification passes. If not, the verification fails. For example, if the CPU temperature remains too high or the device experiences performance degradation after executing the control logic, the verification fails, requiring further adjustment of the thermal control policy. Developers will optimize the thermal control policy based on the verification results and re-debug it until the control effect meets the expected effect.
[0085] Specifically, when judging whether the control effect of the current thermal control strategy meets expectations, if the control effect is reflected in numerical form, the corresponding expected threshold can be set according to the actual situation, and then the relationship between the control effect and the expected threshold can be used to determine whether the control effect meets expectations. If the control effect refers to the form of a description of the performance of the equipment, it can be determined based on a pre-set mathematical model whether the control effect meets expectations. In other words, when judging whether the control effect meets expectations, different methods can be flexibly adopted according to the form of expression of the control effect, and this application does not impose specific restrictions on this.
[0086] Comparing temperature data and device operating status before and after the thermal control strategy is executed can help determine whether the strategy has achieved the desired cooling effect. Furthermore, combining both temperature data and device operating status can fully reflect the effectiveness of the thermal control strategy, ensuring the reliability of subsequent optimization adjustments.
[0087] like Figure 3 As shown, in one embodiment, evaluating the control effect of the current thermal control strategy based on the temperature data of each temperature zone of the target device after execution and the operating status of the target device includes:
[0088] S301: Acquire temperature data of each temperature zone of the target device after the control logic is executed, and acquire the operating status of the target device after the control logic is executed.
[0089] S302: Determine whether the temperature data of each temperature zone of the target device is within a safety threshold of the corresponding temperature zone after the control logic is executed, and determine a first control effect according to the determination result.
[0090] S303: Determine the performance of the target device based on the operating state, and determine a second control effect according to the performance.
[0091] S304: Determine the control effect of the current thermal control strategy by comprehensively considering the first control effect and the second control effect.
[0092] The first control effect is used to evaluate the temperature control effect of the target device after executing the control logic, and the second control effect is used to evaluate the overall operating status of the target device after executing the control logic. The safety threshold for each temperature is a preset value and can be determined based on the hardware structure and software system of the target device.
[0093] In this embodiment, the temperature data for each temperature zone of the target device after executing the control logic, as well as the target device's operating status, can be obtained through temperature sensors and performance monitoring tools within the device. For example, the temperature of the CPU and GPU can be monitored in real time using temperature sensors, while performance monitoring tools can be used to evaluate the device's response speed and processing power. Next, a determination can be made as to whether the temperature data for each temperature zone of the target device after executing the control logic is within the corresponding safety threshold to determine the first control effect. Simultaneously, the target device's performance is determined based on its operating status. This includes checking whether the device experiences issues such as lag, response delays, or abnormal power consumption. For example, if the device's response speed remains within a normal range and power consumption does not increase significantly after executing the control logic, the performance can be considered good. Based on this performance, the second control effect is determined. Finally, developers combine the first and second control effects to determine the control effect of the current thermal control strategy. A comprehensive assessment of the control effect of the thermal control strategy provides an accurate data foundation for subsequent adjustments and optimizations.
[0094] In one embodiment, after completing the debugging, the thermal control strategy debugging method further includes:
[0095] S1: Record the thermal control strategy of the target device before and after each thermal control strategy adjustment, as well as verification information after the thermal control strategy adjustment.
[0096] S2: Generate a debugging report for the target device in this debugging according to the thermal control strategies of the target device before and after each thermal control strategy adjustment and verification information after the thermal control strategy adjustment.
[0097] In this embodiment, during the debugging of the target device's thermal control strategy, verification information of the thermal control strategy before and after each adjustment, as well as the adjusted thermal control strategy, can be recorded. After the debugging is completed, a debugging report for the target device during that debugging is generated based on the recorded information. This allows relevant personnel to quickly understand the target device's thermal control strategy debugging process based on the debugging report and provide relevant materials when backtracking is needed.
[0098] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0099] The following describes a thermal control strategy debugging device provided in an embodiment of the present application. The thermal control strategy debugging device described below and the thermal control strategy debugging method described above can refer to each other.
[0100] like Figure 4 As shown, the present application provides a thermal control strategy debugging device 400, which includes:
[0101] The file acquisition module 401 is used to acquire the thermal control configuration file to be verified;
[0102] A file compilation module 402 is used to compile the thermal control configuration file and store the compiled result file in the ESP partition of the target device;
[0103] The policy adjustment module 403 is used to restart the target device and, when the target device restarts, obtain the latest compilation result file from the ESP partition using the UEFI interface and adjust the current thermal control policy of the target device based on the compilation result file;
[0104] The policy verification module 404 is used to verify the current thermal control policy of the target device. If the verification fails, the file acquisition module continues to execute. If the verification passes, the debugging is completed.
[0105] In the above embodiment, during the debugging of the thermal control strategy, a thermal control configuration file to be verified is obtained, and then the thermal control configuration file is independently compiled. The thermal control configuration file is independently compiled and decoupled from the UEFI code, so that separate compilation processing can be achieved without embedding the firmware. After the compilation is completed, the generated compilation result file is stored in the ESP partition of the target device. The target device is then restarted. When the target device is restarted, the UEFI interface is used to automatically obtain the latest compilation result file from the ESP partition, and the current thermal control strategy of the target device is adjusted based on this, and then the current thermal control strategy of the target device is verified. In the above process, by separating the thermal control strategy from the UEFI code, the tedious process of recompiling the entire UEFI code for each policy adjustment is avoided, so that the effectiveness of the new thermal control strategy can be quickly verified, thereby improving the debugging efficiency of the thermal control strategy.
[0106] In one embodiment, the file acquisition module includes:
[0107] The partition determination submodule is used to determine the ESP partition corresponding to the target device;
[0108] The file reading submodule is used to query the thermal control configuration file with the latest writing time in the corresponding directory of the ESP partition, and read the thermal control configuration file as the thermal control configuration file currently to be verified.
[0109] In one embodiment, the file compilation module includes:
[0110] A format conversion submodule is used to convert the format of the thermal control configuration file into a binary format to obtain a compilation result file corresponding to the thermal control configuration file;
[0111] The file burning submodule is used to determine the target directory in the ESP partition corresponding to the target device and burn the compiled result file to the target directory.
[0112] In one embodiment, the policy adjustment module includes:
[0113] The file acquisition submodule is used to call the UEFI interface to obtain the latest compilation result file in the ESP partition;
[0114] The policy adjustment submodule is used to determine the target storage block that makes the thermal control policy of the target device effective, and after parsing the content of the compilation result file, write the parsed content into the target storage block to adjust the current thermal control policy of the target device.
[0115] In one embodiment, the policy verification module includes:
[0116] The logic determination submodule is used to detect the temperature data of each temperature zone of the target device in real time, and determine the control logic of the target device under the temperature data according to the threshold and control logic defined in the current thermal control strategy;
[0117] The logic execution submodule is used to execute the control logic and evaluate the control effect of the current thermal control strategy based on the temperature data of each temperature zone of the target device after execution and the operating status of the target device. If the control effect meets the expectations, the verification is passed; if the control effect does not meet the expectations, the verification fails.
[0118] In one embodiment, the logic execution submodule includes:
[0119] A data acquisition unit, configured to acquire temperature data of each temperature zone of the target device after the control logic is executed, and to acquire the operating status of the target device after the control logic is executed;
[0120] a first determining unit, configured to determine whether the temperature data of each temperature zone of the target device is within a safety threshold of the corresponding temperature zone after the control logic is executed, and determine a first control effect according to the determination result;
[0121] A second determining unit, configured to determine a performance of the target device based on the operating state, and determine a second control effect according to the performance;
[0122] The effect evaluation unit is used to determine the control effect of the current thermal control strategy by combining the first control effect and the second control effect.
[0123] In one embodiment, after completing the debugging, the thermal control strategy debugging device further includes:
[0124] An information recording module is used to record the thermal control strategy of the target device before and after each thermal control strategy adjustment and verification information after the thermal control strategy adjustment;
[0125] The report generation module is used to generate a debugging report of the target device in this debugging according to the thermal control strategy of the target device before and after each thermal control strategy adjustment and the verification information after the thermal control strategy adjustment.
[0126] The division of the various modules in the thermal control strategy debugging device described above is for illustrative purposes only. In other embodiments, the thermal control strategy debugging device can be divided into different modules as needed to complete all or part of the functions of the thermal control strategy debugging device described above. Each module in the thermal control strategy debugging device described above can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the modules can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0127] In one embodiment, the present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the thermal control strategy debugging method as described in any of the above embodiments.
[0128] In one embodiment, the present application also provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the thermal control strategy debugging method as described in any one of the above embodiments.
[0129] Schematically, as Figure 5 As shown, Figure 5 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 500 can be provided as a server. Figure 5 Computer device 500 includes a processing component 502, which further includes one or more processors, and a memory resource represented by memory 501 for storing instructions executable by processing component 502, such as an application. The application stored in memory 501 may include one or more modules, each corresponding to a set of instructions. In addition, processing component 502 is configured to execute the instructions to perform the thermal control strategy debugging method of any of the above-described embodiments.
[0130] The computer device 500 may further include a power supply component 503 configured to perform power management of the computer device 500, a wired or wireless network interface 504 configured to connect the computer device 500 to a network, and an input / output (I / O) interface 505. The computer device 500 may operate based on an operating system stored in the memory 501, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or the like.
[0131] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0132] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements not only include those elements, but also include other elements not clearly listed, or also include elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or equipment comprising the elements. Herein, the singular forms "one", "an" and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the existence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the existence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0133] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referenced to each other.
[0134] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A thermal control strategy debugging method, characterized in that: The method comprises: Get the thermal control configuration file to be verified; Compile the thermal control configuration file and store the compiled result file in the ESP partition of the target device; Restarting the target device, and when the target device restarts, obtaining the latest compilation result file from the ESP partition using the UEFI interface, and adjusting the current thermal control strategy of the target device based on the compilation result file; The current thermal control strategy of the target device is verified. If the verification fails, the process returns to the step of obtaining the latest thermal control configuration file corresponding to the target device. If the verification passes, the debugging is completed.
2. The thermal control strategy debugging method according to claim 1, characterized in that: The step of obtaining the thermal control configuration file to be verified includes: Determine the ESP partition corresponding to the target device; The corresponding directory of the ESP partition is searched for a thermal control configuration file with the latest writing time, and the thermal control configuration file is read as the thermal control configuration file currently to be verified.
3. The thermal control strategy debugging method according to claim 1, characterized in that: Compiling the thermal control configuration file and storing the compiled result file in the ESP partition of the target device includes: Converting the format of the thermal control configuration file into a binary format to obtain a compilation result file corresponding to the thermal control configuration file; A target directory is determined in the ESP partition corresponding to the target device, and the compilation result file is burned into the target directory.
4. The thermal control strategy debugging method according to claim 1, characterized in that: The obtaining the latest compilation result file from the ESP partition by using the UEFI interface and adjusting the current thermal control strategy of the target device based on the compilation result file includes: Calling the UEFI interface to obtain the latest compilation result file in the ESP partition; After determining a target storage block that makes the thermal control policy of the target device effective and parsing the content of the compilation result file, the parsed content is written into the target storage block to adjust the current thermal control policy of the target device.
5. The thermal control strategy debugging method according to claim 1, characterized in that: The verifying the current thermal control strategy of the target device includes: Detecting the temperature data of each temperature zone of the target device in real time, and determining the control logic of the target device under the temperature data according to the threshold and control logic defined in the current thermal control strategy; Execute the control logic and evaluate the control effect of the current thermal control strategy based on the temperature data of each temperature zone of the target device after execution and the operating status of the target device. If the control effect meets expectations, the verification passes; if the control effect does not meet expectations, the verification fails.
6. The thermal control strategy debugging method according to claim 5, characterized in that: The evaluating the control effect of the current thermal control strategy according to the temperature data of each temperature zone of the target device after execution and the operating status of the target device includes: Acquiring temperature data of each temperature zone of the target device after executing the control logic, and acquiring the operating status of the target device after executing the control logic; Determining whether the temperature data of each temperature zone of the target device is within a safety threshold of the corresponding temperature zone after executing the control logic, and determining a first control effect according to the determination result; Determining a performance of the target device based on the operating state, and determining a second regulation effect according to the performance; The control effect of the current thermal control strategy is determined by comprehensively considering the first control effect and the second control effect.
7. The thermal control strategy debugging method according to any one of claims 1 to 6, characterized in that: After completing the debugging, the method further includes: Record the thermal control strategy of the target device before and after each thermal control strategy adjustment and verification information after the thermal control strategy adjustment; A debugging report of the target device in this debugging is generated according to the thermal control strategies of the target device before and after each thermal control strategy adjustment and verification information after the thermal control strategy adjustment.
8. A thermal control strategy debugging device, characterized in that: The device comprises: A file acquisition module is used to obtain the thermal control configuration file to be verified; A file compilation module, used to compile the thermal control configuration file and store the compiled result file in the ESP partition of the target device; a policy adjustment module, configured to restart the target device, and when the target device restarts, obtain the latest compilation result file from the ESP partition using the UEFI interface, and adjust the current thermal control policy of the target device based on the compilation result file; The policy verification module is used to verify the current thermal control policy of the target device. If the verification fails, the module returns to the file acquisition module to continue execution. If the verification passes, the debugging is completed.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to execute the steps of the thermal control strategy debugging method according to any one of claims 1 to 7.
10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the thermal control strategy debugging method according to any one of claims 1 to 7 are executed.