CN110659130A - CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium - Google Patents

CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium Download PDF

Info

Publication number
CN110659130A
CN110659130A CN201910679050.XA CN201910679050A CN110659130A CN 110659130 A CN110659130 A CN 110659130A CN 201910679050 A CN201910679050 A CN 201910679050A CN 110659130 A CN110659130 A CN 110659130A
Authority
CN
China
Prior art keywords
thread
cpu utilization
weight
utilization rate
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910679050.XA
Other languages
Chinese (zh)
Inventor
胡文成
王晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910679050.XA priority Critical patent/CN110659130A/en
Priority to PCT/CN2019/117616 priority patent/WO2021012510A1/en
Publication of CN110659130A publication Critical patent/CN110659130A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a CPU utilization rate self-adaptive adjusting method, which comprises the following steps: acquiring the CPU utilization rate of the terminal in the current monitoring period, and calculating the difference value between the CPU utilization rate and the preset target CPU utilization rate; and when the difference is determined not to be within the preset difference range, calculating the thread weight of each thread in the threads operated by the terminal according to the preset thread priority, and then adjusting the threads operated by the terminal according to the calculated thread weight of each thread. The invention also provides a CPU utilization rate self-adaptive adjusting device, a terminal and a storage medium. According to the invention, the thread weight of each thread operated by the terminal is obtained through the calculation of the preset thread priority, and the thread operated by the terminal is dynamically adjusted to control the utilization rate of the CPU to be constant at the target utilization rate, so that the stability of the utilization rate of the CPU is enhanced.

Description

CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium
Technical Field
The invention relates to the technical field of cloud monitoring, in particular to a method and a device for adaptively adjusting CPU utilization rate, a terminal and a storage medium.
Background
The CPU utilization rate is an important index for judging the working state of the CPU, and the utilization rate has a direct relation with the strength of the CPU. Modern time-sharing multitask operating systems generally use the CPU in a time-sharing mode, the response of the CPU to threads is not continuous, the threads are usually automatically interrupted after a period of time, if the number of the threads which do not respond is increased, the occupation of the CPU is continuously increased, and the utilization rate of the CPU is high. In addition, in many high-reliability software tests, an important test scenario is performance tests of software under high pressure, and the high pressure often indicates that the CPU utilization rate is high, so that it becomes necessary to dynamically adjust the CPU utilization rate accurately in real time.
At present, the control of the CPU utilization is performed by starting the working processes with the same number as the CPU cores, binding the CPU cores, obtaining the target CPU utilization and the target utilization and an error value between the target CPU utilization and the target utilization, generating the working time of the working process according to the error value, and controlling the working process, but does not consider that the occupied CPU utilization of different threads is different.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a terminal and a storage medium for adaptively adjusting a CPU utilization, which can control the CPU utilization to be constant at a target utilization by calculating a thread weight of each thread run by the terminal through a preset thread priority and dynamically adjusting the thread run by the terminal, so as to enhance the stability of the CPU utilization.
The first aspect of the present invention provides a method for adaptively adjusting CPU utilization, where the method includes:
acquiring the CPU utilization rate of the terminal in the current monitoring period;
calculating a difference value between the CPU utilization rate and a preset target CPU utilization rate;
judging whether the difference value is within a preset difference value range or not;
when the difference is determined not to be within a preset difference range, calculating the thread weight of each thread in the threads operated by the terminal according to a preset thread priority;
and adjusting the thread operated by the terminal according to the calculated thread weight of each thread.
According to a preferred embodiment of the present invention, after the calculating the thread weight of each of the threads run by the terminal according to the preset thread priority, the method further includes:
calculating the thread weight sum according to the thread weight of each thread in the running threads;
determining the first thread weight threshold and the second thread weight threshold from the thread weight sum.
According to a preferred embodiment of the present invention, said determining said first thread weight threshold and said second thread weight threshold from said thread weight sums comprises:
determining a preset first proportional value of the thread weight sum as the first thread weight threshold;
determining a preset second proportional value of the thread weight sum as the second thread weight threshold;
the preset first proportion value is smaller than the preset second proportion value.
According to a preferred embodiment of the present invention, the adjusting the threads run by the terminal according to the calculated thread weight of each thread includes:
judging whether the CPU utilization rate is less than the preset target CPU utilization rate or not;
if the CPU utilization rate is greater than the preset target CPU utilization rate, acquiring a first target thread of which the corresponding thread weight is smaller than the preset first thread weight threshold value from the threads in operation of the terminal and stopping the first target thread;
and if the CPU utilization rate is less than the preset target CPU utilization rate, acquiring a second target thread of which the corresponding historical thread weight is greater than the preset second thread weight threshold value from the threads which are not operated by the terminal, and operating the second target thread.
According to a preferred embodiment of the present invention, the calculating the thread weight of each of the threads run by the terminal according to the preset thread priority includes:
calculating the difference between the corresponding CPU utilization rate of the terminal before the running thread runs and the corresponding CPU utilization rate of the terminal after the running thread runs;
calculating the CPU utilization rate weight of each thread in the running threads according to the difference value;
and calculating the thread weight of each thread in the running threads according to the preset thread priority and the CPU utilization rate weight.
According to a preferred embodiment of the present invention, the calculating the CPU utilization weight of each of the running threads according to the difference value is calculated by using the following formula:
CPU _ weight _ default ═ Δ CPU usage/Δ T/n,
the CPU _ weight _ default represents the CPU utilization rate weight of each thread in the running threads, the delta CPU utilization rate represents the difference between the corresponding CPU utilization rate of the terminal before the running threads are run and the corresponding CPU utilization rate after the running threads are run, the delta T represents the preset time period, and the n represents the number of the running threads.
According to a preferred embodiment of the present invention, the thread weight of each thread in the running threads calculated according to the preset thread priority and the CPU utilization weight is calculated by using the following formula:
task_weight=a*priority+b/CPU_weight_default,
wherein task _ weight represents a thread weight of each of the running threads, priority represents the preset thread priority, and a and b are constant parameters.
A second aspect of the present invention provides a CPU utilization adaptive adjusting apparatus, comprising:
the acquisition module is used for acquiring the CPU utilization rate of the terminal in the current monitoring period;
the first calculation module is used for calculating the difference value between the CPU utilization rate and a preset target CPU utilization rate;
the judging module is used for judging whether the difference value is within a preset difference value range or not;
the second calculation module is used for calculating the thread weight of each thread in the threads operated by the terminal according to the preset thread priority;
and the adjusting module is used for adjusting the thread operated by the terminal according to the calculated thread weight of each thread.
A third aspect of the invention provides a terminal comprising a processor for implementing the CPU utilization adaptive adjustment method when executing a computer program stored in a memory.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the CPU utilization adaptive adjustment method.
In summary, according to the method, the apparatus, the terminal and the storage medium for adaptively adjusting the CPU utilization, the CPU utilization of the terminal is obtained in the current monitoring period, the difference between the CPU utilization and the preset target CPU utilization is calculated, when it is determined that the difference is not within the preset difference range, the thread weight of each thread in the threads operated by the terminal is calculated according to the preset thread priority, and then the threads operated by the terminal are adjusted according to the calculated thread weight of each thread. The method can subdivide the threads according to the priority, dynamically adjust the threads according to the thread weight of the terminal operation to control the CPU utilization rate to be constant at the target utilization rate, and regulate and control the CPU utilization rate better.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for adaptively adjusting a CPU utilization according to an embodiment of the present invention.
Fig. 2 is a schematic functional block diagram of a CPU utilization adaptive adjusting apparatus according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Example one
Fig. 1 is a flowchart of a method for adaptively adjusting a CPU utilization according to an embodiment of the present invention.
In this embodiment, the method for adaptively adjusting the CPU utilization rate may be applied to a terminal, and for a terminal that needs to adaptively adjust the CPU utilization rate, the function of adaptively adjusting the CPU utilization rate provided by the method of the present invention may be directly integrated on the terminal, or may be operated in the terminal in the form of a Software Development Kit (SKD).
As shown in fig. 1, the method for adaptively adjusting the CPU utilization rate specifically includes the following steps, and the order of the steps in the flowchart may be changed or some of the steps may be omitted according to different requirements.
S11: and acquiring the CPU utilization rate of the terminal in the current monitoring period.
In this embodiment, the CPU utilization of the terminal may be obtained at regular time by the cloud monitoring system.
The cloud monitoring system in this embodiment may be a server of a large-scale system constituted by a plurality of cloud products, a service system constituted by a small number of machines, or a stand-alone system.
The terminal includes but is not limited to a smart phone, a computer, a notebook or a palm computer, etc.
The cloud monitoring system can monitor the CPU utilization rates of a plurality of terminals at the same time, and the CPU utilization rates are used as performance indexes of the terminals to monitor the load capacity of the terminals and further dynamically adjust the terminals to achieve the optimal working state.
Each terminal can acquire the CPU utilization rate of the terminal in each sampling period and send the acquired CPU utilization rate and the terminal identification to the cloud monitoring system. The cloud monitoring system receives the CPU utilization rate and the terminal identification sent by the plurality of terminals.
S12: and calculating the difference value between the CPU utilization rate and a preset target CPU utilization rate.
In this embodiment, the target CPU utilization of the terminal may be set in advance.
The preset target CPU utilization rate refers to the optimum CPU utilization rate which does not influence the operation efficiency of the terminal and is an appropriate amount of threads which can be executed by the terminal.
After the CPU utilization rate of the terminal is obtained, difference calculation can be carried out on the CPU utilization rate and the preset target CPU utilization rate to obtain a difference value between the CPU utilization rate and the preset target CPU utilization rate.
S13: and judging whether the difference value is within a preset difference value range.
In this embodiment, the difference range may be set in advance.
The preset difference range refers to the amplitude of the fluctuation of the CPU utilization rate of the terminal in the vicinity of the preset target CPU utilization rate. For example, the preset difference range is an interval range from-5% to + 3%, which indicates that the CPU utilization of the terminal may be lower than the preset target CPU utilization by 5% or higher than the preset target CPU utilization by 3%.
When it is determined that the difference is within the preset difference range, no operation may be performed, or other operations may be performed, and the present invention is not limited in detail herein.
It should be understood that, when it is determined that the difference is within the preset difference range, the case that the difference is equal to 0 is included, that is, the CPU utilization rate is equal to the preset target CPU utilization rate, this indicates that the terminal has reached the optimal working state, that is, the number of threads executed is appropriate, and the corresponding CPU utilization rate is just loaded appropriately.
S14: and when the difference is determined not to be within the preset difference range, calculating the thread weight of each thread in the threads operated by the terminal according to the preset thread priority.
In this embodiment, when it is determined that the difference is not within the preset difference range, it indicates that the difference between the CPU utilization and the preset target CPU utilization is large, and the thread weight of each thread in the threads operated by the terminal may be calculated according to the preset thread priority, so that the CPU utilization of the terminal may be adjusted by subsequently adjusting the number of threads operated by the terminal according to the calculated thread weight.
The thread priority can be preset according to the application program which is correspondingly operated by the thread. Illustratively, if a first thread runs a first type of application program, the priority of the first thread is correspondingly set as a first priority; and if the second thread runs the first type of application program, correspondingly setting the priority of the second thread as a second priority, wherein the first priority is higher than the second priority.
Preferably, the calculating the thread weight of each thread in the threads run by the terminal according to the preset thread priority includes:
141) and calculating the difference between the corresponding CPU utilization rate of the terminal before the running thread runs and the corresponding CPU utilization rate of the terminal after the running thread runs.
And after the terminal runs the running thread for a preset time period, the CPU utilization rate of the terminal is higher than that of the CPU which does not run the running thread.
The terminal correspondingly has a CPU utilization rate before the running thread runs, and correspondingly has a CPU utilization rate after the running thread runs for a preset time period. And comparing the CPU utilization rate before operation with the CPU utilization rate after operation to obtain a CPU utilization rate difference value.
142) And calculating the CPU utilization rate weight of each thread in the running threads according to the difference value.
In this embodiment, after acquiring a CPU usage difference corresponding to the terminal after the running thread is run before the running thread is run, the CPU usage weight of each thread in the running threads may be calculated.
Represented by the formula (1-1) below:
CPU _ weight _ default ═ Δ CPU usage/Δ T/n (1-1)
The CPU _ weight _ default represents the CPU utilization rate weight of each thread in the running threads, the delta CPU utilization rate represents the difference between the corresponding CPU utilization rate of the terminal before the running threads are run and the corresponding CPU utilization rate after the running threads are run, the delta T represents the preset time period, and the n represents the number of the running threads.
As can be seen from the equation (1-1), the CPU utilization rate weight is proportional to the CPU utilization rate change value of the terminal, and therefore, the CPU utilization rate weight can be used for indicating the influence degree of the running thread on the CPU utilization rate of the terminal. When the calculated CPU utilization rate weight is larger, the larger the influence of the running thread on the CPU utilization rate of the terminal is, the larger the CPU utilization rate change value of the terminal is; when the calculated weight of the CPU utilization rate is smaller, the smaller the influence of the running thread on the CPU utilization rate of the terminal is, and the smaller the CPU utilization rate change value of the terminal is.
143) And calculating the thread weight of each thread in the running threads according to the preset thread priority and the CPU utilization rate weight.
And after the running thread is run for the preset time period, the thread weight of the running thread changes, and the thread weight of each thread in the running thread is calculated according to the preset thread priority and the calculated CPU utilization rate weight.
Expressed by the formula (1-2) as follows:
task_weight=a*priority+b/CPU_weight_default (1-2)
wherein task _ weight represents a thread weight of each of the running threads, priority represents the preset thread priority, and a and b are constant parameters. The thread weight refers to a thread weight corresponding to each thread in the running threads after the running threads are run for the preset time period. Different threads have different corresponding priorities (priority values), and the calculated thread weights are also different. When the priorities of the threads are the same, the calculated thread weight is larger, which indicates that the influence of the running thread on the CPU utilization rate of the terminal is smaller, and the CPU utilization rate change value of the terminal is smaller; the smaller the calculated thread weight is, the greater the influence of the running thread on the CPU utilization rate of the terminal is, and the greater the CPU utilization rate change value of the terminal is. Default a is 1 and b is 2.
S15: and adjusting the thread operated by the terminal according to the calculated thread weight.
Because the difference between the CPU utilization of the terminal and the preset target CPU utilization is not within the preset difference range, that is, the difference between the CPU utilization of the terminal and the preset target CPU utilization is large, the CPU utilization may be higher than the preset target CPU utilization or lower than the preset target CPU utilization, and therefore, the CPU utilization of the terminal needs to be adjusted by adjusting the number of threads operated by the terminal or the attributes of the threads.
Preferably, the adjusting the thread run by the terminal according to the calculated thread weight includes:
judging whether the CPU utilization rate is less than the preset target CPU utilization rate or not;
if the CPU utilization rate is greater than the preset target CPU utilization rate, acquiring a first target thread of which the corresponding thread weight is smaller than a preset first thread weight threshold value from the threads in operation of the terminal and stopping the first target thread;
and if the CPU utilization rate is less than the preset target CPU utilization rate, acquiring a second target thread with the corresponding historical thread weight greater than a preset second thread weight threshold value from the threads which are not operated by the terminal, and operating the second target thread.
A first thread weight threshold and a second thread weight threshold may be preset, the first thread weight threshold (e.g., 0.3) being less than the second thread weight threshold (e.g., 0.7).
In some other embodiments, the first thread weight threshold may be the same as the second thread weight threshold, that is, only one thread weight threshold is preset, and the number of threads run by the terminal may be adjusted to achieve the effect of adjusting the CPU utilization threshold of the terminal by comparing the thread weight with the preset thread weight threshold or comparing the historical thread weight with the preset thread weight threshold.
It should be understood that the thread weight refers to a thread weight corresponding to a thread which is running in the terminal, and the thread weight is relative to a historical thread weight, and the historical thread weight refers to a thread weight corresponding to a thread which is not running in the terminal. For the thread which has been run but stopped before, the thread weight corresponding to the thread which is added with the running again takes the thread weight which is stopped as the thread weight, and the thread weight which is stopped is called as the historical thread weight.
In this embodiment, the purpose of controlling the CPU utilization of the terminal is achieved by comparing the thread weight with the preset thread weight threshold or comparing the historical thread weight with the preset thread weight threshold, and adjusting the type of threads running in the terminal and/or the number of threads running according to the comparison result. When the CPU utilization rate is determined to be greater than the preset target CPU utilization rate, the terminal CPU utilization rate is indicated to be higher, and then a first target thread with the corresponding thread weight smaller than a preset first thread weight threshold value is obtained from the threads running at the terminal and the first target thread is stopped. When the CPU utilization rate is determined to be smaller than the preset target CPU utilization rate, the CPU utilization rate of the terminal is indicated to be lower, and a second target thread with the corresponding historical thread weight larger than a preset second thread weight threshold value is obtained from threads which are not operated by the terminal and is operated, so that under the condition of the same priority, the larger the thread weight is, the smaller the CPU utilization rate weight of the corresponding thread is, namely, the smaller the influence of the thread on the CPU utilization rate is, the CPU utilization rate of the terminal is changed slowly, and more threads can be operated to fully utilize the CPU of the terminal while the CPU utilization rate in the terminal is ensured to be changed slowly by increasing the threads with the corresponding historical thread weight. The CPU utilization rate of the terminal is dynamically adjusted in a circulating mode, the CPU utilization rate of the terminal is guaranteed not to change rapidly, and the number of threads running in the terminal can be dynamically adjusted.
In some embodiments, after the cloud monitoring system calculates the thread weight, the thread weight may also be fed back to a terminal corresponding to the terminal identifier, and the terminal receives the thread weight fed back by the cloud monitoring system, compares the CPU utilization with the preset target CPU utilization, and further increases or stops running the thread according to the thread weight.
Further, after the calculating the thread weight of each of the threads operated by the terminal according to the preset thread priority, the method may further include:
calculating the thread weight sum according to the thread weight of each thread in the running threads;
determining the first thread weight threshold and the second thread weight threshold from the thread weight sum.
Further, the determining the first thread weight threshold and the second thread weight threshold according to the thread weight sum comprises:
determining a preset first proportional value of the thread weight sum as the first thread weight threshold;
determining a preset second proportional value of the thread weight sum as the second thread weight threshold;
the preset first ratio value (e.g., 30%) is smaller than the preset second ratio value (e.g., 70%).
In this embodiment, the thread weight sum is calculated according to the thread weight of each thread, and then the first and second thread weight thresholds are determined according to the thread weight sum, so that the first and second thread weight thresholds can be dynamically adjusted in real time according to the CPU utilization of the terminal, and the first and second thread weight thresholds can be dynamically adjusted, thereby avoiding the problem that the thread with the thread weight smaller than the first thread weight threshold cannot be stopped or the thread with the thread weight larger than the second thread weight threshold cannot be increased due to unreasonable preset first and second thread weight thresholds.
It should be noted that the method for adaptively adjusting the CPU utilization rate may also be applied to a terminal, where the CPU utilization rate is directly obtained through the terminal, the thread weight of each thread in the threads operated by the terminal is calculated according to a preset thread priority, and the operated threads are adjusted according to the calculated thread weight. The CPU utilization rate is not required to be acquired and sent to the cloud monitoring system, the cloud monitoring system calculates the thread weight of each thread in the threads operated by the terminal according to the preset thread priority and feeds the thread weight back to the terminal, and the terminal adjusts the threads of the terminal row according to the calculated thread weight.
In summary, the adaptive adjustment method for CPU utilization according to the present invention can implement fast adjustment when the deviation between the actual CPU utilization in the terminal and the target CPU utilization is large, by presetting the thread priority, calculating the thread weight of each thread in the threads operated by the terminal according to the preset thread priority, and finally calculating the obtained thread weight. The method can subdivide the threads according to the priority, dynamically adjust the threads according to the thread weight of the terminal operation to control the CPU utilization rate to be constant at the target utilization rate, and regulate and control the CPU utilization rate better.
Example two
Fig. 2 is a structural diagram of a CPU utilization rate adaptive adjustment apparatus according to a second embodiment of the present invention.
In some embodiments, the CPU utilization adaptive adjusting apparatus 20 may include a plurality of functional modules composed of program code segments. The program codes of the program segments in the CPU utilization adaptive adjusting apparatus 20 may be stored in the memory of the terminal and executed by the at least one processor to perform (see fig. 1 for details) adaptive adjustment of the CPU utilization.
In this embodiment, the CPU utilization rate adaptive adjustment apparatus 20 may be divided into a plurality of functional modules according to the functions performed by the apparatus. The functional module may include: the device comprises an acquisition module 201, a first calculation module 202, a judgment module 203, a second calculation module 204, an adjustment module 205 and a determination module 206. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
An obtaining module 201, configured to obtain a CPU utilization of the terminal in a current monitoring period.
In this embodiment, the CPU utilization of the terminal may be obtained at regular time by the cloud monitoring system.
The cloud monitoring system in this embodiment may be a server of a large-scale system constituted by a plurality of cloud products, a service system constituted by a small number of machines, or a stand-alone system.
The terminal includes but is not limited to a smart phone, a computer, a notebook or a palm computer, etc.
The cloud monitoring system can monitor the CPU utilization rates of a plurality of terminals at the same time, and the CPU utilization rates are used as performance indexes of the terminals to monitor the load capacity of the terminals and further dynamically adjust the terminals to achieve the optimal working state.
Each terminal can acquire the CPU utilization rate of the terminal in each sampling period and send the acquired CPU utilization rate and the terminal identification to the cloud monitoring system. The cloud monitoring system receives the CPU utilization rate and the terminal identification sent by the plurality of terminals.
The first calculating module 202 is configured to calculate a difference between the CPU utilization and a preset target CPU utilization.
In this embodiment, the target CPU utilization of the terminal may be set in advance.
The preset target CPU utilization rate refers to the optimum CPU utilization rate which does not influence the operation efficiency of the terminal and is an appropriate amount of threads which can be executed by the terminal.
After the CPU utilization rate of the terminal is obtained, difference calculation can be carried out on the CPU utilization rate and the preset target CPU utilization rate to obtain a difference value between the CPU utilization rate and the preset target CPU utilization rate.
The judging module 203 is configured to judge whether the difference is within a preset difference range.
In this embodiment, the difference range may be set in advance.
The preset difference range refers to the amplitude of the fluctuation of the CPU utilization rate of the terminal in the vicinity of the preset target CPU utilization rate. For example, the preset difference range is an interval range from-5% to + 3%, which indicates that the CPU utilization of the terminal may be lower than the preset target CPU utilization by 5% or higher than the preset target CPU utilization by 3%.
When it is determined that the difference is within the preset difference range, any module may not be operated, and other modules may also be operated, and the present invention is not particularly limited herein.
It should be understood that, when it is determined that the difference is within the preset difference range, the case that the difference is equal to 0 is included, that is, the CPU utilization rate is equal to the preset target CPU utilization rate, this indicates that the terminal has reached the optimal working state, that is, the number of threads executed is appropriate, and the corresponding CPU utilization rate is just loaded appropriately.
A second calculating module 204, configured to calculate, according to a preset thread priority, a thread weight of each thread in the threads operated by the terminal when the determining module 203 determines that the difference is not within the preset difference range.
In this embodiment, when it is determined that the difference is not within the preset difference range, it indicates that the difference between the CPU utilization and the preset target CPU utilization is large, and the thread weight of each thread in the threads operated by the terminal may be calculated according to the preset thread priority, so that the CPU utilization of the terminal may be adjusted by subsequently adjusting the number of threads operated by the terminal according to the calculated thread weight.
The thread priority can be preset according to the application program which is correspondingly operated by the thread. Illustratively, if a first thread runs a first type of application program, the priority of the first thread is correspondingly set as a first priority; and if the second thread runs the first type of application program, correspondingly setting the priority of the second thread as a second priority, wherein the first priority is higher than the second priority.
Preferably, the calculating, by the second calculating module 204, the thread weight of each thread in the threads run by the terminal according to the preset thread priority includes:
141) and calculating the difference between the corresponding CPU utilization rate of the terminal before the running thread runs and the corresponding CPU utilization rate of the terminal after the running thread runs.
And after the terminal runs the running thread for a preset time period, the CPU utilization rate of the terminal is higher than that of the CPU which does not run the running thread.
The terminal correspondingly has a CPU utilization rate before the running thread runs, and correspondingly has a CPU utilization rate after the running thread runs for a preset time period. And comparing the CPU utilization rate before operation with the CPU utilization rate after operation to obtain a CPU utilization rate difference value.
142) And calculating the CPU utilization rate weight of each thread in the running threads according to the difference value.
In this embodiment, after acquiring a CPU usage difference corresponding to the terminal after the running thread is run before the running thread is run, the CPU usage weight of each thread in the running threads may be calculated.
Represented by the formula (1-1) below:
CPU _ weight _ default ═ Δ CPU usage/Δ T/n (1-1)
The CPU _ weight _ default represents the CPU utilization rate weight of each thread in the running threads, the delta CPU utilization rate represents the difference between the corresponding CPU utilization rate of the terminal before the running threads are run and the corresponding CPU utilization rate after the running threads are run, the delta T represents the preset time period, and the n represents the number of the running threads.
As can be seen from the equation (1-1), the CPU utilization rate weight is proportional to the CPU utilization rate change value of the terminal, and therefore, the CPU utilization rate weight can be used for indicating the influence degree of the running thread on the CPU utilization rate of the terminal. When the calculated CPU utilization rate weight is larger, the larger the influence of the running thread on the CPU utilization rate of the terminal is, the larger the CPU utilization rate change value of the terminal is; when the calculated weight of the CPU utilization rate is smaller, the smaller the influence of the running thread on the CPU utilization rate of the terminal is, and the smaller the CPU utilization rate change value of the terminal is.
143) And calculating the thread weight of each thread in the running threads according to the preset thread priority and the CPU utilization rate weight.
And after the running thread is run for the preset time period, the thread weight of the running thread changes, and the thread weight of each thread in the running thread is calculated according to the preset thread priority and the calculated CPU utilization rate weight.
Expressed by the formula (1-2) as follows:
task_weight=a*priority+b/CPU_weight_default (1-2)
wherein task _ weight represents a thread weight of each of the running threads, priority represents the preset thread priority, and a and b are constant parameters. The thread weight refers to a thread weight corresponding to each thread in the running threads after the running threads are run for the preset time period. Different threads have different corresponding priorities (priority values), and the calculated thread weights are also different. When the priorities of the threads are the same, the calculated thread weight is larger, which indicates that the influence of the running thread on the CPU utilization rate of the terminal is smaller, and the CPU utilization rate change value of the terminal is smaller; the smaller the calculated thread weight is, the greater the influence of the running thread on the CPU utilization rate of the terminal is, and the greater the CPU utilization rate change value of the terminal is. Default a is 1 and b is 2.
And the adjusting module 205 is configured to adjust the thread run by the terminal according to the calculated thread weight.
Because the difference between the CPU utilization of the terminal and the preset target CPU utilization is not within the preset difference range, that is, the difference between the CPU utilization of the terminal and the preset target CPU utilization is large, the CPU utilization may be higher than the preset target CPU utilization or lower than the preset target CPU utilization, and therefore, the CPU utilization of the terminal needs to be adjusted by adjusting the number of threads operated by the terminal or the attributes of the threads.
Preferably, the adjusting module 205 adjusts the thread run by the terminal according to the calculated thread weight includes:
judging whether the CPU utilization rate is less than the preset target CPU utilization rate or not;
if the CPU utilization rate is greater than the preset target CPU utilization rate, acquiring a first target thread of which the corresponding thread weight is smaller than a preset first thread weight threshold value from the threads in operation of the terminal and stopping the first target thread;
and if the CPU utilization rate is less than the preset target CPU utilization rate, acquiring a second target thread with the corresponding historical thread weight greater than a preset second thread weight threshold value from the threads which are not operated by the terminal, and operating the second target thread.
A first thread weight threshold and a second thread weight threshold may be preset, the first thread weight threshold (e.g., 0.3) being less than the second thread weight threshold (e.g., 0.7).
In some other embodiments, the first thread weight threshold may be the same as the second thread weight threshold, that is, only one thread weight threshold is preset, and the number of threads run by the terminal may be adjusted to achieve the effect of adjusting the CPU utilization threshold of the terminal by comparing the thread weight with the preset thread weight threshold or comparing the historical thread weight with the preset thread weight threshold.
It should be understood that the thread weight refers to a thread weight corresponding to a thread which is running in the terminal, and the thread weight is relative to a historical thread weight, and the historical thread weight refers to a thread weight corresponding to a thread which is not running in the terminal. For the thread which has been run but stopped before, the thread weight corresponding to the thread which is added with the running again takes the thread weight which is stopped as the thread weight, and the thread weight which is stopped is called as the historical thread weight.
In this embodiment, the purpose of controlling the CPU utilization of the terminal is achieved by comparing the thread weight with the preset thread weight threshold or comparing the historical thread weight with the preset thread weight threshold, and adjusting the type of threads running in the terminal and/or the number of threads running according to the comparison result. When the CPU utilization rate is determined to be greater than the preset target CPU utilization rate, the terminal CPU utilization rate is indicated to be higher, and then a first target thread with the corresponding thread weight smaller than a preset first thread weight threshold value is obtained from the threads running at the terminal and the first target thread is stopped. When the CPU utilization rate is determined to be smaller than the preset target CPU utilization rate, the CPU utilization rate of the terminal is indicated to be lower, and a second target thread with the corresponding historical thread weight larger than a preset second thread weight threshold value is obtained from threads which are not operated by the terminal and is operated, so that under the condition of the same priority, the larger the thread weight is, the smaller the CPU utilization rate weight of the corresponding thread is, namely, the smaller the influence of the thread on the CPU utilization rate is, the CPU utilization rate of the terminal is changed slowly, and more threads can be operated to fully utilize the CPU of the terminal while the CPU utilization rate in the terminal is ensured to be changed slowly by increasing the threads with the corresponding historical thread weight. The CPU utilization rate of the terminal is dynamically adjusted in a circulating mode, the CPU utilization rate of the terminal is guaranteed not to change rapidly, and the number of threads running in the terminal can be dynamically adjusted.
In some embodiments, after the cloud monitoring system calculates the thread weight, the thread weight may also be fed back to a terminal corresponding to the terminal identifier, and the terminal receives the thread weight fed back by the cloud monitoring system, compares the CPU utilization with the preset target CPU utilization, and further increases or stops running the thread according to the thread weight.
The second calculating module 204 is further configured to calculate the thread weight sum according to the thread weight of each thread in the running threads;
a determining module 206, configured to determine the first thread weight threshold and the second thread weight threshold according to the thread weight sum.
Further, the determining module 206 determines the first thread weight threshold and the second thread weight threshold according to the thread weight sum comprises:
determining a preset first proportional value of the thread weight sum as the first thread weight threshold;
determining a preset second proportional value of the thread weight sum as the second thread weight threshold;
the preset first ratio value (e.g., 30%) is smaller than the preset second ratio value (e.g., 70%).
In this embodiment, the thread weight sum is calculated according to the thread weight of each thread, and then the first and second thread weight thresholds are determined according to the thread weight sum, so that the first and second thread weight thresholds can be dynamically adjusted in real time according to the CPU utilization of the terminal, and the first and second thread weight thresholds can be dynamically adjusted, thereby avoiding the problem that the thread with the thread weight smaller than the first thread weight threshold cannot be stopped or the thread with the thread weight larger than the second thread weight threshold cannot be increased due to unreasonable preset first and second thread weight thresholds.
It should be noted that the CPU utilization rate adaptive adjustment apparatus may also be run in a terminal, directly obtain the CPU utilization rate through the terminal, calculate the thread weight of each thread in the threads run by the terminal according to a preset thread priority, and adjust the running threads according to the calculated thread weights. The CPU utilization rate is not required to be acquired and sent to the cloud monitoring system, the cloud monitoring system calculates the thread weight of each thread in the threads operated by the terminal according to the preset thread priority and feeds the thread weight back to the terminal, and the terminal adjusts the threads of the terminal row according to the calculated thread weight.
In summary, the adaptive CPU utilization adjusting device according to the present invention can implement fast adjustment when the deviation between the actual CPU utilization in the terminal and the target CPU utilization is large, by presetting the thread priority, calculating the thread weight of each thread in the threads operated by the terminal according to the preset thread priority, and finally calculating the obtained thread weight. The method can subdivide the threads according to the priority, dynamically adjust the threads according to the thread weight of the terminal operation to control the CPU utilization rate to be constant at the target utilization rate, and regulate and control the CPU utilization rate better.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. In the preferred embodiment of the present invention, the terminal 3 includes a memory 31, at least one processor 32, at least one communication bus 33, and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the terminal shown in fig. 3 is not limiting to the embodiments of the present invention, and may be a bus-type configuration or a star-type configuration, and the terminal 3 may include more or less hardware or software than those shown, or a different arrangement of components.
In some embodiments, the terminal 3 includes a terminal capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The terminal 3 may further include a client device, which includes, but is not limited to, any electronic product capable of performing human-computer interaction with a client through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, and the like.
It should be noted that the terminal 3 is only an example, and other existing or future electronic products, such as those that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
In some embodiments, the memory 31 is used for storing program codes and various data, such as the CPU utilization adaptive adjusting device 20 installed in the terminal 3, and realizes high-speed and automatic access to programs or data during the operation of the terminal 3. The Memory 31 includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable rewritable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
In some embodiments, the at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The at least one processor 32 is a Control Unit (Control Unit) of the terminal 3, connects various components of the entire terminal 3 by using various interfaces and lines, and executes various functions of the terminal 3 and processes data, for example, a method of performing adaptive adjustment of CPU utilization, by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the terminal 3 may further include a power supply (such as a battery) for supplying power to various components, and preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The terminal 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a terminal, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In a further embodiment, in conjunction with fig. 2, the at least one processor 32 may execute an operating device of the terminal 3 and various installed application programs (such as the CPU utilization adaptive adjusting device 20), program codes, and the like, for example, the above-mentioned modules.
The memory 31 has program code stored therein, and the at least one processor 32 can call the program code stored in the memory 31 to perform related functions. For example, the modules described in fig. 2 are program codes stored in the memory 31 and executed by the at least one processor 32, so as to implement the functions of the modules for the purpose of adaptive adjustment of CPU utilization.
In one embodiment of the present invention, the memory 31 stores a plurality of instructions that are executed by the at least one processor 32 to implement the functionality of CPU utilization adaptation.
Specifically, the at least one processor 32 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, and details are not repeated here.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A CPU utilization rate self-adaptive adjusting method is applied to a cloud server, and is characterized by comprising the following steps:
acquiring the CPU utilization rate of the terminal in the current monitoring period;
calculating a difference value between the CPU utilization rate and a preset target CPU utilization rate;
judging whether the difference value is within a preset difference value range or not;
when the difference is determined not to be within a preset difference range, calculating the thread weight of each thread in the threads operated by the terminal according to a preset thread priority;
and adjusting the thread operated by the terminal according to the calculated thread weight of each thread.
2. The method of claim 1, wherein after said computing a thread weight for each of the threads run by the terminal according to a preset thread priority, the method further comprises:
calculating the thread weight sum according to the thread weight of each thread in the running threads;
and determining a first thread weight threshold and a second thread weight threshold according to the thread weight sum.
3. The method of claim 2, wherein said determining the first thread weight threshold and the second thread weight threshold from the thread weight sum comprises:
determining a preset first proportional value of the thread weight sum as the first thread weight threshold;
determining a preset second proportional value of the thread weight sum as the second thread weight threshold;
the preset first proportion value is smaller than the preset second proportion value.
4. The method according to any one of claims 2 or 3, wherein said adjusting the threads run by the terminal according to the calculated thread weight of each thread comprises:
judging whether the CPU utilization rate is less than the preset target CPU utilization rate or not;
if the CPU utilization rate is greater than the preset target CPU utilization rate, acquiring a first target thread with thread weight smaller than the preset first thread weight threshold value from the threads running at the terminal and stopping the first target thread;
and if the CPU utilization rate is less than the preset target CPU utilization rate, acquiring a second target thread of which the corresponding historical thread weight is greater than the preset second thread weight threshold value from the threads which are not operated by the terminal, and operating the second target thread.
5. The method of claim 1, wherein the calculating the thread weight for each of the threads run by the terminal according to the preset thread priority comprises:
calculating the difference value between the CPU utilization rate of the terminal before the running thread is run and the CPU utilization rate of the terminal after the running thread is run;
calculating the CPU utilization rate weight of each thread in the running threads according to the difference value;
and calculating the thread weight of each thread in the running threads according to the preset thread priority and the CPU utilization rate weight.
6. The method of claim 5, wherein said calculating a CPU usage weight for each of said running threads based on said difference is calculated using the formula:
CPU _ weight _ default ═ Δ CPU usage/Δ T/n,
the CPU _ weight _ default represents the CPU utilization rate weight of each thread in the running threads, the delta CPU utilization rate represents the difference between the corresponding CPU utilization rate of the terminal before the running threads are run and the corresponding CPU utilization rate after the running threads are run, the delta T represents the preset time period, and the n represents the number of the running threads.
7. The method of claim 5 or 6, wherein the calculating the thread weight of each of the running threads according to the preset thread priority and the CPU usage weight is calculated by using the following formula:
task_weight=a*priority+b/CPU_weight_default,
wherein task _ weight represents a thread weight of each of the running threads, priority represents the preset thread priority, and a and b are constant parameters.
8. An adaptive CPU usage adjusting device operating in a cloud server, the device comprising:
the acquisition module is used for acquiring the CPU utilization rate of the terminal in the current monitoring period;
the first calculation module is used for calculating the difference value between the CPU utilization rate and a preset target CPU utilization rate;
the judging module is used for judging whether the difference value is within a preset difference value range or not;
the second calculation module is used for calculating the thread weight of each thread in the threads operated by the terminal according to the preset thread priority;
and the adjusting module is used for adjusting the thread operated by the terminal according to the calculated thread weight of each thread.
9. A terminal, characterized in that the terminal comprises a processor for implementing the CPU utilization adaptive adjustment method according to any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the CPU utilization adaptive adjustment method according to any one of claims 1 to 7.
CN201910679050.XA 2019-07-25 2019-07-25 CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium Pending CN110659130A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910679050.XA CN110659130A (en) 2019-07-25 2019-07-25 CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium
PCT/CN2019/117616 WO2021012510A1 (en) 2019-07-25 2019-11-12 Adaptive adjustment method and device for cpu use ratio, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910679050.XA CN110659130A (en) 2019-07-25 2019-07-25 CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110659130A true CN110659130A (en) 2020-01-07

