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
CN101344865AInactive Publication Date: 2009-01-14ZTE CORP

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
ZTE CORP
Publication Date
2009-01-14
Estimated Expiration
Not applicable Β· inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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