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
|
#!/bin/bash
|
||||||
|
|
||||||
# free up cache RAM
|
# free up cache RAM - run as root
|
||||||
# http://linux-mm.org/Drop_Caches
|
# http://linux-mm.org/Drop_Caches
|
||||||
|
|
||||||
# uname -a
|
# uname -a
|
||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
[ `uname -a |grep -ci darwin` -gt 0 ] && exit 1;
|
[ `uname -a |grep -ci darwin` -gt 0 ] && exit 1;
|
||||||
|
|
||||||
sync
|
time sync
|
||||||
|
|
||||||
free
|
free
|
||||||
echo 1 > /proc/sys/vm/drop_caches # free pagecache
|
echo 1 > /proc/sys/vm/drop_caches # free pagecache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user