Memory Fragmentation

This section deals with memory fragmentation. When free memory for use by programs becomes fragmented, programs will experience slowdown and might even stop working altogether. This is obviously a serious problem, especially where programs are concerned which should run for longer periods of time.

What Exactly Is Memory Fragmentation?

Memory is said to be fragmented when the blocks of memory that are not in use—free memory—are interspersed with blocks of memory that are in use—used memory. Strictly speaking, memory is almost always fragmented; however, fragmentation becomes a problem only when the levels of fragmentation are high. This is the case when the average size of the blocks of free memory becomes increasingly small. ...

Get C++ Footprint and Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.