Wednesday, December 2, 2015

Linux Memory Management

32 bit : http://tldp.org/HOWTO/KernelAnalysis-HOWTO-7.html
64 bit : https://www.kernel.org/doc/gorman/html/understand/understand012.html

Check Memory Utilization
cat /proc/meminfo
free -m

Configuration
/proc/sys/vm/*

Dirty Page
/proc/sys/vm/dirty_background_ratio: disk write buffer flushing threshold as percentage of system memory
/proc/sys/vm/dirty_ratio: disk write buffer size as percentage of system memory

Handle out of memory
/proc/sys/vm/vfs_cache_pressure
/proc/sys/vm/min_free_kbytes
/proc/sys/vm/drop_cache

No comments:

Post a Comment