Device Power Consumption Control Method, Product, Device and Medium
By judging task periodicity in the data center, predicting processor calculation volume and adjusting frequency, the problem of difficult to reasonably control server power consumption in the prior art is solved, and the balance between normal business execution and power consumption is achieved, and energy consumption is reduced.
Patent Information
- Application Number
- CN202411621971.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2044-11-14
AI Technical Summary
The prior art is difficult to reasonably control server power consumption while ensuring normal service execution. Especially in data centers, excessive server power consumption will increase the power load and cannot be fully suitable for power consumption control.
By determining whether the task running on the target device is a periodic task, determining the running time period, predicting the calculation amount of the processor in this period, determining the processor frequency required when the minimum power consumption completes the predicted calculation amount, and operating control is performed based on this frequency to achieve power consumption control.
It realizes that server power consumption is reasonably controlled without reducing processor computing, ensuring that the equipment can perform business normally, while reducing power consumption, saving costs and reducing carbon emissions.
Smart Images

Figure CN119126963B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power consumption control, and in particular to a method, product, device and medium for controlling power consumption of a device. Background Art
[0002] Nowadays, the scale of newly built data centers is getting larger and larger, and power consumption is also increasing. Therefore, the management of server power consumption in data center management has become increasingly important. For example, when a large number of servers are overloaded, the server power consumption may be too high, approaching or even exceeding the rated power consumption of the data center design, increasing the power burden of the data center server. For example, the business demand for some servers in the data center is not high, and it is necessary to reduce the server power consumption to reduce power consumption, save data center operating costs, and reduce data center carbon emissions. After the server runs a single cycle according to the current processor power consumption, the server power consumption can be obtained, and the processor power consumption is proportional to the processor frequency. Therefore, controlling the processor frequency can effectively control the server power consumption, and then control the server power consumption.
[0003] Currently, the optimal processor frequency curve is fitted according to the external temperature of the server, and the processor frequency is adaptively adjusted according to the curve to solve the problem of processor heating. This cannot take into account performance and cannot guarantee the normal execution of business. In addition, frequency adjustment based on temperature is not completely suitable for power consumption control. In other words, the current optimal frequency can reduce the processor temperature, but the server power consumption is not necessarily the minimum power consumption.
[0004] It can be seen that how to not only execute services normally but also reasonably control the power consumption of the server is a problem that technical personnel in this field need to solve. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a device power consumption control method, product, device and medium, which can not only perform services normally, but also reasonably control server power consumption. The specific scheme is as follows:
[0006] In a first aspect, the present invention discloses a method for controlling power consumption of a device, comprising:
[0007] Determine whether the task currently running on the target device is a periodic task, and if the task currently running on the target device is a periodic task, determine the corresponding running time period;
[0008] Predicting the amount of computation of the processor in the target device during the running time period to obtain a corresponding target amount of computation prediction value;
[0009] Determining a target processor frequency required for the processor to complete an actual amount of computation consistent with a predicted value of a target amount of computation based on minimum power consumption;
[0010] Perform operation control on the target device based on the target processor frequency, so that the target device adopts the target processor frequency as the actual working frequency of the processor in the next operation time period, to achieve power consumption control of the target device.
[0011] Optionally, the determining the corresponding operation time period includes:
[0012] Collect the target processor utilization rates of the target device at different moments within a preset time period, and determine each of the target processor utilization rates as original time series data;
[0013] Perform periodic analysis on the original time series data to determine the corresponding operation time period.
[0014] Optionally, the performing periodic analysis on the original time series data to determine the corresponding operation time period includes:
[0015] Perform Fourier transform on the original time series data to obtain a spectrogram, and determine the corresponding operation time period based on the main frequency component of the spectrogram;
[0016] Optionally, the performing periodic analysis on the original time series data to determine the corresponding operation time period includes:
[0017] Analyze the correlation between the time series data in the original time series data, and determine the corresponding operation time period according to the correlation.
[0018] Optionally, the determining the target processor frequency required for the processor to complete the actual calculation amount consistent with the predicted value of the target calculation amount based on the least power consumption includes:
[0019] Obtain a pre-constructed initial processor energy consumption model with the processor frequency as the independent variable and the processor power consumption as the dependent variable;
[0020] Input the predicted value of the target calculation amount as the processor calculation amount in the initial processor energy consumption model into the initial processor energy consumption model to obtain a target processor energy consumption model;
[0021] Derive the target processor energy consumption model, and determine the target processor frequency required for the processor to complete the actual calculation amount consistent with the predicted value of the target calculation amount based on the least power consumption based on the derived model.
[0022] Optionally, the initial processor energy consumption model includes a first component and a second component, wherein the first component is determined based on the product between the processor calculation amount and the processor frequency, and the second component is determined based on the ratio between the processor calculation amount and the processor frequency.
[0023] Optionally, the first component and the second component in the initial processor energy consumption model are respectively configured with corresponding constant coefficients, and the constant coefficients are coefficients determined based on the pre-acquired reference processor frequencies and the corresponding reference processor power consumptions.
[0024] Optionally, acquiring the reference processor frequencies and the corresponding reference processor power consumptions includes:
[0025] Acquiring the reference processor frequencies, and controlling the target device to operate stably according to each of the reference processor frequencies, so as to collect the reference processor power consumption of the target device at different reference processor frequencies;
[0026] Optionally, determining the constant coefficients based on the reference processor frequencies and the corresponding reference processor power consumptions includes:
[0027] Performing power function fitting on each of the reference processor frequencies and the reference processor power consumption to obtain a target power consumption-frequency relationship function;
[0028] Determining the constant coefficients corresponding to the first component and the second component in the initial processor energy consumption model based on the coefficients in the target power consumption-frequency relationship function.
[0029] Optionally, the controlling the target device to operate stably according to each of the reference processor frequencies, so as to collect the reference processor power consumption of the target device at different reference processor frequencies includes:
[0030] Controlling the target device to operate stably according to the current reference processor frequency, so as to collect the reference processor power consumption of the target device at the current reference processor frequency;
[0031] Determining the sum of the preset frequency increment and the current reference processor frequency as the next reference processor frequency, and updating the next reference processor frequency as the current reference processor frequency, and then re-jumping to the step of controlling the target device to operate stably according to the current reference processor frequency.
[0032] Optionally, the controlling the operation of the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operation time period, so as to implement power consumption control of the target device includes:
[0033] Determining the target processor power consumption corresponding to the operation of the target device in a single operation time period based on the current processor power consumption of the target device, and determining whether the target processor power consumption is greater than a preset threshold;
[0034] If the power consumption of the target processor is greater than the preset threshold, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual operating frequency of the processor in the next operating time period, in order to achieve power consumption control of the target device.
[0035] Optionally, after determining whether the power consumption of the target processor is greater than the preset threshold, it further includes:
[0036] If the power consumption of the target processor is not greater than the preset threshold, determine the priority of the current task being processed by the target device. If the priority of the current task is lower than the preset priority, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual operating frequency of the processor in the next operating time period, in order to achieve power consumption control of the target device.
[0037] In a second aspect, the present invention discloses a computer program product, including a computer program / instructions, and when the computer program / instructions are executed by a processor, the steps of the device power consumption control method disclosed above are implemented.
[0038] In a third aspect, the present invention discloses an electronic device, including:
[0039] A memory for storing a computer program;
[0040] A processor for executing the computer program to implement the steps of the device power consumption control method disclosed above.
[0041] In a fourth aspect, the present invention discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the device power consumption control method disclosed above are implemented.
[0042] Thus, it can be seen that the present invention determines whether the task running on the current target device is a periodic task. If the task running on the current target device is a periodic task, determine the corresponding operating time period; predict the amount of computation of the processor in the target device within the operating time period to obtain a corresponding target computation prediction value; determine the target processor frequency required for the processor to complete the actual computation consistent with the target computation prediction value with the least power consumption; perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual operating frequency of the processor in the next operating time period, in order to achieve power consumption control of the target device.
[0043] Advantageous effects: When the task running on the current target device of the present application is a periodic task, the corresponding running time period is determined, and the computing amount of the processor in the target device within the running time period is predicted to obtain the corresponding target computing amount prediction value. The target processor frequency required for the processor to complete the actual computing amount consistent with the target computing amount prediction value with the least power consumption is determined. That is to say, the determined target processor frequency can ensure that the power consumption of the processor reaches the minimum when completing the actual workload matching the target computing amount prediction value. In this way, by controlling the target device to run at the target processor frequency, and the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, the power consumption control of the target device within the running time period can be achieved, and it is not necessary to reduce the processor computing amount of the target device within the running time period. And the processor computing amount can reflect the business execution situation. That is to say, keeping the processor computing amount stable means that the target device can execute the business normally. That is, the present application can not only execute the business normally, but also reasonably control the device power consumption. Brief Description of the Drawings
[0044] To more clearly illustrate the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0045] Figure 1 It is a flowchart of a device power consumption control method provided by an embodiment of the present invention;
[0046] Figure 2 It is a schematic layout diagram of a specific power consumption control structure provided by an embodiment of the present invention;
[0047] Figure 3 It is a schematic diagram of a specific optimal frequency determination provided by an embodiment of the present invention;
[0048] Figure 4 It is a flowchart of a specific device power consumption control method provided by an embodiment of the present invention;
[0049] Figure 5 It is a schematic structural diagram of a device power consumption control device provided by an embodiment of the present invention;
[0050] Figure 6 It is a structural diagram of an electronic device provided by an embodiment of the present invention. Detailed Embodiments
[0051] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the protection scope of the present invention.
[0052] Nowadays, the scale of newly built data centers is getting larger and larger, and the power consumption also increases accordingly. Therefore, the management of the power consumption of servers in data center management becomes increasingly important. For example, when the load of a large number of servers is too high, the power consumption of the servers may be too high, approaching or even exceeding the designed rated power consumption of the data center, which increases the power supply burden of the data center servers; another example is that when the business requirements of some servers in the data center are not high, it is necessary to reduce the power consumption of the servers to reduce the power consumption, save the operating cost of the data center, and reduce the carbon emissions of the data center. After the server runs for a single cycle according to the current processor power consumption, the power consumption of the server can be obtained, and the processor power consumption is proportional to the processor frequency. Therefore, controlling the processor frequency can effectively control the server power consumption, and further control the server power consumption.
[0053] Currently, the optimal processor frequency curve is fitted according to the external temperature of the server, and then the processor frequency is adaptively adjusted according to this curve to solve the problem of processor heating. However, it cannot take into account the performance and cannot ensure the normal execution of the business. Moreover, the frequency adjustment aimed at temperature is not fully suitable for power consumption control. That is to say, the current optimal frequency can reduce the processor temperature, but the server power consumption is not necessarily the minimum power consumption.
[0054] The terms "including" and "having" in the specification of the present invention and the above-mentioned accompanying drawings, as well as any variations related to "including" and "having", are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0055] In order to enable those skilled in the art of the present technology to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0056] Next, a device power consumption control solution provided by the embodiments of the present invention will be introduced in detail. Figure 1 A device power consumption control method provided for the embodiments of the present invention includes:
[0057] Step S11: Determine whether the task running on the current target device is a periodic task. If the task running on the current target device is a periodic task, determine the corresponding running time period.
[0058] For exampleFigure 2 A schematic diagram of a specific power consumption control structure layout shown. To achieve device power consumption control, a collection device, a computing device, and a control device are required. The collection device collects relevant metrics of the target device's CPU (Central Processing Unit), including metrics such as CPU utilization and CPU power consumption, through an in-band network, and filters the collected metrics to filter out overly abnormal metrics. The computing device is used to calculate the optimal CPU frequency for the next cycle based on the filtered metrics. The control device is used to send instructions to the CPU to limit the CPU frequency, etc. Among them, the target device can specifically be a server.
[0059] Determine whether the task running on the current target device is a periodic task. If so, the device's periodic service changes can be reflected by CPU utilization, and the corresponding running time period can be determined by analyzing the main frequency component or analyzing the autocorrelation function.
[0060] S12: Predict the amount of computation of the processor in the target device during the running time period to obtain the corresponding target computation prediction value.
[0061] CPU utilization refers to the proportion of the time when the CPU is busy in the total time, and the CPU frequency refers to the number of calculations that the CPU can perform per second, usually measured in Hertz (Hz). Therefore, if you want to predict the amount of computation of the CPU within a certain time period, multiplying the three factors of CPU utilization, CPU frequency, and time is a simplified calculation model to predict the CPU computation amount. The specific model formula is as follows:
[0062] N = f * T * U;
[0063] Among them, N represents the processor computation amount, which is the target computation prediction value in this embodiment, f represents the CPU frequency, T represents the running time period, and U represents the average CPU utilization during the running time period.
[0064] Step S13: Determine the target processor frequency required for the processor to complete the actual computation amount consistent with the target computation prediction value based on the least power consumption.
[0065] In this embodiment, determining the target processor frequency required for the processor to complete the actual computation amount consistent with the predicted target computation amount based on the least power consumption includes: obtaining an initial processor energy consumption model with the processor frequency as the independent variable and the processor power consumption as the dependent variable; inputting the predicted target computation amount as the processor computation amount in the initial processor energy consumption model to obtain a target processor energy consumption model; and determining the target processor frequency required for the processor to complete the actual computation amount consistent with the predicted target computation amount based on the least power consumption by taking the derivative of the target processor energy consumption model and based on the model after taking the derivative.
[0066] In this embodiment, the initial processor energy consumption model includes a first component and a second component. Among them, the first component is determined based on the product between the processor computation amount and the processor frequency, and the second component is determined based on the ratio between the processor computation amount and the processor frequency.
[0067] In this embodiment, the first component and the second component in the initial processor energy consumption model are respectively configured with corresponding constant coefficients, and the constant coefficients are coefficients determined based on the pre-obtained reference processor frequencies and the corresponding reference processor power consumptions.
[0068] For example Figure 3 As shown in a specific optimal frequency determination schematic diagram, determining the optimal frequency is mainly divided into calculating the change period, that is, determining the running time period. Next is to obtain the power consumption model, that is, to obtain the target processor energy consumption model. Finally, calculate the optimal CPU frequency, that is, determine the target processor frequency required for the processor to complete the actual computation amount consistent with the predicted target computation amount based on the least power consumption.
[0069] Further, in the process of obtaining the target processor energy consumption model, first obtain the pre-constructed initial processor energy consumption model. This initial processor energy consumption model has the processor frequency as the independent variable and the processor power consumption as the dependent variable, and the initial processor energy consumption model includes a first component and a second component. Among them, the first component is determined based on the product between the processor computation amount and the processor frequency, the second component is determined based on the ratio between the processor computation amount and the processor frequency, the first component and the second component are respectively configured with corresponding constant coefficients, and the constant coefficients are coefficients determined based on the pre-obtained reference processor frequencies and the corresponding reference processor power consumptions. The specific form of the initial processor energy consumption model is as follows:
[0070] W = aNf + bN / f;
[0071] Wherein, W represents the power consumption of the processor, a and b respectively represent the constant coefficients of the first component and the second component, N represents the computing amount of the processor, f represents the processor frequency, aNf is the first component, and bN / f is the second component;
[0072] Secondly, input the predicted value of the target computing amount as the computing amount of the processor in the initial processor energy consumption model into the initial processor energy consumption model to obtain the target processor energy consumption model. The target processor energy consumption model means that at this time, both the constant coefficient and the computing amount of the processor are known quantities, so the processor power consumption W changes with the change of the processor frequency f;
[0073] It can be understood that by taking the derivative of the target processor energy consumption model and based on the model after derivation, the target processor frequency required for the processor to complete the actual computing amount consistent with the predicted value of the target computing amount with the least power consumption can be determined.
[0074] Furthermore, since only the processor power consumption W and the processor frequency f are variables in the target processor energy consumption model, draw the energy consumption curve of the target processor energy consumption model. This curve graph takes the processor frequency f as the abscissa and the processor power consumption W as the ordinate. Therefore, the least power consumption and the corresponding target processor frequency can be intuitively seen, which improves the efficiency of determining the target processor frequency and is also convenient for users to understand; among them, when the processor frequency f is the abscissa, the smaller the step size of the abscissa, the higher the accuracy of the subsequent determined target processor frequency.
[0075] In this embodiment, obtaining the reference processor frequency and the corresponding reference processor power consumption of each includes: obtaining each reference processor frequency, and controlling the target device to run stably according to each reference processor frequency to collect the reference processor power consumption of the target device at different reference processor frequencies. Obtain each reference processor frequency, limit the frequency of the processor through the operating system, wait until the device runs stably, and collect the current device power consumption data, that is, the reference processor power consumption corresponding to the reference processor frequency.
[0076] In this embodiment, determining the constant coefficient based on the reference processor frequency and the corresponding reference processor power consumption of each includes: performing a power function fitting on each of the reference processor frequencies and the reference processor power consumption to obtain a target power consumption-frequency relationship function; determining the constant coefficients corresponding to the first component and the second component in the initial processor energy consumption model based on the coefficients in the target power consumption-frequency relationship function. Since the CPU power consumption has an exponential relationship with the frequency, after collecting each reference processor frequency and the reference processor power consumption corresponding to each reference processor frequency, a power function fitting is performed on each reference processor frequency and the reference processor power consumption to obtain a target power consumption-frequency relationship function. The specific form of the target power consumption-frequency relationship function is as follows:
[0077] P = af 2 + b;
[0078] In the formula, P represents the processor power consumption, f represents the processor frequency, a and b are coefficients, and a is the constant coefficient corresponding to the first component in the initial processor energy consumption model, and b is the constant coefficient corresponding to the second component in the initial processor energy consumption model. In this way, after fitting the target power consumption-frequency relationship function, the constant coefficients corresponding to the first component and the second component in the initial processor energy consumption model can be determined.
[0079] In this embodiment, controlling the target device to operate stably at each of the reference processor frequencies to collect the reference processor power consumption of the target device at different reference processor frequencies includes: controlling the target device to operate stably at the current reference processor frequency to collect the reference processor power consumption of the target device at the current reference processor frequency; determining the sum of the preset frequency increment and the current reference processor frequency as the next reference processor frequency, and updating the next reference processor frequency to the current reference processor frequency, and then re-jumping to the step of controlling the target device to operate stably at the current reference processor frequency. For example, if the preset frequency increment is set to 10% of the current reference processor frequency f n , then the next reference processor frequency f n+1 is f n+1 = f n + 10% * f n . In this way, multiple reference processor frequencies and the reference processor power consumption of the target device at different reference processor frequencies can be collected.
[0080] It should be noted that the processor power consumption and the processor utilization rate can be considered to have a linear relationship. Therefore, the model for estimating the processor power consumption can be simplified to the product of the CPU full-load power consumption, the running time, and the CPU utilization rate, as shown below:
[0081] W = P * T * U;
[0082] In the formula, W represents the power consumption of the processor, P represents the power consumption of the processor, T represents the running time period, and U represents the utilization rate of the processor;
[0083] Therefore, by combining the target power consumption - frequency relationship function, the CPU computing volume prediction model, and the model for estimating the power consumption of the processor, an initial processor energy consumption model can be obtained.
[0084] Step S14: Perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, in order to achieve power consumption control of the target device.
[0085] In this embodiment, the performing operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, in order to achieve power consumption control of the target device, includes: determining the target processor power consumption corresponding to the target device during operation in a single running time period based on the current processor power consumption of the target device, and determining whether the target processor power consumption is greater than a preset threshold; if the target processor power consumption is greater than the preset threshold, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, in order to achieve power consumption control of the target device. Based on the current processor power consumption of the target device, the target processor power consumption corresponding to the target device during operation in a single running time period can be determined. The maintenance personnel determine the preset threshold according to the application scenario. If the target processor power consumption is greater than the preset threshold, it indicates that the current power consumption is relatively large and power consumption control is required. Then, the current processor frequency of the target device can be directly updated to the target processor frequency. After the frequency is updated, the corresponding power consumption and power consumption both decrease significantly. If the target processor power consumption is not greater than the preset threshold, it indicates that the current power consumption is relatively small and power consumption control may not be necessary. That is to say, even if the target processor power consumption is not the minimum power consumption, it does not need to be controlled.
[0086] In this embodiment, after determining whether the power consumption of the target processor is greater than a preset threshold, the following steps are further included: if the power consumption of the target processor is not greater than the preset threshold, determine the priority of the current task being processed by the target device; if the priority of the current task is lower than a preset priority, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operation time period, in order to achieve power consumption control of the target device. It can be understood that although the power consumption of the target processor is not greater than the preset threshold, the current processor frequency is not the target processor frequency. Then, the processor frequency of the target device can be determined whether to be regulated according to the priority of the current task being processed by the target device. That is to say, whether power consumption control is necessary at present. If the priority of the current task is lower than the preset priority, that is, the current task is not important, then the power consumption can be reduced. However, if the priority of the current task is high, it is necessary to ensure that the current task is processed stably, so the power consumption may not be reduced. In this way, more reasonable power consumption control can be achieved.
[0087] It can be seen from this that the present invention determines whether the task running on the current target device is a periodic task. If the task running on the current target device is a periodic task, the corresponding operation time period is determined; predict the amount of computation of the processor in the target device during the operation time period to obtain a corresponding target computation prediction value; determine the target processor frequency required for the processor to complete the actual computation consistent with the target computation prediction value with the least power consumption; perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operation time period, in order to achieve power consumption control of the target device.
[0088] The beneficial effects are as follows: when the task running on the current target device of the present application is a periodic task, the corresponding running time period is determined, and the computing amount of the processor in the target device within the running time period is predicted to obtain the corresponding target computing amount prediction value. The target processor frequency required for the processor to complete the actual computing amount consistent with the target computing amount prediction value based on the minimum power consumption is determined. That is to say, the determined target processor frequency can ensure that the power consumption of the processor reaches the minimum when completing the actual workload matching the target computing amount prediction value. In this way, by controlling the target device to run at the target processor frequency, and the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, the power consumption control of the target device within the running time period can be achieved, and it is not necessary to reduce the processor computing amount of the target device within the running time period. And the processor computing amount can reflect the business execution situation. That is to say, keeping the processor computing amount stable and unchanged indicates that the target device can execute the business normally. That is, the present application can not only execute the business normally, but also reasonably control the device power consumption.
[0089] See Figure 4 The embodiment of the present invention discloses a specific device power consumption control method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. It includes:
[0090] Step S21: Determine whether the task running on the current target device is a periodic task. If the task running on the current target device is a periodic task, collect the target processor utilization rates at different times within a preset time period of the target device, and determine each of the target processor utilization rates as the original time series data.
[0091] Collect the original processor utilization rates of the target device at different times within a preset time period, and filter each target processor utilization rate to determine each of the filtered target processor utilization rates as the original time series data for subsequent determination of the running time period based on the original time series data. Among them, the filtered data can be invalid data. That is, during data transmission, there may be some data that is useless for periodic analysis or processing. The filtering operation can remove these invalid data to improve the efficiency of data processing. The filtered data can also be error data. That is, during data collection, error data may be generated for various reasons, such as sensor failures, data transmission errors, etc. The filtering operation can identify and remove these error data to ensure the accuracy of the data.
[0092] Step S22: Perform periodic analysis on the original time series data to determine the corresponding running time period.
[0093] In a specific embodiment of period determination, the periodic analysis of the original timing data to determine the corresponding running time period includes: performing a Fourier transform on the original timing data to obtain a spectrogram, and determining the corresponding running time period based on the main frequency component of the spectrogram. Performing a Fourier transform on the original timing data converts the time series data from the time domain to the frequency domain to obtain a spectrogram, analyzing the spectrogram to determine the main frequency component, and the reciprocal of the main frequency component can be used as an estimated value of the period.
[0094] In another specific embodiment of period determination, the periodic analysis of the original timing data to determine the corresponding running time period includes: analyzing the correlation between the timing data in the original timing data, and determining the corresponding running time period according to the correlation. Using the autocorrelation function method, by calculating the correlation between each point in the time series and other points, the periodic pattern in the data is revealed. If the data shows significant correlation at a certain lag time point, record the estimated value of its period.
[0095] Step S23: Predict the amount of computation of the processor in the target device during the running time period to obtain a corresponding predicted value of the target computation amount.
[0096] In this embodiment, the formula for predicting the amount of computation of the processor during the running time period is specifically as follows:
[0097] N = f * T * U;
[0098] Wherein, N represents the amount of processor computation, which is the predicted value of the target computation amount in this embodiment, f represents the CPU frequency, T represents the running time period, and U represents the average CPU utilization rate during the running time period, that is, the calculation formula of the amount of computation is introduced to quantify the computing task of the CPU into a specific value.
[0099] Step S24: Determine the target processor frequency required for the processor to complete the actual computation amount consistent with the predicted value of the target computation amount based on the least power consumption.
[0100] Obtain an initial processor energy consumption model with the processor frequency as the independent variable and the processor power consumption as the dependent variable. Among them, the initial processor energy consumption model also includes the processor computing volume, and the processor computing volume at this time is an unknown quantity. Then, substituting the predicted value of the target computing volume into the initial processor energy consumption model, the target processor energy consumption model can be obtained. It can be understood that only the processor frequency and the processor power consumption are variables in this target processor energy consumption model. If the target processor frequency corresponding to the minimum power consumption, that is, the optimal processor frequency, is to be determined, then by taking the derivative of the target processor energy consumption model and based on the model after taking the derivative, the target processor frequency required for the processor to complete the actual computing volume consistent with the predicted value of the target computing volume based on the minimum power consumption can be determined.
[0101] The target processor energy consumption model in this embodiment can accurately compare the energy consumption required for the processor to complete the same computing volume at different frequencies. By substituting the processor frequency and power consumption model and combining the calculation formula of the computing volume, it is possible to deduce the processor frequency with the lowest power consumption under the condition of ensuring that the total computing volume of the periodic task remains unchanged. The determination of this frequency not only helps to reduce the energy consumption of the processor, but also can reduce heat generation and extend the service life of the device.
[0102] Step S25: Control the operation of the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operation time period to achieve power consumption control of the target device.
[0103] Thus, it can be seen that the present invention collects the processor utilization rate to calculate the processor fluctuation period. Within the same operation time period, it ensures that the total computing volume of the processor remains unchanged, that is, it does not affect the normal execution of the service. By adjusting the processor frequency, the purpose of reducing the processor power consumption and the total power consumption of the server device is achieved. This is very important for the operation of modern data centers and server farms, because in these environments, a large number of servers and devices need to run continuously, consuming a large amount of electricity. By reducing the power consumption of the CPU, not only can the power cost be saved, but also the environmental impact can be reduced, contributing to sustainable development. The present invention is to ensure that within a cycle, the total computing volume of the processor remains unchanged, thereby ensuring that the stability and efficiency of the service operation are not affected. At the same time, the present invention can select the optimal processor frequency without sacrificing performance by precisely controlling and optimizing the processor frequency. This intelligent frequency adjustment strategy can effectively reduce the power consumption of the processor, thereby reducing the energy consumption of the overall system.
[0104] Figure 5 The structural schematic diagram of a device power consumption control device provided by an embodiment of the present invention includes:
[0105] A period determination module 11, configured to determine whether the task running on the current target device is a periodic task. If the task running on the current target device is a periodic task, the corresponding running time period is determined;
[0106] A computation amount prediction module 12, configured to predict the computation amount of the processor in the target device during the running time period to obtain a corresponding target computation amount prediction value;
[0107] A frequency determination module 13, configured to determine the target processor frequency required for the processor to complete the actual computation amount consistent with the target computation amount prediction value with the least power consumption;
[0108] A power consumption control module 14, configured to perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, to achieve power consumption control of the target device.
[0109] Therefore, the present invention determines whether the task running on the current target device is a periodic task. If the task running on the current target device is a periodic task, the corresponding running time period is determined; the computation amount of the processor in the target device during the running time period is predicted to obtain a corresponding target computation amount prediction value; the target processor frequency required for the processor to complete the actual computation amount consistent with the target computation amount prediction value with the least power consumption is determined; operation control is performed on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, to achieve power consumption control of the target device.
[0110] The beneficial effects are as follows: when the task running on the current target device of the present application is a periodic task, the corresponding running time period is determined, and the computing amount of the processor in the target device within the running time period is predicted to obtain the corresponding target computing amount prediction value. The target processor frequency required for the processor to complete the actual computing amount consistent with the target computing amount prediction value with the least power consumption is determined. That is to say, the determined target processor frequency can ensure that when the processor completes the actual workload matching the target computing amount prediction value, the power consumption is minimized. In this way, by controlling the target device to operate at the target processor frequency, and the target device uses the target processor frequency as the actual working frequency of the processor in the next running time period, power consumption control of the target device within the running time period can be achieved, and it is not necessary to reduce the processor computing amount of the target device within the running time period. And the processor computing amount can reflect the business execution situation. That is to say, keeping the processor computing amount stable means that the target device can execute the business normally. That is, the present application can not only execute the business normally, but also reasonably control the device power consumption.
[0111] In some specific embodiments, the period determination module 11 includes:
[0112] A timing data acquisition unit, configured to collect the utilization rates of each target processor at different times within a preset time period of the target device, and determine each of the target processor utilization rates as the original timing data;
[0113] A periodic analysis sub-module, configured to perform a periodic analysis on the original timing data to determine the corresponding running time period.
[0114] In some specific embodiments, the periodic analysis sub-module includes:
[0115] A first period determination unit, configured to perform a Fourier transform on the original timing data to obtain a spectrogram, and determine the corresponding running time period based on the main frequency component of the spectrogram;
[0116] In some specific embodiments, the periodic analysis sub-module includes:
[0117] A second period determination unit, configured to analyze the correlation between the timing data in the original timing data, and determine the corresponding running time period according to the correlation.
[0118] In some specific embodiments, the frequency determination module 13 includes:
[0119] An initial model acquisition unit, configured to acquire a pre-constructed initial processor energy consumption model with the processor frequency as the independent variable and the processor power consumption as the dependent variable;
[0120] A target model acquisition unit, configured to input the target computing amount prediction value as the processor computing amount in the initial processor power consumption model into the initial processor power consumption model, so as to obtain a target processor power consumption model;
[0121] A processor frequency determination unit, configured to determine, by taking the derivative of the target processor power consumption model and based on the model after taking the derivative, the target processor frequency required for the processor to complete the actual computing amount consistent with the target computing amount prediction value with the least power consumption.
[0122] In some specific embodiments, the initial processor power consumption model includes a first component and a second component, wherein the first component is determined based on the product between the processor computing amount and the processor frequency, and the second component is determined based on the ratio between the processor computing amount and the processor frequency.
[0123] In some specific embodiments, the first component and the second component in the initial processor power consumption model are respectively configured with corresponding constant coefficients, and the constant coefficients are coefficients determined based on the pre-acquired reference processor frequencies and the corresponding reference processor power consumptions.
[0124] In some specific embodiments, the device power consumption control device includes:
[0125] A reference information acquisition sub-module, configured to acquire each reference processor frequency and control the target device to operate stably at each reference processor frequency, so as to acquire the reference processor power consumption of the target device at different reference processor frequencies;
[0126] In some specific embodiments, the device power consumption control device includes:
[0127] A relationship function fitting unit, configured to perform power function fitting on each reference processor frequency and the reference processor power consumption, so as to obtain a target power consumption-frequency relationship function;
[0128] A constant coefficient determination unit, configured to determine the constant coefficients corresponding to the first component and the second component in the initial processor power consumption model based on the coefficients in the target power consumption-frequency relationship function.
[0129] In some specific embodiments, the reference information acquisition sub-module includes:
[0130] A current reference information acquisition unit, configured to control the target device to operate stably at the current reference processor frequency, so as to acquire the reference processor power consumption of the target device at the current reference processor frequency;
[0131] A jump unit, configured to determine the sum of a preset frequency increment and the current reference processor frequency as the next reference processor frequency, update the next reference processor frequency to the current reference processor frequency, and re-jump to the step of controlling the target device to operate stably at the current reference processor frequency.
[0132] In some specific embodiments, the power consumption control module 14 includes:
[0133] A judgment unit, configured to determine the target processor power consumption corresponding to the target device during operation within a single operation time period based on the current processor power consumption of the target device, and judge whether the target processor power consumption is greater than a preset threshold;
[0134] A power consumption control unit, configured to, if the target processor power consumption is greater than the preset threshold, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operation time period, to achieve power consumption control of the target device.
[0135] In some specific embodiments, the power consumption control module 14 includes:
[0136] A priority judgment unit, configured to, if the target processor power consumption is not greater than the preset threshold, determine the priority of the current task being processed by the target device, and if the priority of the current task is lower than a preset priority, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operation time period, to achieve power consumption control of the target device.
[0137] Furthermore, an embodiment of the present application also discloses an electronic device. Figure 6 It is a structural diagram of an electronic device shown according to an exemplary embodiment, and the content in the figure cannot be considered as any limitation to the scope of use of the present application. The electronic device may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the following steps:
[0138] Judge whether the task running on the current target device is a periodic task. If the task running on the current target device is a periodic task, determine the corresponding operation time period;
[0139] Predict the computing volume of the processor in the target device during the runtime period to obtain a corresponding target computing volume prediction value;
[0140] Determine the target processor frequency required for the processor to complete the actual computing volume consistent with the target computing volume prediction value based on the least power consumption;
[0141] Perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next runtime period to achieve power consumption control of the target device.
[0142] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0143] Collect the target processor utilization rates of the target device at different times within a preset time period, and determine each of the target processor utilization rates as the original time series data;
[0144] Perform periodic analysis on the original time series data to determine the corresponding runtime period.
[0145] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0146] Perform Fourier transform on the original time series data to obtain a spectrogram, and determine the corresponding runtime period based on the main frequency component of the spectrogram;
[0147] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0148] Analyze the correlation between the time series data in the original time series data, and determine the corresponding runtime period according to the correlation.
[0149] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0150] Obtain an initial processor energy consumption model with the processor frequency as the independent variable and the processor power consumption as the dependent variable;
[0151] Input the target computing volume prediction value as the processor computing volume in the initial processor energy consumption model into the initial processor energy consumption model to obtain a target processor energy consumption model;
[0152] Derive the energy consumption model of the target processor, and based on the derived model, determine the target processor frequency required for the processor to complete the actual computation amount consistent with the predicted value of the target computation amount with the least power consumption.
[0153] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0154] The initial processor energy consumption model includes a first component and a second component. Among them, the first component is determined based on the product between the processor computation amount and the processor frequency, and the second component is determined based on the ratio between the processor computation amount and the processor frequency.
[0155] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0156] The first component and the second component in the initial processor energy consumption model are respectively configured with corresponding constant coefficients, and the constant coefficients are coefficients determined based on the pre-acquired reference processor frequencies and the corresponding reference processor power consumptions.
[0157] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0158] Obtain each reference processor frequency, and control the target device to run stably at each reference processor frequency to collect the reference processor power consumption of the target device at different reference processor frequencies;
[0159] Correspondingly, determining the constant coefficients based on the reference processor frequencies and the corresponding reference processor power consumptions includes:
[0160] Perform power function fitting on each reference processor frequency and the reference processor power consumption to obtain a target power consumption-frequency relationship function;
[0161] Determine the constant coefficients corresponding to the first component and the second component in the initial processor energy consumption model based on the coefficients in the target power consumption-frequency relationship function.
[0162] In some specific embodiments, the processor can specifically implement the following steps by executing the computer program stored in the memory:
[0163] Control the target device to run stably at the current reference processor frequency to collect the reference processor power consumption of the target device at the current reference processor frequency;
[0164] Determine the sum of the preset frequency increment and the current reference processor frequency as the next reference processor frequency, update the next reference processor frequency to the current reference processor frequency, and then jump back to the step of controlling the target device to operate stably at the current reference processor frequency.
[0165] In some specific embodiments, when the processor executes the computer program stored in the memory, the following steps may further be included:
[0166] Based on the current processor power consumption of the target device, determine the target processor power consumption corresponding to the operation of the target device within a single operating time period, and determine whether the target processor power consumption is greater than a preset threshold;
[0167] If the target processor power consumption is greater than the preset threshold, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operating time period, so as to achieve power consumption control of the target device.
[0168] In some specific embodiments, when the processor executes the computer program stored in the memory, the following steps may further be included:
[0169] If the target processor power consumption is not greater than the preset threshold, determine the priority of the current task being processed by the target device. If the priority of the current task is lower than the preset priority, perform operation control on the target device based on the target processor frequency, so that the target device uses the target processor frequency as the actual working frequency of the processor in the next operating time period, so as to achieve power consumption control of the target device.
[0170] In addition, the electronic device in this embodiment may specifically be an electronic computer.
[0171] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of this application, and specific limitations are not imposed here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application requirements, and no specific limitations are made here.
[0172] In addition, as a carrier for storing resources, the memory 22 can be a read-only memory, a random access memory, a magnetic disk, an optical disc, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc. The storage method can be temporary storage or permanent storage.
[0173] Among them, the operating system 221 is used to manage and control each hardware device and the computer program 222 on the electronic device, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to implement the device power consumption control method executed by the electronic device disclosed in any of the foregoing embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.
[0174] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the device power consumption control method disclosed above is implemented. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details will not be elaborated herein.
[0175] The embodiments of the present application also disclose a computer program product, including a computer program / instructions, and when the computer program / instructions are executed by a processor, the steps of the device power consumption control method disclosed in any of the foregoing embodiments are implemented.
[0176] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method section.
[0177] Those skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0178] The steps of the methods or algorithms described in combination with the embodiments disclosed in this article can be implemented directly by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0179] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.
[0180] The technical solutions provided in this application have been introduced in detail above. Specific examples are used in this article to elaborate on the principles and implementation manners of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A method for controlling power consumption of a device, characterized in that: include: Determine whether the task currently running on the target device is a periodic task, and if the task currently running on the target device is a periodic task, determine the corresponding running time period; Predicting the amount of computation of the processor in the target device during the running time period to obtain a corresponding target amount of computation prediction value; Determining a target processor frequency required for the processor to complete an actual amount of computation consistent with a predicted value of a target amount of computation based on minimum power consumption; Controlling the operation of the target device based on the target processor frequency so that the target device uses the target processor frequency as the actual operating frequency of the processor in the next operation time period to achieve power consumption control of the target device; The determining of the target processor frequency required by the processor to complete the actual amount of computation consistent with the predicted value of the target amount of computation based on the minimum power consumption includes: Acquire a pre-built initial processor energy consumption model with processor frequency as an independent variable and processor power consumption as a dependent variable; input the target computing amount prediction value into the initial processor energy consumption model as the processor computing amount in the initial processor energy consumption model to obtain a target processor energy consumption model; derive the target processor energy consumption model, and determine the target processor frequency required for the processor to complete an actual computing amount consistent with the target computing amount prediction value based on the minimum power consumption based on the derived model.
2. The device power consumption control method according to claim 1, characterized in that: Determining the corresponding operating time period includes: Collecting the utilization rate of each target processor of the target device at different times within a preset time period, and determining the utilization rate of each target processor as original time series data; The original time series data is periodically analyzed to determine the corresponding operating time period.
3. The device power consumption control method according to claim 2, characterized in that: The periodic analysis of the original time series data to determine the corresponding operation time period includes: The original time series data is subjected to Fourier transformation to obtain a frequency spectrum, and the corresponding operating time period is determined based on the main frequency component of the frequency spectrum.
4. The device power consumption control method according to claim 2, characterized in that: The periodic analysis of the original time series data to determine the corresponding operation time period includes: The correlation between each time series data in the original time series data is analyzed, and the corresponding operation time period is determined according to the correlation.
5. The device power consumption control method according to claim 1, characterized in that: The initial processor energy consumption model includes a first component and a second component, wherein the first component is determined based on the product of the processor computing amount and the processor frequency, and the second component is determined based on the ratio of the processor computing amount to the processor frequency.
6. The device power consumption control method according to claim 5, characterized in that: The first component and the second component in the initial processor energy consumption model are respectively configured with corresponding constant coefficients, and the constant coefficients are coefficients determined based on the pre-acquired reference processor frequency and the corresponding power consumption of each reference processor.
7. The device power consumption control method according to claim 6, characterized in that: Get the benchmark processor frequency and the corresponding power consumption of each benchmark processor, including: Each benchmark processor frequency is obtained, and the target device is controlled to run smoothly according to each benchmark processor frequency, so as to collect the benchmark processor power consumption of the target device at different benchmark processor frequencies.
8. The device power consumption control method according to claim 7, characterized in that: Determining the constant coefficient based on the reference processor frequency and the corresponding power consumption of each reference processor includes: Performing power function fitting on each of the reference processor frequencies and the reference processor power consumption to obtain a target power consumption frequency relationship function; Based on the coefficients in the target power consumption frequency relationship function, constant coefficients corresponding to the first component and the second component in the initial processor energy consumption model are determined.
9. The device power consumption control method according to claim 7, characterized in that: The controlling the target device to run smoothly according to each of the reference processor frequencies to collect the reference processor power consumption of the target device at different reference processor frequencies includes: Controlling the target device to run smoothly according to the current reference processor frequency to collect the reference processor power consumption of the target device at the current reference processor frequency; The sum of the preset frequency increase and the current reference processor frequency is determined as the next reference processor frequency, and the next reference processor frequency is updated to the current reference processor frequency, and the process is then jumped again to the step of controlling the target device to run smoothly according to the current reference processor frequency.
10. The device power consumption control method according to claim 1, characterized in that: The operating control of the target device based on the target processor frequency, so that the target device adopts the target processor frequency as the actual operating frequency of the processor in the next operating time cycle, so as to achieve power consumption control of the target device, includes: Determine the target processor power consumption corresponding to the target device when the target device is running in a single running time period based on the current processor power consumption of the target device, and determine whether the target processor power consumption is greater than a preset threshold; If the power consumption of the target processor is greater than the preset threshold, the target device is operated and controlled based on the target processor frequency so that the target device uses the target processor frequency as the actual operating frequency of the processor in the next operating time cycle to achieve power consumption control of the target device.
11. The device power consumption control method according to claim 10, characterized in that: After determining whether the power consumption of the target processor is greater than a preset threshold, the method further includes: If the power consumption of the target processor is not greater than the preset threshold, the priority of the current task being processed by the target device is determined; if the priority of the current task is lower than the preset priority, the operation of the target device is controlled based on the target processor frequency, so that the target device uses the target processor frequency as the actual operating frequency of the processor in the next operating time cycle to achieve power consumption control of the target device.
12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the device power consumption control method described in any one of claims 1 to 11 are implemented.
13. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the device power consumption control method as claimed in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device power consumption control method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Energy consumption management and control device, method and equipment of server
CN112084093A
Server energy saving method and device, equipment and storage medium
CN117762237A