CPU occupancy rate measuring method and apparatus

A measurement method and occupancy rate technology, applied in multi-programming devices, hardware monitoring, etc., to achieve the effect of improving performance

Inactive Publication Date: 2009-01-14
ZTE CORP
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in actual engineering projects, problems are not always as easy to find as the above-mentioned infinite loop faults

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
  • CPU occupancy rate measuring method and apparatus
  • CPU occupancy rate measuring method and apparatus
  • CPU occupancy rate measuring method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The main idea of ​​the present invention is to generate timing interruption through the hardware timer, extract and store the value recorded by the program counter of the interrupted function (that is, the PC value of the function execution position), and then analyze the function name according to the stored result, and count Use times of all functions and analyze the execution rate of each function of the system. In this method, the reading and storage of the PC value can be completed by establishing a timer interrupt execution program, and the PC value is stored in a specific buffer data pool. When the buffer pool is full, the timer interrupt execution The program activates the corresponding sending process, and sends the sampling value of the buffer data pool to the relevant processing unit of the PC for data processing.

[0039] When the above-mentioned PC value data is sent and processed, a sending proxy process that is specially used to send PC value data to the ...

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 and a device for CPU occupation rate measurement and relates to the field of computer operation systems. The method of the invention comprises the following steps of: generating timed interruption by using a hardware timer; sampling and saving the values recorded by the program counters of the interrupted functions; carrying out function name resolution, counting times of function use and analyzing execution rate of each function of the system according to the saved data. The method provides a more precise CPU occupation rate measurement method and therefore offers a more effective basis for system execution efficiency acquisition.

Description

technical field [0001] The invention relates to the field of computer operating systems, in particular to a method and device for measuring CPU occupancy rate. Background technique [0002] In computer operating systems, CPU usage is an important indicator to measure system performance. The traditional CPU occupancy rate is at the process (also called task in the embedded operating system field) level, and the statistics are the CPU usage of a process in a recent period of time. In this statistical method, the occupancy rate of all tasks is and should be 100% regardless of the overhead of the operating system itself. By observing the CPU usage of each process, you can have a general grasp of the current operating status of the system. For example, if a task enters an infinite loop state, this failure will be directly reflected in the CPU usage of the process. Programmers can easily locate which process has a problem by checking the CPU usage rate, and use operating system-...

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 Applications(China)
IPC IPC(8): G06F11/34G06F9/46
Inventor 曾照恒徐军
Owner ZTE CORP
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