NOTES
By default, Linux follows an optimistic memory allocation strategy. This means that when mal‐
loc() returns non-NULL there is no guarantee that the memory really is available. In case it
turns out that the system is out of memory, one or more processes will be killed by the OOM
killer. For more information, see the description of /proc/sys/vm/overcommit_memory and
/proc/sys/vm/oom_adj in proc(5), and the Linux kernel source file Documentation/vm/overcommit-
accounting.
(...)
[^] # Re: /proc/sys/vm/overcommit_memory
Posté par Benoît Sibaud (site web personnel) . En réponse au message pourquoi malloc peut échouer alors que linux utilise de la mémoire virtuelle. Évalué à 4.
man 3 malloc