Create memory.md

This commit is contained in:
Anthony Wang 2021-01-07 08:17:11 -06:00 committed by GitHub
parent d3ba23cc3f
commit 242e651801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
pages/linux/memory.md Normal file
View file

@ -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`