diff options
author | Anthony Wang | 2021-01-07 08:17:11 -0600 |
---|---|---|
committer | GitHub | 2021-01-07 08:17:11 -0600 |
commit | 242e651801d7acc7c2bf9bd5b7ca2acf58532a1d (patch) | |
tree | f77cf3e541e65455f292ee6999d0f9e6ec0baee7 | |
parent | d3ba23cc3f8e177da5a8b83bf323ca34d52f634c (diff) |
Create memory.md
-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` |