Method and apparatus for prefetching recursive data structures
Abstract
Computer systems are typically designed with multiple levels of memory hierarchy. Prefetching has been employed to overcome the latency of fetching data or instructions from or to memory. Prefetching works well for data structures with regular memory access patterns, but less so for data structures such as trees, hash tables, and other structures in which the datum that will be used is not known a priori. The present invention significantly increases the cache hit rates of many important data structure traversals, and thereby the potential throughput of the computer system and application in which it is employed. The invention is applicable to those data structure accesses in which the traversal path is dynamically determined. The invention does this by aggregating traversal requests and then pipelining the traversal of aggregated requests on the data structure. Once enough traversal requests have been accumulated so that most of the memory latency can be hidden by prefetching the accumulated requests, the data structure is traversed by performing software pipelining on some or all of the accumulated requests. As requests are completed and retired from the set of requests that are
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 95.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of scheduling units of work for execution on a computer system including a data cache or data cache hierarchy, the method comprising the steps of: buffering a plurality of transactions on a data structure; scheduling a plurality of said transactions on said data structures in a loop; issuing prefetch instructions within the body of said loop for the data required to process said transactions.
- Claim 2Depends on #1
The method of buffering the results of the transactions processed on a computer system in accordance with claim 1 , wherein the results are buffered as well, thereby allowing multiple results to be processed together at a later time.
- Claim 3Depends on #1
The method of processing the results of a completed traversal on a data structure on a computer system according to claim 1 once a traversal of the data structure has completed. 4
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