User Tools

Site Tools


linux:linux_memory_swap

This is an old revision of the document!


Linux Swap and memory

Clear / clean swap

Clear PageCache only (more safe for ptoduction)

# sync; echo 1 > /proc/sys/vm/drop_caches

Clear dentries and inodes.

# sync; echo 2 > /proc/sys/vm/drop_caches

Clear PageCache, dentries and inodes.

# sync; echo 3 > /proc/sys/vm/drop_caches 
linux/linux_memory_swap.1613056529.txt.gz · Last modified: 2021/02/11 16:15 by manu