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 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.