Update clearcache.sh

This commit is contained in:
kneutron 2022-03-14 12:44:16 -05:00 committed by GitHub
parent 66aaf185e6
commit fd2a047a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/bin/bash
# free up cache RAM
# free up cache RAM - run as root
# http://linux-mm.org/Drop_Caches
# uname -a
@ -8,7 +8,7 @@
[ `uname -a |grep -ci darwin` -gt 0 ] && exit 1;
sync
time sync
free
echo 1 > /proc/sys/vm/drop_caches # free pagecache