Memory Pool

Memory Pool

Memory pools, also called fixed-size-blocks allocation, allow dynamic memory allocation comparable to malloc or C++'s operator new. As those implementations suffer from fragmentation because of variable block sizes, it can be impossible to use them in a real time system due to performance. A more efficient solution is preallocating a number of memory blocks with the same size called the memory pool. The application can allocate, access, and free blocks represented by handles at run time.

Many real-time operating systems use memory pools, such as the Transaction Processing Facility.

Some systems, like the web server Nginx, use the term memory pool to refer to a group of variable-size allocations which can be later deallocated all at once. This is also known as a region; see region-based memory management.

Read more about Memory Pool:  Sample Memory Pool Implementation, Memory Pool Vs Malloc

Famous quotes containing the words memory and/or pool:

    ‘Tis of the essence of life here,
    Though we choose greatly, still to lack
    The lasting memory at all clear,
    That life has for us on the wrack
    Nothing but what we somehow chose;
    Thus are we wholly stripped of pride
    In the pain that has but one close,
    Bearing it crushed and mystified.
    Robert Frost (1874–1963)

    As every pool reflects the image of the sun, so every thought and thing restores us an image and creature of the supreme Good. The universe is perforated by a million channels for his activity. All things mount and mount.
    Ralph Waldo Emerson (1803–1882)