From 242e651801d7acc7c2bf9bd5b7ca2acf58532a1d Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 7 Jan 2021 08:17:11 -0600 Subject: Create memory.md --- pages/linux/memory.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/linux/memory.md 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` -- cgit v1.2.3-70-g09d2