diff options
-rw-r--r-- | pages/linux/memory.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pages/linux/memory.md b/pages/linux/memory.md new file mode 100644 index 0000000..677d260 --- /dev/null +++ b/pages/linux/memory.md @@ -0,0 +1,11 @@ +# Memory management + +> Commands for managing memory. + +- Clear swap: + +`sudo swapoff -a && sudo swapon -a` + +- Clear caches: + +`echo 3 | sudo tee /proc/sys/vm/drop_caches` |