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

Process cpu occupancy rate control method, terminal device and storage medium of linux system

A control method and occupancy rate technology, applied in the field of computer systems, can solve problems such as insufficient compatibility, complex architecture, and poor usability, and achieve the effect of improving CPU resource utilization

Active Publication Date: 2022-04-05
XIAMEN FUYUN INFORMATION TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The Cgroup architecture is complex and requires kernel support. Therefore, there are problems of poor ease of use and insufficient compatibility under the pure CPU limitation.

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
  • Process cpu occupancy rate control method, terminal device and storage medium of linux system
  • Process cpu occupancy rate control method, terminal device and storage medium of linux system
  • Process cpu occupancy rate control method, terminal device and storage medium of linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] refer to figure 1 As shown, the present invention provides a process CPU usage rate control method of a Linux system. Since resource scheduling is implemented in the system kernel, the common process CPU usage rate control method requires the cooperation of the kernel module to be implemented. For example, the Cgroup (Control Groups) mechanism under the Linux operating system manages and controls the behavior of processes using system resources in the form of groups. By grouping the processes, the user allocates and controls the resources of the group as a whole, including controlling the CPU usage rate of the processes. Cgroup is constructed by two parts, the kernel mode module and the user mode interface. The user obtains and sets various parameters of the kernel module through the user mode interface. The Cgroup structure is complex and requires the support of the kernel, so there is a problem of poor ease of use and insufficient compatibility in purely CPU-limited ...

Embodiment 2

[0064] The present invention also provides a process CPU occupancy rate control terminal device of a Linux system, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program The program realizes the steps in the above-mentioned method embodiment of Embodiment 1 of the present invention.

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 present invention relates to a process CPU occupancy rate control method of a Linux system, a terminal device and a storage medium. The method includes: S1: Initially setting the running time ratio of the process to be monitored. workingrate = CPU occupancy rate pcpu = limit threshold limit, set Control period dt; S2: Calculate the CPU usage rate pcpu of the process to be monitored starting from the second control moment; S3: Calculate the running time ratio workingrate at the current control moment according to the CPU usage rate pcpu at the current control moment; S4: Calculate the current The expected running time twork and the expected pause time tsleep at the control moment; S5: According to the expected running time twork and the expected pause time tsleep at the current control moment, the twork time in the next control period of the process to be monitored is controlled through the linux signal SIGCONT and SIGSTOP signals, Suspend tsleep time. The present invention can be completely realized in the user state environment, does not need the support of the kernel model, and greatly improves the compatibility to the application environment.

Description

technical field [0001] The invention relates to the technical field of computer systems, in particular to a process CPU occupancy rate control method of a Linux system, a terminal device and a storage medium. Background technique [0002] As the most important resource component of a modern computer system, CPU computing resources play a vital role in ensuring the normal, stable, and efficient operation of the entire computer system. The CPU resources of modern operating systems are usually managed by the scheduling algorithm. Taking Linux as an example, fairness is an important principle in ordinary process scheduling. Linux is the most representative modern operating system, and there are basically two ways to achieve fair scheduling: [0003] 1. Allocate a time slice (according to priority) to the process in the executable state, and the process that has used up the time slice is placed in the "expiration queue". Wait for the processes in the executable state to expire,...

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): G06F11/30G06F9/50
CPCG06F9/5027G06F11/3024
Inventor 潘宵陈奋孙晓波龚利军陈荣有
Owner XIAMEN FUYUN INFORMATION TECH CO LTD