#!/bin/sh loggerName=drop_cache.sh logger -s -t $loggerName "Before Drop: Ram<`free -m | grep Mem: | awk '{print $4}'`(MB)>" echo 3 > /proc/sys/vm/drop_caches logger -s -t $loggerName "After Drop: Ram<`free -m | grep Mem: | awk '{print $4}'`(MB)>" exit 0