O'Reilly logo

Understanding the Linux® Virtual Memory Manager by Mel Gorman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required