Appendix M. Out of Memory Management

Contents

Determining Available Memory

Contents

Function: vm_enough_memory() (mm/mmap.c)

 53 int vm_enough_memory(long pages) 54 { 65 unsigned long free; 66 67 /* Sometimes we want to use more memory than we have. */ 68 if (sysctl_overcommit_memory) 69 return 1; 70 71 /* The page cache contains buffer pages these days.. */ 72 free = atomic_read(&page_cache_size); 73 free ...

Get Understanding the Linux® Virtual Memory Manager now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.