Patents
US 7,519,639 B2#10391294 Most CitedExpiredUnited States (USPTO)Utility

Method and apparatus for dynamic incremental defragmentation of memory

10Forward Citations (#10391294 Global)
0.6/yrCitation Velocity (#13559999 Global)
2.15Citation PageRank (#12901653 Global)
17Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A garbage collection process for managing a memory includes a defragmentation cycle. The garbage collection process is interleaved with a running application on a time-based or work-based schedule. The memory is divided into pages which are further divided into blocks falling into one of a number of block size classes. Objects that were not used by applications during the last garbage collection phase are marked. Objects that were used are moved from pages containing the least live objects to pages containing the most live objects. Objects of the largest block size classes are moved first and objects of the smallest block size class are moved last. The garbage collection interval can be selected to satisfy desired CPU utilization or memory overhead requirements.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 10.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of defragmenting a memory heap arranged into a series of pages, the method comprising: dividing the pages of the memory heap into a series of blocks of different size classes; selecting a size of the blocks to limit an amount of internal fragmentation; determining that a number of empty pages of memory has fallen below a threshold number of empty pages of memory; marking objects in the memory heap that were not used during a previous garbage collection cycle as dead objects; marking objects in the memory heap that were used during the previous garbage collection cycle as live objects;

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (17)

PatentTitleYearCitations
US 5,604,902 AHole plugging garbage collection for a data storage system199785
US 5,680,582 AMethod for heap coalescing where blocks do not cross page of segment boundaries199730
US 5,687,368 ACPU-controlled garbage-collecting memory module1997107
US 5,761,536 ASystem and method for reducing memory fragmentation by assigning remainders to share memory blocks on a best fit basis1998138
US 5,857,210 ABounded-pause time garbage collection system and method including read and write barriers associated with an instance of a partially relocated object1999103
US 6,131,150 AScaled memory allocation system200049
US 6,421,689 B1Moderately conservative, mostly copying 2 space garbage collector in the nursery of a generational memory manager200233
US 6,480,862 B1Relation-based ordering of objects in an object heap2002119
US 6,542,978 B2Externally identifiable descriptor for standard memory allocation interface200332
US 2004073764 A1System and method for reinforcement learning and memory management—118
US 2004078381 A1System and method for compacting a computer system heap—66
US 6,826,583 B1Local allocation buffers for parallel garbage collection2004120
US 6,874,074 B1System and method for memory reclamation200594
US 2005114413 A1Bit vector toggling for concurrent mark-sweep garbage collection—51
US 6,938,245 B1Interactive debugging system with debug data base system200558
US 2005268049 A1Dynamic memory management—31
US 6,978,448 B1Method and apparatus for rewriting bytecodes to minimize runtime checks200513

Non-Patent Literature (5)

  • "Trading Data Space for Reduced Time and Code Space in Real-Time Garbage Collection on Stock Hardware", by Rodney Brooks, pp. 256-262.
  • A Real-time Garbage Collector with Low Overhead and Consistent Utilization, Bacon et al. Published: POPL'03, Jan. 15-17, 2003, ACM 1-58113-628-5/03/0001, pp. 285-298.
  • Controlling Fragmentation and Space Consumption in the Metronome, a Real-time Garbage Collector for Java, by Bacon et al. Published, LCTES'03 Jun. 11-13, 2003, ACM 1-58113-647-1/03/0006, pp. 1-12.
  • Maintaining Windows 2002 Peak Performance Through Defragmentation, Microsoft TechNet, pp. 1-7.
  • Memory fragmentation in buddy methods for dynamic storage allocation. Allan G. Bromley (Acta Informatica, ISSN: 0001-5903/80/0014/0107, pp. 107-117, 1980).