Add files via upload

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

23
clearcache.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# free up cache RAM
# http://linux-mm.org/Drop_Caches
# uname -a
#Darwin davesimac-2.local 15.6.0 Darwin
[ `uname -a |grep -ci darwin` -gt 0 ] && exit 1;
sync
free
echo 1 > /proc/sys/vm/drop_caches # free pagecache
#To free dentries and inodes:
[ "$*" = "2" ] && echo 2 > /proc/sys/vm/drop_caches
#To free pagecache, dentries and inodes:
[ "$*" = "3" ] && echo 3 > /proc/sys/vm/drop_caches
#echo 3 > /proc/sys/vm/drop_caches
free