Sciweavers

LCTRTS
2005
Springer

Upper bound for defragmenting buddy heaps

14 years 6 months ago
Upper bound for defragmenting buddy heaps
Knuth’s buddy system is an attractive algorithm for managing storage allocation, and it can be made to operate in real-time. At some point, storage-management systems must either over-provide storage or else confront the issue of defragmentation. Because storage conservation is important to embedded systems, we investigate the issue of defragmentation for heaps that are managed by the buddy system. In this paper, we present tight bounds for the amount of storage necessary to avoid defragmentation. These bounds turn out to be too high for embedded systems, so defragmentation becomes necessary. We then present an algorithm for defragmenting buddy heaps and present experiments from applying that algorithm to real and synthetic benchmarks. Our algorithm relocates less than twice the space relocated by an optimal algorithm to defragment the heap so as to respond to a single allocation request. Our experiments show our algorithm to be much more efficient than extant defragmentation algor...
Delvin C. Defoe, Sharath R. Cholleti, Ron Cytron
Added 28 Jun 2010
Updated 28 Jun 2010
Type Conference
Year 2005
Where LCTRTS
Authors Delvin C. Defoe, Sharath R. Cholleti, Ron Cytron
Comments (0)