Wednesday, November 09, 2016

Flush cache

nocache()
{
    while true
    do
        sync
        echo 3 > /proc/sys/vm/drop_caches
        sleep $(( ($RANDOM % 20 )  + 1 ))
    done
}

No comments: