Method and apparatus for instruction execution hot spot detection and monitoring in a data processing unit
Abstract
Disclosed is a method and apparatus for detecting and monitoring program hot spots during execution that may be implemented in hardware. A hot spot detector tracks branch instructions which are retired. Frequently executed branch instruction addresses within a particular interval are designated as hot spot candidates. A hot spot detection counter is used to track non-hot spot branches and hot spot candidate branches. When hot spot candidate branches are frequently encountered compared to non-hot spot candidate branches, the hot spot detector may notify the operating system and hot spot candidate branch addresses may be supplied to a runtime optimizing compiler and a monitor table or a hot spot monitor. The hot spot monitor may disable the hot spot detector when a program is operating in known hot spots and may enable the hot spot detector if the program has strayed from known hot spots.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 77.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for detecting instruction execution hot spots in a data processing unit, said data processing unit including a buffer with a plurality of entries having at least a branch identifying field and a branch counter, when a branch instruction is executed by the data processing unit, performing the steps comprising: if an entry is not present in said buffer that corresponds to the branch address associated with said branch instruction, creating an entry in the buffer that includes information in the branch identifying field corresponding to the branch address associated with said branch inst
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 77 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- G. Ammons, T. Ball and J. R. Larus, "Exploiting Hardware Performance Counters with Flow and Context Sensitive Profiling," 1997 ACM SIGPLAN Conference on Programming Language Design and Implementation, Las Vegas, Nevada, Jun. 1997.
- J. Dean, J. E. Hicks, C. A. Waldspruger, W. E. Weihl and G. Chrysos, "ProfileMe: Hardward Support for Instruction-Level Profiling on Out-of-Order Processors," IEEE, PP. 292-302, 1997.
- J. M. Anderson, L. M. Berc, J. Dean, S. Ghemawat, M. R. Henzinger, S. A. Leung, R. L. Sites, M. T. Vandevoorde, C. A. Waldspurger and W. E. Weihl, "Continuous Profiling: Where Have All the Cycles Gone?" SRC Techical Note 1997-016A, Modified Sep. 3, 1997.
- T. . Conte, K. N.Menezes and M. A. Hirsch, "Accurate and Practical Profile-Driven Compilation Using the Profile Buffer," IEEE, pp. 36-45, 1996.
- T.M. Conte;, B. A. Patel, K. N. Menezes and J. S. Cox, "Hardware-Based Profiling: An Effective Technique for Profile-Driven Optimization," Department of Electrical and Computer Engineering, North Carolina State University, Raleigh, North Carolina-Undated-.