Family

ID=69030963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910679050.XA Pending CN110659130A (en) 2019-07-25 2019-07-25 CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN110659130A (en)
WO (1) WO2021012510A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324454A (en) * 2020-02-03 2020-06-23 京东数字科技控股有限公司 Multi-core CPU allocation method and device, electronic equipment and storage medium
CN111427686A (en) * 2020-03-23 2020-07-17 贵阳块数据城市建设有限公司 Multithreading concurrency method for processors
CN113590448A (en) * 2021-08-04 2021-11-02 特瓦特能源科技有限公司 CPU utilization rate simulation method and device and electronic equipment
CN113900910A (en) * 2021-12-08 2022-01-07 北京新唐思创教育科技有限公司 Application program monitoring method and device, storage medium and electronic equipment
CN116775320A (en) * 2023-08-21 2023-09-19 苏州浪潮智能科技有限公司 Method, system, equipment and medium for improving execution efficiency of computing unit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120198461A1 (en) * 2011-01-31 2012-08-02 Oracle International Corporation Method and system for scheduling threads
CN106033345A (en) * 2015-03-17 2016-10-19 阿里巴巴集团控股有限公司 Method and device for controlling CPU utilization rate
CN109451155A (en) * 2018-10-31 2019-03-08 深圳市网心科技有限公司 Terminal temperature dynamic control method, terminal, system and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI496087B (en) * 2012-09-21 2015-08-11 Htc Corp Performance management methods for electronic devices with multiple central processing units
CN109710330B (en) * 2018-12-20 2022-04-15 Oppo广东移动通信有限公司 Method and device for determining running parameters of application program, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120198461A1 (en) * 2011-01-31 2012-08-02 Oracle International Corporation Method and system for scheduling threads
CN106033345A (en) * 2015-03-17 2016-10-19 阿里巴巴集团控股有限公司 Method and device for controlling CPU utilization rate
CN109451155A (en) * 2018-10-31 2019-03-08 深圳市网心科技有限公司 Terminal temperature dynamic control method, terminal, system and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324454A (en) * 2020-02-03 2020-06-23 京东数字科技控股有限公司 Multi-core CPU allocation method and device, electronic equipment and storage medium
CN111427686A (en) * 2020-03-23 2020-07-17 贵阳块数据城市建设有限公司 Multithreading concurrency method for processors
CN111427686B (en) * 2020-03-23 2023-03-24 贵阳块数据城市建设有限公司 Multithreading concurrency method for processors
CN113590448A (en) * 2021-08-04 2021-11-02 特瓦特能源科技有限公司 CPU utilization rate simulation method and device and electronic equipment
CN113900910A (en) * 2021-12-08 2022-01-07 北京新唐思创教育科技有限公司 Application program monitoring method and device, storage medium and electronic equipment
CN116775320A (en) * 2023-08-21 2023-09-19 苏州浪潮智能科技有限公司 Method, system, equipment and medium for improving execution efficiency of computing unit
CN116775320B (en) * 2023-08-21 2024-01-09 苏州浪潮智能科技有限公司 Method, system, equipment and medium for improving execution efficiency of computing unit

