Add files via upload

This commit is contained in:
kneutron 2021-04-12 14:45:41 -05:00 committed by GitHub
parent 531e0e5926
commit a41c659662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
ZFS/clearcache.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# free up cache RAM
# http://linux-mm.org/Drop_Caches
free
time sync
echo 1 > /proc/sys/vm/drop_caches # free pagecache
free
#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