Frequency adjustment method, device, system and related device
Patent Information
- Application Number
- CN202510752277.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-09-23
Smart Images

Figure CN120686964A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and specifically to a frequency adjustment method, device, system, and related devices. Background Art
[0002] As the performance requirements of computer systems continue to increase, power consumption has become a key constraint. Dynamic Power Management (DPM) is a technology that optimizes power consumption by dynamically adjusting system operating parameters (such as frequency and voltage). DPM allows computer systems to dynamically adjust power consumption under different operating conditions, thereby extending battery life and reducing heat dissipation requirements. However, DPM's effectiveness in managing computer system power consumption is insufficient, preventing it from effectively implementing dynamic power management and achieving a balance between power consumption and performance.
[0003] Therefore, in this context, how to improve the accuracy of dynamic power consumption management has become a technical problem that those skilled in the art urgently need to solve. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a frequency adjustment method, device, system and related devices to improve the accuracy of dynamic power consumption management.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions.
[0006] In a first aspect, an embodiment of the present invention provides a frequency adjustment method for adjusting the operating frequency of a computer system, the frequency adjustment method comprising:
[0007] Determine frequency adjustment tasks;
[0008] The frequency adjustment task is performed after the end of at least one monitoring window period, and the adjusted working frequency after the end of each monitoring window period corresponding to the execution of the frequency adjustment task is used as the working frequency in the adjacent next monitoring window period; wherein, in the process of executing the frequency adjustment task, after the end of the first monitoring window period, the opposite frequency point is adjusted based on the frequency point corresponding to the working frequency after the end of the first monitoring window period, and the adjusted working frequency after the end of the first monitoring window period is obtained; after the end of subsequent monitoring window periods other than the first monitoring window period, the bandwidth data counted after the end of the previous monitoring window period is used to compare with the bandwidth data counted after the end of the current monitoring window period; and the adjusted working frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted working frequency after the end of the current monitoring window period;
[0009] Ending the execution of the frequency adjustment task until the operation target of the computer system is met;
[0010] Among them, after the end of subsequent monitoring window periods other than the first monitoring window period, the adjusted operating frequency after the end of the current monitoring window period is consistent with the adjusted operating frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted operating frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period.
[0011] In a second aspect, an embodiment of the present invention provides a frequency adjustment device for adjusting the operating frequency of a computer system, the frequency adjustment device comprising:
[0012] A task determination module, used for determining a frequency adjustment task;
[0013] A real-time frequency adjustment module is used to execute the frequency adjustment task after the end of at least one monitoring window period, and the adjusted working frequency after the end of each monitoring window period corresponding to the execution of the frequency adjustment task is used as the working frequency in the next adjacent monitoring window period; wherein, in the process of executing the frequency adjustment task, after the end of the first monitoring window period, the opposite frequency point is adjusted based on the frequency point corresponding to the working frequency after the end of the first monitoring window period to obtain the adjusted working frequency after the end of the first monitoring window period; after the end of subsequent monitoring windows other than the first monitoring window period, the bandwidth data counted after the end of the previous monitoring window period is used to compare with the bandwidth data counted after the end of the current monitoring window period; and the adjusted working frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted working frequency after the end of the current monitoring window period;
[0014] A task ending module, configured to end execution of the frequency adjustment task until an operation target of the computer system is met;
[0015] Among them, after the end of subsequent monitoring window periods other than the first monitoring window period, the adjusted operating frequency after the end of the current monitoring window period is consistent with the adjusted operating frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted operating frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period.
[0016] In a third aspect, an embodiment of the present invention provides a computer system, comprising the frequency adjustment device as described in the second aspect.
[0017] In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a program, and the processor calls the program stored in the memory to execute the frequency adjustment method as described in the first aspect.
[0018] In a fifth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores a program, and when the program is executed, the frequency adjustment method as described in the first aspect is implemented.
[0019] In a sixth aspect, an embodiment of the present invention provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the frequency adjustment method as described in the first aspect is implemented.
[0020] A frequency adjustment method provided by an embodiment of the present invention is used to adjust the operating frequency of a computer system. The frequency adjustment method includes: determining a frequency adjustment task; executing the frequency adjustment task after at least one monitoring window period ends, and using the adjusted operating frequency after each monitoring window period corresponding to the execution of the frequency adjustment task as the operating frequency in the next adjacent monitoring window period; wherein, in the process of executing the frequency adjustment task, after the first monitoring window period ends, an opposite frequency point adjustment is performed based on the frequency point corresponding to the operating frequency after the first monitoring window period ends, to obtain the adjusted operating frequency after the first monitoring window period ends; after the subsequent monitoring window periods other than the first monitoring window period end, the above frequency adjustment is used to adjust the frequency point. The bandwidth data counted after the end of a monitoring window period is compared with the bandwidth data counted after the end of the current monitoring window period; and based on the comparison result, the adjusted operating frequency after the end of the previous monitoring window period is adjusted to obtain the adjusted operating frequency after the end of the current monitoring window period; and the execution of the frequency adjustment task is terminated until the operation target of the computer system is met; wherein, after the end of subsequent monitoring windows other than the first monitoring window period, the adjusted operating frequency after the end of the current monitoring window period is consistent with the adjusted operating frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted operating frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period.
[0021] It can be seen that the technical solution provided by the embodiment of the present invention, when performing the frequency adjustment task to adjust the frequency after each monitoring window period, for the frequency adjustment after the first monitoring window period, the working frequency after the first monitoring window period (i.e., the working frequency within the first monitoring window period) can be used to determine the frequency point corresponding to the working frequency after the first monitoring window period, and then the opposite adjustment of the frequency point is performed to achieve the frequency adjustment after the first monitoring window period. For the frequency adjustment after the subsequent monitoring window periods other than the first monitoring window period, the bandwidth data counted after the end of the current monitoring window period (i.e., the real-time bandwidth data counted after the end of the current monitoring window period) is used to compare with the bandwidth data counted after the end of the previous monitoring window period; since the bandwidth data can represent the workload of the computer system during the current monitoring window period, in the embodiment of the present invention, after the subsequent monitoring window periods other than the first monitoring window period, by comparing the bandwidth data counted after the end of two adjacent monitoring window periods during the frequency adjustment, it can be determined whether the computer system is within the current monitoring window period. Workload situation, and then it can be determined whether to adjust the working frequency in the current monitoring window period (i.e., the adjusted working frequency after the end of the previous monitoring window period) according to the comparison result, and obtain the adjusted frequency after the end of the current monitoring window period as the working frequency in the next monitoring window period; thereby making the adjusted working frequency after the end of the current monitoring window period consistent with the working frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted working frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted working frequency after the end of the previous monitoring window period, thereby achieving a refined adjustment of the working frequency after each monitoring window period. It can be seen that the technical solution provided by the embodiment of the present invention does not set a fixed frequency threshold in the adjustment frequency after the end of each monitoring window period, but is based on the actual situation after the end of the previous monitoring window period, and adjusts the frequency after the end of the current monitoring window period after the workload situation is judged, so that the working frequency in the next monitoring window period conforms to the actual operation of the computer system. Thus, it can avoid the way of relying on empirical values for dynamic power management, and thus it can avoid the normal operation problem of empirical values limiting dynamic power management, and improve the accuracy of dynamic power management. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention 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 merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0023] Figure 1 1 is a flow chart of a frequency adjustment method provided by an embodiment of the present invention;
[0024] Figure 2 is another flow chart of the frequency adjustment method provided by an embodiment of the present invention;
[0025] Figure 3 1 is another flow chart of the frequency adjustment method provided by an embodiment of the present invention;
[0026] Figure 4 is another flow chart of the frequency adjustment method provided by an embodiment of the present invention;
[0027] Figure 5 1 is a structural diagram of a frequency adjustment device provided by an embodiment of the present invention;
[0028] Figure 6 It is a structural diagram of a computer system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0030] Chip power consumption refers to the energy required by a chip during operation. Simply put, it's the amount of electricity a chip consumes while operating. The core chips within any electronic device, including computers, mobile phones, and servers, consume power when performing processing and computing tasks.
[0031] Computer systems integrate chips of various types and functions. A chip's power consumption is closely related to its performance. Generally speaking, higher power consumption means the chip can handle more complex tasks and run faster, but it also generates more heat. This is because energy is not fully converted, and some energy is dissipated as heat. Therefore, when designing and manufacturing chips, it is necessary to minimize power consumption while maintaining chip performance to extend chip lifespan and reduce heat generation.
[0032] Chip power consumption is affected by a variety of factors, including the chip's operating frequency, manufacturing process, design architecture, and the type of tasks it performs. For example, higher operating frequencies and more complex tasks increase power consumption. Advanced manufacturing processes and energy-efficient designs can help reduce power consumption. Furthermore, external environmental factors such as temperature and voltage also affect chip power consumption.
[0033] Chip power consumption is a crucial metric for electronic devices. It affects not only the device's battery life and operating speed, but also its heat dissipation and overall performance. In mobile devices, low-power chips can extend battery life. In high-performance computing, while higher power consumption is required to achieve higher performance, optimized design and manufacturing processes can reduce power consumption and heat generation while maintaining performance.
[0034] DPM is a technology that dynamically manages the power consumption of chips in computer systems.
[0035] In DPM, the frequency adjustment task can be implemented based on the following steps:
[0036] Load monitoring: This mainly refers to monitoring the current load of a computer system through hardware or software. For example, statistics on processor utilization and memory bus usage are collected.
[0037] Load forecasting: mainly refers to predicting system demand in the next time period based on current load and historical data.
[0038] Frequency adjustment: mainly refers to adjusting the frequency to meet performance requirements based on the prediction results.
[0039] A monitoring window is a period of time used to monitor or adjust the operating frequency of a computer system. If a frequency adjustment task is performed within each monitoring window, the frequency adjustment task performed during each monitoring window may include the following:
[0040] Load statistics: Statistics on the load of the computer system during the monitoring window, such as statistics on bandwidth data after the monitoring window ends.
[0041] Threshold determination: Based on statistical results, the system determines whether the operating frequency corresponding to the current monitoring window needs to be adjusted. Existing DPM technologies typically use empirical values to make this determination. For example, if the load exceeds a preset high threshold, the frequency is increased; if it falls below a low threshold, the frequency is decreased.
[0042] After multiple frequency adjustments at the end of the monitoring window, the computer system can monitor load changes in real time and respond quickly, ensuring timely frequency adjustments. This allows the computer system to dynamically adjust frequency based on different load patterns, optimizing power consumption and performance in different scenarios. Furthermore, the division of the monitoring window prevents system instability caused by frequent frequency adjustments.
[0043] However, the DPM method that uses empirical values for dynamic frequency adjustment may cause inaccurate DPM frequency adjustment due to the fact that the operating objectives of computer systems may vary in different scenarios and devices. In this case, the use of unreasonable or inaccurate empirical values may lead to inaccurate DPM frequency adjustment.
[0044] For example, assuming that the lower frequency limits the bandwidth, resulting in a lower bandwidth monitored by the DPM software, for example, the operating frequency (CLK) is reduced to a low frequency point T l After that, the computer system's bandwidth is limited to the threshold ɑ (empirical value), and the DPM software will no longer increase the frequency. Therefore, the DPM method that uses empirical values for dynamic frequency adjustment cannot accurately determine whether the frequency reduction is limiting the bandwidth, resulting in an inability to adapt to frequency adjustment, and thus unable to properly perform dynamic power management and achieve a balance between power consumption and performance.
[0045] Based on this, an embodiment of the present invention provides a frequency adjustment method for improving the frequency adjustment accuracy of DPM.
[0046] Please refer to Figure 1 , Figure 1 FIG1 is a flow chart of a frequency adjustment method provided by an embodiment of the present invention, wherein the method is used to adjust the operating frequency of a computer system.
[0047] like Figure 1 As shown, the method includes the following steps:
[0048] Step S101: determining a frequency adjustment task.
[0049] In dynamic power management (DPM), frequency adjustment is a key step in optimizing power consumption and performance by dynamically adjusting the operating frequency of a computer system (eg, adjusting the operating frequency of a processor).
[0050] Step S102 , executing the frequency adjustment task after at least one monitoring window period ends, and using the adjusted operating frequency after each monitoring window period corresponding to executing the frequency adjustment task as the operating frequency in the next adjacent monitoring window period.
[0051] Among them, in the process of executing the frequency adjustment task, after the end of the first monitoring window period, the opposite frequency point is adjusted based on the frequency point corresponding to the working frequency after the end of the first monitoring window period, and the adjusted working frequency after the end of the first monitoring window period is obtained; after the end of subsequent monitoring window periods other than the first monitoring window period, the bandwidth data counted after the end of the previous monitoring window period is compared with the bandwidth data counted after the end of the current monitoring window period; and based on the comparison result, the adjusted working frequency after the end of the previous monitoring window period is adjusted to obtain the adjusted working frequency after the end of the current monitoring window period.
[0052] Among them, after the subsequent monitoring window periods other than the first monitoring window period end, the adjusted working frequency after the end of the current monitoring window period is consistent with the working frequency after the end of the previous monitoring window period, or the frequency point corresponding to the working frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the working frequency after the end of the previous monitoring window period.
[0053] The execution of a frequency adjustment task is usually achieved through multiple monitoring windows. For example, it can be executed during the monitoring window period or after the monitoring window period ends. The embodiment of the present invention executes the frequency adjustment task after each monitoring window period ends, so that according to the actual working conditions during the monitoring window period, it is possible to determine how to adjust the operating frequency corresponding to the monitoring window period that has ended (for example, the operating frequency after the first monitoring window period ends) to serve as the operating frequency during the next monitoring window period, so that the operation of the computer system during the next monitoring window period conforms to the actual working conditions.
[0054] The monitoring window is a time period. When the frequency adjustment task is executed after the monitoring window, the monitoring window can be used to monitor the operating frequency of the computer system during the corresponding time period. This allows the frequency adjustment task to be executed after the monitoring window to adjust the operating frequency after the monitoring window.
[0055] It is easy to understand that the adjusted operating frequency after each monitoring window period is the operating frequency of the computer system in the next adjacent monitoring window period, that is, the adjusted frequency after the next monitoring window period is adjusted based on the adjusted operating frequency after the previous monitoring window period.
[0056] Optionally, the end of each monitoring window period may be determined by a timer.
[0057] In the embodiment of the present invention, empirical values are no longer used to dynamically adjust the frequency. Instead, after the subsequent monitoring window periods other than the first monitoring window period, the bandwidth data counted after the end of the previous monitoring window period and the bandwidth data counted after the end of the current monitoring window period are compared to determine whether to adjust the adjusted operating frequency after the end of the previous monitoring window period to obtain the adjusted operating frequency after the end of the current monitoring window period.
[0058] That is, in the embodiment of the present invention, different frequency adjustment methods are selected based on different monitoring window periods to avoid using empirical values for dynamic power adjustment. The frequency adjustment method of the embodiment of the present invention is described in detail below.
[0059] First, after the first monitoring window, when executing the frequency adjustment task, the computer system has already adjusted to an appropriate operating frequency based on the current load. Adjustments can now be made directly based on this operating frequency, quickly responding to changes in system load without waiting for bandwidth statistics to be collected after the first monitoring window. This rapid response mechanism helps reduce power consumption while ensuring accurate frequency adjustment after the first monitoring window.
[0060] Then, for the execution of the frequency adjustment task after the end of the subsequent monitoring window period other than the first monitoring window period, the bandwidth data counted after the end of the historical monitoring window period (the previous monitoring window period) and the adjusted operating frequency after the end of the historical monitoring window period already exist. Therefore, a comparison can be performed based on the bandwidth data counted after the end of the previous monitoring window period and the bandwidth data counted after the end of the current monitoring window period. Since the computer system in the current monitoring window period is operating at the adjusted operating frequency after the end of the previous monitoring window period, the comparison of the bandwidth data counted after the end of the current monitoring window period and the bandwidth data counted after the end of the previous monitoring window period can reflect whether the adjusted operating frequency after the end of the previous monitoring window period can continue to meet the workload of the computer system in the next monitoring window period.
[0061] If the requirements are not met, the adjusted operating frequency after the previous monitoring window period can be lowered or raised to serve as the adjusted operating frequency after the current monitoring window period. If the requirements are met, the adjusted operating frequency after the previous monitoring window period can be maintained, i.e., the adjusted operating frequency after the previous monitoring window period will serve as the adjusted operating frequency after the current monitoring window period. This allows for fine-grained adjustment of the operating frequency within each monitoring window period, improving the accuracy and reliability of dynamic power adjustment.
[0062] It can be seen that the embodiment of the present invention avoids using fixed empirical values to set the frequency threshold for dynamic frequency adjustment. Instead, it combines the adjusted working frequency after the end of the previous monitoring window period and the bandwidth data comparison to adjust the working frequency after the end of the current monitoring window period, thereby improving the rationality and accuracy of the frequency adjustment.
[0063] In DPM, bandwidth statistics after each monitoring window can be obtained based on the dynamic power management signal (DPM signal). The DPM signal is used to monitor hardware bandwidth data, and after each monitoring window (after the monitoring window timer expires), the monitored bandwidth data is counted to obtain the bandwidth statistics after each monitoring window.
[0064] Step S103: When the operation target of the computer system is met, the execution of the frequency adjustment task is terminated.
[0065] The frequency adjustment is performed using the frequency adjustment method after each monitoring window period, until the operation target of the computer system is met, and then the execution of the frequency adjustment task is stopped. The operation target may include:
[0066] System load stabilization target: When the computer system load reaches a relatively stable level and frequent frequency adjustment is no longer required, the execution of the frequency adjustment task can be stopped.
[0067] Reaching a preset power consumption or performance target: When the computer system has reached a preset power consumption optimization target or performance requirement, the execution of the frequency adjustment task may be stopped.
[0068] Entering target mode: When the system enters a specific operating mode, such as sleep mode or high-performance mode, the frequency adjustment task will be terminated or paused accordingly.
[0069] Of course, the frequency adjustment task may also be terminated naturally when the computer system is shut down or restarted, or when the user manually intervenes in the frequency adjustment task, such as manually setting the frequency or disabling the dynamic frequency adjustment function, in which case the execution of the frequency adjustment task may be stopped.
[0070] Therefore, the frequency adjustment task ends when the computer system reaches its operating goals, which can be power consumption, performance, stability, or user settings. This dynamic adjustment mechanism enables the system to optimize power consumption and performance according to actual needs, improving energy efficiency.
[0071] The specific number of monitoring windows can be determined according to the operation target of the computer system, so that the operation target of the computer system is met after the frequency adjustment task is completed through multiple monitoring windows.
[0072] It can be seen that the technical solution provided by the embodiment of the present invention, when performing the frequency adjustment task to adjust the frequency after each monitoring window period, for the frequency adjustment after the first monitoring window period, the working frequency after the first monitoring window period (i.e., the working frequency within the first monitoring window period) can be used to determine the frequency point corresponding to the working frequency after the first monitoring window period, and then the opposite adjustment of the frequency point is performed to achieve the frequency adjustment after the first monitoring window period. For the frequency adjustment after the subsequent monitoring window periods other than the first monitoring window period, the bandwidth data counted after the end of the current monitoring window period (i.e., the real-time bandwidth data counted after the end of the current monitoring window period) is used to compare with the bandwidth data counted after the end of the previous monitoring window period; since the bandwidth data can represent the workload of the computer system during the current monitoring window period, in the embodiment of the present invention, after the subsequent monitoring window periods other than the first monitoring window period, by comparing the bandwidth data counted after the end of two adjacent monitoring window periods during the frequency adjustment, it can be determined whether the computer system is within the current monitoring window period. Workload situation, and then it can be determined whether to adjust the working frequency in the current monitoring window period (i.e., the adjusted working frequency after the end of the previous monitoring window period) according to the comparison result, and obtain the adjusted frequency after the end of the current monitoring window period as the working frequency in the next monitoring window period; thereby making the adjusted working frequency after the end of the current monitoring window period consistent with the working frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted working frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted working frequency after the end of the previous monitoring window period, thereby achieving a refined adjustment of the working frequency after each monitoring window period. It can be seen that the technical solution provided by the embodiment of the present invention does not set a fixed frequency threshold in the adjustment frequency after the end of each monitoring window period, but is based on the actual situation after the end of the previous monitoring window period, and adjusts the frequency after the end of the current monitoring window period after the workload situation is judged, so that the working frequency in the next monitoring window period conforms to the actual operation of the computer system. Thus, it can avoid the way of relying on empirical values for dynamic power management, and thus it can avoid the normal operation problem of empirical values limiting dynamic power management, and improve the accuracy of dynamic power management.
[0073] In dynamic power management, two frequency points are usually set: a low frequency point and a high frequency point. The low frequency point is the frequency range when the computer system runs in energy-saving mode, and the high frequency point is the frequency range when the computer system runs in high-performance mode.
[0074] That is, each type of frequency point corresponds to a frequency range, so that the adjusted operating frequency is within the frequency range of the corresponding frequency point, meeting the operation requirements of the computer system.
[0075] For example, the adjustment of the working frequency after the first monitoring window period can refer to Figure 2 , Figure 2 FIG. 4 is another flow chart of the frequency adjustment method provided by an embodiment of the present invention.
[0076] like Figure 2 As shown, the method may include the following steps:
[0077] Step S201: Execute a frequency adjustment task after the first monitoring window period ends.
[0078] Step S202: Determine whether the operating frequency after the first monitoring window period ends corresponds to a high frequency point. If yes, execute step S203; if not, execute step S204.
[0079] Step S203 : adjusting the operating frequency after the first monitoring window period ends to the operating frequency corresponding to the low frequency point, thereby obtaining an adjusted operating frequency after the first monitoring window period ends.
[0080] Step S204 : adjusting the operating frequency after the first monitoring window period ends to the operating frequency corresponding to the high frequency point, to obtain an adjusted operating frequency after the first monitoring window period ends.
[0081] Of course, in one embodiment, before step S202, after the first monitoring window period ends, bandwidth data after the first monitoring window period may be synchronously counted to facilitate frequency adjustment after the second monitoring window period ends. After each monitoring window period ends, the bandwidth data counted after the monitoring window period may be recorded to facilitate frequency adjustment after the subsequent monitoring window period ends.
[0082] When the operating frequency corresponds to a high frequency point after the first monitoring window, it is adjusted to a low frequency point. This optimizes power consumption, reduces heat, and avoids overperformance. This works in conjunction with load prediction and voltage adjustment strategies. When the operating frequency corresponds to a low frequency point after the first monitoring window, it is adjusted to a high frequency point. This allows for dynamic adjustment strategies that adapt to load changes and optimize power consumption and performance.
[0083] In other embodiments, for the implementation of the frequency adjustment corresponding to the non-first monitoring window period, reference may be made to Figure 3 , Figure 3 This is another flowchart of the frequency adjustment method provided by an embodiment of the present invention.
[0084] like Figure 3 As shown, the method may include the following steps:
[0085] Step S301: After the subsequent monitoring windows except the first monitoring window end, the frequency adjustment task is performed after the current monitoring window ends.
[0086] For subsequent monitoring windows, excluding the first, the monitoring window during which the frequency adjustment task is currently being executed ends after the current monitoring window. For the current monitoring window, historical bandwidth data already exists as a basis for comparison: the bandwidth data recorded after the previous monitoring window. This allows bandwidth data comparison and selection for frequency adjustment after the current monitoring window ends.
[0087] Step S302 , in the case of different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, bandwidth data counted after the end of the previous monitoring window period is compared with bandwidth data counted after the end of the current monitoring window period.
[0088] The frequency adjustment method for different comparison results is affected by the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window. Therefore, accurate frequency adjustment is performed based on the specific frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window according to different comparison results.
[0089] Step S303 , combining the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, adjusting the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result, and obtaining the adjusted operating frequency after the end of the current monitoring window period.
[0090] Since the frequency corresponding to the adjusted operating frequency after the last monitoring window period can be either a low frequency point or a high frequency point, the frequency adjustment direction selected based on the comparison results is different for different operating frequencies. Therefore, to accurately adjust the operating frequency after each monitoring window period to meet the operating conditions of the computer system, adaptive adjustment can be made based on the specific frequency point corresponding to the adjusted operating frequency after the last monitoring window period.
[0091] In one embodiment, when the frequency corresponding to the adjusted operating frequency after the last monitoring window period ends is a low frequency point, step S303 may include:
[0092] If the bandwidth data counted after the previous monitoring window period is greater than the bandwidth data counted after the current monitoring window period, the frequency point corresponding to the adjusted operating frequency after the previous monitoring window period is adjusted to the high frequency point, which is used as the adjusted operating frequency after the current monitoring window period.
[0093] If the bandwidth data counted after the end of the previous monitoring window period is equal to the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
[0094] When the frequency point corresponding to the adjusted operating frequency after the end of the last monitoring window period is a low frequency point, if the bandwidth data counted after the end of the last monitoring window period is greater than the bandwidth data counted after the end of the current monitoring window period, it means that the computer system is working at the adjusted operating frequency after the end of the last monitoring window period (the frequency corresponding to the low frequency point) in the current monitoring window period, and the bandwidth is also reduced. At this time, in order to balance performance and power consumption, the adjusted operating frequency after the end of the last monitoring window period can be increased, that is, the frequency point corresponding to the adjusted operating frequency after the end of the last monitoring window period is adjusted to a high frequency point, as the adjusted operating frequency after the end of the current monitoring window period, to avoid performance degradation.
[0095] If there's no significant change in bandwidth statistics between two monitoring windows, this indicates that the computer system's workload is relatively stable during the current monitoring window at the adjusted operating frequency (the frequency at the low frequency point) after the previous monitoring window. This means that the adjusted operating frequency after the previous monitoring window had a minimal impact on bandwidth, with no significant increase or decrease. The computer system can still meet performance requirements at the low frequency (the frequency at the low frequency point). Therefore, the adjusted operating frequency after the previous monitoring window (the frequency corresponding to the low frequency point) can be maintained as the adjusted operating frequency after the current monitoring window.
[0096] In other embodiments, when the frequency corresponding to the adjusted operating frequency after the last monitoring window period is a high frequency point, step S303 may include:
[0097] If the bandwidth data collected after the previous monitoring window is equal to the bandwidth data collected after the current monitoring window, the frequency corresponding to the adjusted operating frequency after the previous monitoring window is adjusted to the lower frequency point, which is used as the adjusted operating frequency after the current monitoring window.
[0098] If the bandwidth data counted after the end of the previous monitoring window period is less than the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
[0099] In the case where the adjusted operating frequency after the end of the last monitoring window period corresponds to the high frequency point, if the result of comparing the bandwidth data counted at the end of the current and last monitoring window periods is equal, it means that the adjusted operating frequency after the end of the last monitoring window period still has a margin. During the current monitoring window period, the computer system operates according to the adjusted operating frequency after the end of the last monitoring window period (the frequency corresponding to the high frequency point), and its load situation does not change significantly, which means that it is meaningless to adjust to the high frequency point. Therefore, the frequency adjustment after the end of the current monitoring window period can be: lowering the adjusted operating frequency after the end of the last monitoring window period, that is, adjusting the frequency point corresponding to the adjusted operating frequency after the end of the last monitoring window period to a low frequency point, as the operating frequency in the next monitoring window period, thereby saving power consumption.
[0100] When comparing the bandwidth data counted after the end of the current monitoring window period with the bandwidth data counted after the end of the previous monitoring window period, it is shown that the bandwidth data counted after the end of the current monitoring window period has obviously increased, it means that the subsequent workload of the computer system is still at a high load. At this time, the operating frequency of the high frequency point (that is, the adjusted operating frequency after the end of the previous monitoring window period) should be maintained to meet the subsequent load conditions.
[0101] To facilitate understanding of the implementation of the technical solution provided by the embodiment of the present invention, the following description is made by taking the execution of the frequency adjustment task after the end of two monitoring windows as an example.
[0102] Please refer to Figure 4 , Figure 4 This is another flowchart of the frequency adjustment method provided by an embodiment of the present invention.
[0103] like Figure 4 Said method comprises:
[0104] Step S401: determining a frequency adjustment task and executing the frequency adjustment task after the first monitoring window period ends.
[0105] Step S402: Obtain the operating frequency after the first monitoring window period ends.
[0106] For ease of explanation, the bandwidth data collected after the first monitoring window period ends is recorded as X.
[0107] Step S403: Determine whether the operating frequency after the first monitoring window period ends is the frequency corresponding to the high frequency point. If yes, execute step S404; if not, execute step S409.
[0108] Step S404 : adjusting the operating frequency after the first monitoring window period ends to the operating frequency corresponding to the low frequency point, thereby obtaining an adjusted operating frequency after the first monitoring window period ends.
[0109] The adjusted operating frequency after the end of the first monitoring window period is used as the operating frequency during the second monitoring window period.
[0110] Step S405: After the second monitoring window period ends, the frequency adjustment task is performed, and bandwidth data collected after the second monitoring window period ends is obtained.
[0111] The frequency point corresponding to the adjusted operating frequency after the first monitoring window period ends is set as the low frequency point, and the bandwidth data statistically obtained after the second monitoring window period ends is recorded as Y.
[0112] Step S406: Determine whether the bandwidth data collected after the first monitoring window period is greater than the bandwidth data collected after the second monitoring window period. If not, execute step S407; if yes, execute step S408.
[0113] The bandwidth data counted after the first monitoring window period ends can be counted and recorded after the first monitoring window period ends.
[0114] Step S407 : maintaining the adjusted operating frequency after the first monitoring window period ends as the adjusted operating frequency after the second monitoring window period ends.
[0115] When X=Y, the adjusted operating frequency (T l ).
[0116] Step S408 : adjusting the frequency point corresponding to the adjusted operating frequency after the first monitoring window period ends to a high frequency point, and using it as the adjusted operating frequency after the second monitoring window period ends.
[0117] When X>Y, the adjusted operating frequency (T l ) is the high frequency point (T h ) corresponds to the operating frequency.
[0118] Step S409 : adjusting the operating frequency after the first monitoring window period ends to the operating frequency corresponding to the high frequency point, thereby obtaining an adjusted operating frequency after the first monitoring window period ends.
[0119] Step S410: After the second monitoring window period ends, the frequency adjustment task is performed, and bandwidth data collected after the second monitoring window period ends is obtained.
[0120] The frequency point corresponding to the adjusted operating frequency after the first monitoring window period ends is set as the high frequency point, and the bandwidth data base obtained after the second monitoring window period ends is statistically calculated as Z.
[0121] Step S411: Determine whether the bandwidth data statistically obtained after the end of the second monitoring window period is greater than the bandwidth data statistically obtained after the end of the first monitoring window period. If yes, execute Step S412; if no, execute Step S413.
[0122] Step S412: Keep the adjusted working frequency after the end of the first monitoring window period as the adjusted working frequency after the end of the second monitoring window period.
[0123] When X is equal to Z, the adjusted working frequency (T h ) after the end of the first monitoring window period can be adjusted to the low-frequency point T l corresponding working frequency.
[0124] Step S413: Adjust the frequency point corresponding to the adjusted working frequency after the end of the first monitoring window period to the low-frequency point as the adjusted working frequency after the end of the second monitoring window period.
[0125] When X < Z, the adjusted working frequency (T h ) after the end of the first monitoring window period can be kept.
[0126] An embodiment of the present invention further provides a frequency adjustment device. Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of the frequency adjustment device provided by the embodiment of the present invention. The device is used to adjust the working frequency of a computer system.
[0127] As Figure 5 shown, the frequency adjustment device 5 may include:
[0128] A task determination module 50, configured to determine a frequency adjustment task;
[0129] A frequency real-time adjustment module 51, configured to execute the frequency adjustment task after the end of at least one monitoring window period, and use the adjusted working frequency obtained each time after executing the frequency adjustment task as the working frequency within the adjacent next monitoring window period; wherein, during the process of executing the frequency adjustment task, after the end of the first monitoring window period, an adjustment of the opposite frequency point is performed based on the frequency point corresponding to the working frequency after the end of the first monitoring window period to obtain the adjusted working frequency after the end of the first monitoring window period; after the end of the subsequent monitoring window periods except the first monitoring window period, the bandwidth data statistically obtained after the end of the previous monitoring window period is compared with the bandwidth data statistically obtained after the end of the current monitoring window period; and the adjusted working frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted working frequency after the end of the current monitoring window period;
[0130] A task ending module 52, configured to end execution of the frequency adjustment task until an operation target of the computer system is met;
[0131] Among them, after the end of subsequent monitoring window periods other than the first monitoring window period, the adjusted operating frequency after the end of the current monitoring window period is consistent with the adjusted operating frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted operating frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period.
[0132] Optionally, the frequency point includes a high frequency point and a low frequency point; the low frequency point is a frequency range when the computer system operates in an energy-saving mode, and the high frequency point is a frequency range when the computer system operates in a high-performance mode;
[0133] The real-time frequency adjustment module 51 is configured to adjust the frequency point in the opposite direction based on the frequency point corresponding to the operating frequency at the end of the first monitoring window period after the first monitoring window period ends, to obtain the adjusted operating frequency at the end of the first monitoring window period, including:
[0134] After the first monitoring window period ends, determining whether the operating frequency after the first monitoring window period ends corresponds to a high frequency point;
[0135] If yes, adjusting the operating frequency after the first monitoring window period ends to the operating frequency corresponding to the low frequency point, to obtain an adjusted operating frequency after the first monitoring window period ends;
[0136] If not, the operating frequency after the first monitoring window period ends is adjusted to the operating frequency corresponding to the high frequency point to obtain an adjusted operating frequency after the first monitoring window period ends.
[0137] Optionally, the real-time frequency adjustment module 51 is configured to compare, after subsequent monitoring windows other than the first monitoring window, bandwidth data collected after the previous monitoring window with bandwidth data collected after the current monitoring window, including:
[0138] After the end of subsequent monitoring windows other than the first monitoring window, at different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window, the bandwidth data collected after the end of the previous monitoring window is compared with the bandwidth data collected after the end of the current monitoring window.
[0139] The frequency real-time adjustment module 51 is configured to adjust the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result to obtain the adjusted operating frequency after the end of the current monitoring window period, including:
[0140] Combined with the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted operating frequency after the end of the current monitoring window period.
[0141] Optionally, when the frequency point corresponding to the adjusted operating frequency after the end of the last monitoring window period is a low frequency point, the real-time frequency adjustment module 51 is configured to adjust the adjusted operating frequency after the end of the last monitoring window period based on the comparison result in combination with the different frequency points corresponding to the adjusted operating frequency after the end of the last monitoring window period, to obtain the adjusted operating frequency after the end of the current monitoring window period, including:
[0142] If the bandwidth data counted after the previous monitoring window period is greater than the bandwidth data counted after the current monitoring window period, the frequency point corresponding to the adjusted operating frequency after the previous monitoring window period is adjusted to the high frequency point, which is used as the adjusted operating frequency after the current monitoring window period.
[0143] If the bandwidth data counted after the end of the previous monitoring window period is equal to the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
[0144] Optionally, when the frequency point corresponding to the adjusted operating frequency after the end of the last monitoring window period is a high frequency point, the real-time frequency adjustment module 51 is configured to adjust the adjusted operating frequency after the end of the last monitoring window period based on the comparison result in combination with the different frequency points corresponding to the adjusted operating frequency after the end of the last monitoring window period, to obtain the adjusted operating frequency after the end of the current monitoring window period, including:
[0145] If the bandwidth data collected after the previous monitoring window is equal to the bandwidth data collected after the current monitoring window, the frequency corresponding to the adjusted operating frequency after the previous monitoring window is adjusted to the lower frequency point, which is used as the adjusted operating frequency after the current monitoring window.
[0146] If the bandwidth data counted after the end of the previous monitoring window period is less than the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
[0147] It can be seen that the technical solution provided by the embodiment of the present invention, when performing the frequency adjustment task to adjust the frequency after each monitoring window period, for the frequency adjustment after the first monitoring window period, the working frequency after the first monitoring window period (i.e., the working frequency within the first monitoring window period) can be used to determine the frequency point corresponding to the working frequency after the first monitoring window period, and then the opposite adjustment of the frequency point is performed to achieve the frequency adjustment after the first monitoring window period. For the frequency adjustment after the subsequent monitoring window periods other than the first monitoring window period, the bandwidth data counted after the end of the current monitoring window period (i.e., the real-time bandwidth data counted after the end of the current monitoring window period) is used to compare with the bandwidth data counted after the end of the previous monitoring window period; since the bandwidth data can represent the workload of the computer system during the current monitoring window period, in the embodiment of the present invention, after the subsequent monitoring window periods other than the first monitoring window period, by comparing the bandwidth data counted after the end of two adjacent monitoring window periods during the frequency adjustment, it can be determined whether the computer system is within the current monitoring window period. Workload situation, and then it can be determined whether to adjust the working frequency in the current monitoring window period (i.e., the adjusted working frequency after the end of the previous monitoring window period) according to the comparison result, and obtain the adjusted frequency after the end of the current monitoring window period as the working frequency in the next monitoring window period; thereby making the adjusted working frequency after the end of the current monitoring window period consistent with the working frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted working frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted working frequency after the end of the previous monitoring window period, thereby achieving a refined adjustment of the working frequency after each monitoring window period. It can be seen that the technical solution provided by the embodiment of the present invention does not set a fixed frequency threshold in the adjustment frequency after the end of each monitoring window period, but is based on the actual situation after the end of the previous monitoring window period, and adjusts the frequency after the end of the current monitoring window period after the workload situation is judged, so that the working frequency in the next monitoring window period conforms to the actual operation of the computer system. Thus, it can avoid the way of relying on empirical values for dynamic power management, and thus it can avoid the normal operation problem of empirical values limiting dynamic power management, and improve the accuracy of dynamic power management.
[0148] The embodiment of the present invention also provides a computer system, please refer to Figure 6 , Figure 6 It is a structural diagram of a computer system provided by an embodiment of the present invention.
[0149] like Figure 6 As shown, the computer system includes the frequency adjustment device 5 as described in any of the above embodiments.
[0150] As can be seen, the technical solution provided by the embodiments of the present invention does not set a fixed frequency threshold for adjusting the frequency after each monitoring window period. Instead, it adjusts the frequency after the current monitoring window period based on the actual workload after the previous monitoring window period, so that the operating frequency during the next monitoring window period conforms to the actual operating conditions of the computer system. This avoids relying on empirical values for dynamic power management, further preventing the problem of empirical values limiting the normal operation of dynamic power management, and improving the accuracy of dynamic power management.
[0151] An embodiment of the present invention provides an electronic device, such as a computer device such as a terminal device and a server device, including a memory and a processor, wherein the memory stores a program, and the processor calls the program stored in the memory to execute the clock frequency management method of the routing node as described in one of the aforementioned embodiments.
[0152] An embodiment of the present invention provides a storage medium storing a program. When the program is executed, the method for managing the clock frequency of a routing node as described in any one of the aforementioned embodiments is implemented.
[0153] An embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the method for managing the clock frequency of a routing node as described in any one of the aforementioned embodiments is implemented.
[0154] The above describes multiple embodiment schemes provided by the embodiments of the present invention. The various optional methods introduced in each embodiment scheme can be combined and cross-referenced with each other without conflict, thereby extending a variety of possible embodiment schemes, which can all be considered as embodiment schemes disclosed and open in the embodiments of the present invention.
[0155] Although the embodiments of the present invention are disclosed above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be based on the scope defined by the claims.
Claims
1. A frequency adjustment method, characterized in that: Used to adjust the operating frequency of a computer system, the frequency adjustment method includes: Determine frequency adjustment tasks; The frequency adjustment task is performed after the end of at least one monitoring window period, and the adjusted working frequency after the end of each monitoring window period corresponding to the execution of the frequency adjustment task is used as the working frequency in the adjacent next monitoring window period; wherein, in the process of executing the frequency adjustment task, after the end of the first monitoring window period, the opposite frequency point is adjusted based on the frequency point corresponding to the working frequency after the end of the first monitoring window period, and the adjusted working frequency after the end of the first monitoring window period is obtained; after the end of subsequent monitoring window periods other than the first monitoring window period, the bandwidth data counted after the end of the previous monitoring window period is used to compare with the bandwidth data counted after the end of the current monitoring window period; and the adjusted working frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted working frequency after the end of the current monitoring window period; When the operation target of the computer system is met, the execution of the frequency adjustment task is terminated; Among them, after the end of subsequent monitoring window periods other than the first monitoring window period, the adjusted operating frequency after the end of the current monitoring window period is consistent with the adjusted operating frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted operating frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period.
2. The frequency adjustment method according to claim 1, wherein: The frequency points include high frequency points and low frequency points; the low frequency point is the frequency range of the computer system when it is running in energy-saving mode, and the high frequency point is the frequency range of the computer system when it is running in high-performance mode; After the first monitoring window period ends, adjusting the opposite frequency point based on the frequency point corresponding to the operating frequency after the first monitoring window period ends to obtain the adjusted operating frequency after the first monitoring window period ends includes: After the first monitoring window period ends, determining whether the operating frequency after the first monitoring window period ends corresponds to a high frequency point; If yes, adjusting the operating frequency after the first monitoring window period ends to the operating frequency corresponding to the low frequency point, to obtain an adjusted operating frequency after the first monitoring window period ends; If not, the operating frequency after the first monitoring window period ends is adjusted to the operating frequency corresponding to the high frequency point to obtain an adjusted operating frequency after the first monitoring window period ends.
3. The frequency adjustment method according to claim 2, wherein: After the subsequent monitoring window periods other than the first monitoring window period have ended, the bandwidth data collected after the previous monitoring window period is compared with the bandwidth data collected after the current monitoring window period has ended, including: After the end of subsequent monitoring windows other than the first monitoring window, at different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window, the bandwidth data collected after the end of the previous monitoring window is compared with the bandwidth data collected after the end of the current monitoring window. The adjusting the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result to obtain the adjusted operating frequency after the end of the current monitoring window period includes: Combined with the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted operating frequency after the end of the current monitoring window period.
4. The frequency adjustment method according to claim 3, wherein: When the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period is a low frequency point, combining the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, adjusting the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result, and obtaining the adjusted operating frequency after the end of the current monitoring window period, includes: If the bandwidth data counted after the previous monitoring window period is greater than the bandwidth data counted after the current monitoring window period, the frequency point corresponding to the adjusted operating frequency after the previous monitoring window period is adjusted to the high frequency point, which is used as the adjusted operating frequency after the current monitoring window period. If the bandwidth data counted after the end of the previous monitoring window period is equal to the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
5. The frequency adjustment method according to claim 4, wherein: When the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period is a high frequency point, combining the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, adjusting the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result, and obtaining the adjusted operating frequency after the end of the current monitoring window period, includes: If the bandwidth data collected after the previous monitoring window is equal to the bandwidth data collected after the current monitoring window, the frequency corresponding to the adjusted operating frequency after the previous monitoring window is adjusted to the lower frequency point, which is used as the adjusted operating frequency after the current monitoring window. If the bandwidth data counted after the end of the previous monitoring window period is less than the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
6. The frequency adjustment method according to any one of claims 1 to 5, wherein: The bandwidth data collected after each monitoring window period is obtained based on the dynamic power management signal.
7. A frequency adjustment device, characterized in that: Used to adjust the operating frequency of a computer system, the frequency adjustment device comprises: A task determination module, used for determining a frequency adjustment task; A real-time frequency adjustment module is used to execute the frequency adjustment task after the end of at least one monitoring window period, and the adjusted working frequency after the end of each monitoring window period corresponding to the execution of the frequency adjustment task is used as the working frequency in the next adjacent monitoring window period; wherein, in the process of executing the frequency adjustment task, after the end of the first monitoring window period, the opposite frequency point is adjusted based on the frequency point corresponding to the working frequency after the end of the first monitoring window period to obtain the adjusted working frequency after the end of the first monitoring window period; after the end of subsequent monitoring windows other than the first monitoring window period, the bandwidth data counted after the end of the previous monitoring window period is used to compare with the bandwidth data counted after the end of the current monitoring window period; and the adjusted working frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted working frequency after the end of the current monitoring window period; A task ending module, configured to end the execution of the frequency adjustment task until the operation target of the computer system is met; Among them, after the end of subsequent monitoring window periods other than the first monitoring window period, the adjusted operating frequency after the end of the current monitoring window period is consistent with the adjusted operating frequency after the end of the previous monitoring window period, or the frequency point corresponding to the adjusted operating frequency after the end of the current monitoring window period is opposite to the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period.
8. The frequency adjustment device according to claim 7, wherein: The frequency points include high frequency points and low frequency points; the low frequency point is the frequency range of the computer system when it is running in energy-saving mode, and the high frequency point is the frequency range of the computer system when it is running in high-performance mode; The real-time frequency adjustment module is configured to adjust the frequency point in the opposite direction based on the frequency point corresponding to the operating frequency after the first monitoring window period ends, to obtain the adjusted operating frequency after the first monitoring window period ends, including: After the first monitoring window period ends, determining whether the operating frequency after the first monitoring window period ends corresponds to a high frequency point; If yes, adjusting the operating frequency after the first monitoring window period ends to the operating frequency corresponding to the low frequency point, to obtain an adjusted operating frequency after the first monitoring window period ends; If not, the operating frequency after the first monitoring window period ends is adjusted to the operating frequency corresponding to the high frequency point to obtain an adjusted operating frequency after the first monitoring window period ends.
9. The frequency adjustment device according to claim 8, wherein: The real-time frequency adjustment module is configured to compare, after subsequent monitoring windows other than the first monitoring window, the bandwidth data collected after the previous monitoring window with the bandwidth data collected after the current monitoring window, including: After the end of subsequent monitoring windows other than the first monitoring window, at different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window, the bandwidth data collected after the end of the previous monitoring window is compared with the bandwidth data collected after the end of the current monitoring window. The frequency real-time adjustment module is used to adjust the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result to obtain the adjusted operating frequency after the end of the current monitoring window period, including: Combined with the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is adjusted based on the comparison result to obtain the adjusted operating frequency after the end of the current monitoring window period.
10. The frequency adjustment device according to claim 9, wherein: When the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period is a low frequency point, the real-time frequency adjustment module is used to adjust the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result in combination with the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, to obtain the adjusted operating frequency after the end of the current monitoring window period, including: If the bandwidth data counted after the previous monitoring window period is greater than the bandwidth data counted after the current monitoring window period, the frequency point corresponding to the adjusted operating frequency after the previous monitoring window period is adjusted to the high frequency point, which is used as the adjusted operating frequency after the current monitoring window period. If the bandwidth data counted after the end of the previous monitoring window period is equal to the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
11. The frequency adjustment device according to claim 10, wherein: When the frequency point corresponding to the adjusted operating frequency after the end of the previous monitoring window period is a high frequency point, the real-time frequency adjustment module is used to adjust the adjusted operating frequency after the end of the previous monitoring window period based on the comparison result in combination with the different frequency points corresponding to the adjusted operating frequency after the end of the previous monitoring window period, to obtain the adjusted operating frequency after the end of the current monitoring window period, including: If the bandwidth data collected after the previous monitoring window is equal to the bandwidth data collected after the current monitoring window, the frequency corresponding to the adjusted operating frequency after the previous monitoring window is adjusted to the lower frequency point, which is used as the adjusted operating frequency after the current monitoring window. If the bandwidth data counted after the end of the previous monitoring window period is less than the bandwidth data counted after the end of the current monitoring window period, the adjusted operating frequency after the end of the previous monitoring window period is retained as the adjusted operating frequency after the end of the current monitoring window period.
12. A computer system, characterized in that: It comprises a frequency adjustment device as described in any one of claims 7 to 11.
13. An electronic device, characterized in that: The device comprises a memory and a processor, wherein the memory stores a program, and the processor calls the program stored in the memory to execute the frequency adjustment method according to any one of claims 1 to 6.
14. A storage medium, characterized in that The storage medium stores a program, and when the program is executed, the frequency adjustment method according to any one of claims 1 to 6 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the frequency adjustment method according to any one of claims 1 to 6 is implemented.