Also Published As

Publication number Publication date
WO2021012510A1 (en) 2021-01-28

Similar Documents

Publication Publication Date Title
CN110659130A (en) CPU utilization rate self-adaptive adjusting method, device, terminal and storage medium
CN109359031B (en) Multi-device application program testing method and device, server and storage medium
CN107844187B (en) Power consumption management method and device and electronic equipment
EP3935503B1 (en) Capacity management in a cloud computing system using virtual machine series modeling
CN103229125A (en) Dynamic power balancing among blade servers in chassis
WO2016069038A1 (en) Policy based workload scaler
CN110795238B (en) Load calculation method and device, storage medium and electronic equipment
CN115115030A (en) System monitoring method and device, electronic equipment and storage medium
CN111983412B (en) Monitoring system, monitoring method, monitoring terminal and storage medium
CN112819188B (en) Charging pile control method and device and computer readable storage medium
CN110647437B (en) Method, device, terminal and medium for adjusting CPU utilization rate based on PID controller
CN112565391A (en) Method, apparatus, device and medium for adjusting instances in an industrial internet platform
CN112463367A (en) Method and system for optimizing performance of storage system, electronic equipment and storage medium
CN115658311A (en) Resource scheduling method, device, equipment and medium
CN109857633B (en) Task computing power estimation method and device and storage medium
CN116962532A (en) Cluster task scheduling method and device, computer equipment and storage medium
CN116360990B (en) Distributed computing task rationality pre-judging method, system, equipment and storage medium
CN116114137A (en) Electronic device control method, electronic device and storage medium
CN115221528A (en) Credibility measuring method, credibility measuring device, image forming apparatus, and storage medium
CN110989814A (en) Server protection method, device and equipment
CN110112699A (en) The method and system that chip re-powers after a kind of power supply hit
CN114003367B (en) Risk monitoring method, device, equipment and storage medium
CN117228021B (en) Unmanned aerial vehicle charging and discharging adjustment method and system for identifying sorghum pests
CN117686918B (en) Battery SOC prediction method, device, battery management equipment and storage medium
RU2030057C1 (en) Device for automatic control over electric load

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination