Method and device for controlling cpu utilization rate

A control method and control device technology, applied in the computer field, can solve the problems of poor real-time adjustment, error, lag, etc., and achieve the effects of high real-time performance, high precision and high precision

Active Publication Date: 2019-06-11
TAOBAO CHINA SOFTWARE
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] But there are problems: 1) For multi-core CPUs, because the above method starts a large number of threads, the CPU will switch between threads frequently, and the program itself will cause excessive CPU occupation, resulting in unstable CPU usage; 2) It is necessary to control the CPU utilization rate by starting and destroying threads. Since many threads start and destroy a certain amount of time, the real-time performance of CPU adjustment will be poor and the lag will be serious; 3) static errors in the system cannot be eliminated, and the The CPU usage has a certain error from the expected value, and this error is closely related to the specific environment and cannot be predicted.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for controlling cpu utilization rate
  • Method and device for controlling cpu utilization rate
  • Method and device for controlling cpu utilization rate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0020] The method and device for controlling CPU usage in the embodiments of the present application are described below with reference to the accompanying drawings.

[0021] figure 1 is a flowchart of a method for controlling CPU usage according to an embodiment of the present application. It should be noted that, in the embodiment of the present application, the CPU is a multi-core CPU. For such figure 1 As shown, the CPU usage control method may include:

[0022] S101. Start a work process, where the work process has ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for controlling CPU utilization rate. The method comprises: starting a work process, wherein the work process and a target CPU have binding relation; obtaining current utilization rate and target utilization rate of the target CPU, and obtaining an error value between the current utilization rate and the target utilization rate; according to the error value, generating work time of the work process; and according to the work time of the work process, controlling the work process. The method can make CPU utilization rate control achieve characteristics of stable effect, high real-time property, and high accuracy. The invention also discloses a device for controlling CPU utilization rate.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for controlling CPU utilization. Background technique [0002] At present, in many high-reliability software tests, a very important test scenario is the performance test of the software under high pressure. And this high stress often manifests itself in high CPU usage. As another example, in many high-reliability systems, strong disaster handling plans and disaster recovery protection mechanisms are required to support them, and most disaster recovery protection mechanisms rely on a monitoring device that can monitor system status in real time, such as CPU usage, memory usage, etc. Since when a certain system state reaches a precise set value, the disaster recovery protection mechanism will be triggered to automatically implement a certain processing plan. Therefore, during the test process of this disaster recovery mechanism, the real-time cont...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50
Inventor 王桐
Owner TAOBAO CHINA SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products