mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
531e0e5926
commit
a41c659662
17
ZFS/clearcache.sh
Normal file
17
ZFS/clearcache.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user