Out of Memory - Per-process Memory Limits

Per-process Memory Limits

A system may limit the amount of memory each process may use. This is usually a matter of policy but it can also happen when the OS has a larger address space than is available at the process level. Some high-end 32-bit systems come with 8GB or more of system memory, even though any single process can only access 4GB of it in a 32-bit flat memory model.

A process that exceeds its per-process limit will have attempts to allocate further memory, for example with malloc, return failure. A well-behaved application should handle this situation gracefully; however, many do not. An attempt to allocate memory without checking the result is known as an "unchecked malloc".

Read more about this topic:  Out Of Memory

Famous quotes containing the words memory and/or limits:

    With a tongue like a razor he will kiss,
    the mother, the child,
    and we three will color the stars black
    in memory of his mother
    who kept him chained to the food tree
    or turned him on and off like a water faucet....
    Anne Sexton (1928–1974)

    Now rest in peace, our patriot band;
    Though far from nature’s limits thrown,
    We trust they find a happier land,
    A brighter sunshine of their own.
    Philip Freneau (1752–1832)