From fd2a047a5d021982ac641cdb121f22be424196b4 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Mon, 14 Mar 2022 12:44:16 -0500 Subject: [PATCH] Update clearcache.sh --- clearcache.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clearcache.sh b/clearcache.sh index c391a5b..f9da62d 100644 --- a/clearcache.sh +++ b/clearcache.sh @@ -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