mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Update clearcache.sh
This commit is contained in:
parent
66aaf185e6
commit
fd2a047a5d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user