Unlock instant, AI-driven research and patent intelligence for your innovation.

Adaptive process cpu resource limitation method, device, terminal and storage medium

A CPU resource, self-adaptive technology, applied in the computer field, can solve problems such as lowering service quality, large CPU overhead, affecting host service programs, etc., to achieve the effect of reducing transmission and CPU usage

Active Publication Date: 2021-07-13
BEIJING SHENGXIN NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These tasks require a large CPU overhead and will affect other service programs on the host
Especially when the service on the host is processing high-concurrency and large-traffic tasks, the CPU overhead of the agent will seriously reduce the quality of service
Due to the variety of operating system types and versions on the host, some existing technical solutions have certain limitations in use

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
  • Adaptive process cpu resource limitation method, device, terminal and storage medium
  • Adaptive process cpu resource limitation method, device, terminal and storage medium
  • Adaptive process cpu resource limitation method, device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0023] figure 1 It is a flow chart of an adaptive process CPU resource limitation method provided by an embodiment of the present invention. Such as figure 1 As shown, the method includes:

[0024] S110, acquiring basic information of the system, and judging whether the system supports cgroups according to the basic information of the system;

[0025] Among them, the basic information of the system may include the version of the Linux system kernel (version 2.6.24 starts to support cgroups) and the mounting status of the CPU subsystem.

[0026] S120, when the system does not support cgroups, select the cpulimit mode to monitor the CPU usage;

[0027] S130. During the cpulimit monitoring process, if the CPU usage...

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 relates to an adaptive process CPU resource limitation method, device, terminal and storage medium. The method includes: obtaining the basic information of the system, judging whether the system supports cgroups according to the basic information of the system; when the system does not support cgroups, selecting the cpulimit mode to monitor the CPU usage; and during the cpulimit monitoring process, if the current first sampling If the CPU utilization rate of the target process does not exceed the set threshold during the cycle, then the target process will not be suspended in the next first sampling cycle. The embodiment of the present invention automatically detects the system environment, and selects the optimal CPU usage rate limiting method according to the acquired system basic information. When the system does not support cgroups, select the cpulimit mode to monitor the CPU usage rate, and during the cpulimit monitoring process, By adding threshold control logic, the sending of control signals is reduced, thereby reducing the CPU usage of the monitoring program itself.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an adaptive process CPU resource limitation method, device, terminal and storage medium. Background technique [0002] cpulimit is a program designed for the Linux system to control the CPU usage of the process. It monitors the CPU usage of the process in real time, and calculates the time that the process needs to suspend and run in a control cycle according to the preset threshold, and then alternately sends SIGSTOP and SIGSTOP to the process. SIGCONT These two signals control the execution status of the process, thereby limiting the CPU usage of the process. In the prior art, cpulimit needs to continuously send SIGSTOP and SIGCONT signals alternately to the process, and also sends signals frequently when the CPU usage of the process itself does not exceed the threshold, thereby generating additional overhead. [0003] Cgroups is a process management mechanism implemented by...

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/50G06F11/30G06F11/34
CPCG06F9/5044G06F11/3024G06F11/3051G06F11/3466
Inventor 尉爽生张福程度
Owner BEIJING SHENGXIN NETWORK TECH CO LTD