Identifying and visualizing suboptimal memory layouts in software programs
Abstract
The disclosed embodiments provide a system that facilitates execution of a software program. During operation, the system obtains an execution unit associated with execution of a software program, wherein the execution unit includes a start and an end. Next, the system identifies a set of fields accessed within the execution unit. The system then calculates one or more memory distances among the set of fields from a set of memory addresses of the set of fields during runtime of the software program on the computer system, wherein the one or more memory distances include a difference in memory address between a first field and a second field in the set of fields. Finally, based at least in part on a memory distance in the one or more memory distances exceeding a threshold, the system stores an indication that the execution unit has a suboptimal memory layout.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: obtaining an execution unit associated with execution of a software program, wherein the execution unit comprises a start and an end; identifying, by a computer system, a set of fields accessed within the execution unit; calculating, by the computer system, one or more memory distances among the set of fields from a set of memory addresses of the set of fields during runtime of the software program on the computer system, wherein the memory addresses of the set of fields move during runtime, and wherein the one or more memory distances comprise a difference in average mem
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (19)
Non-Patent Literature (5)
- Che, Shuai et al. "Dymaxion++: A Directive-based API to Optimize Data Layout and Memory Mapping for Heterogeneous Systems", pp. 916-924. (Year: 2014).
- Che, Shuai et al., "Dymaxion: Optimizing Memory Access Patterns for Heterogeneous Systems", pp. 1-11. (Year: 2011).
- Cho, Doosan et al., "Adaptive Scratch Pad Memory Management for Dynamic Behavior of Multimedia Applications", pp. 554-567. (Year: 2009).
- Cho, Doosan et al., "Software Controlled Memory Layout Reorganization for Irregular Array Access Patterns", pp. 179-188. (Year: 2007).
- Kandemir, Mahmut et al., "Compiler-Directed Selection of Dynamic Memory Layouts", pp. 219-224. (Year: 2001).