This commit is contained in:
Oleg Sheynin
2026-06-22 17:24:20 +00:00
parent 4960566db8
commit 1267b498ea
3 changed files with 48 additions and 2 deletions
+21 -1
View File
@@ -5,4 +5,24 @@ if [ "$(id -u)" -ne 0 ]; then
exit 1
fi
free -h ; sudo sync; for v in 1 2 3 1 ; do echo ${v} | sudo tee /proc/sys/vm/drop_caches; done; free -h
echo "---------------------------"
echo "Running: ${0} ${*}"
echo
echo "free -h ; sync; for v in 1 2 3 1 ; do echo ${v} | tee /proc/sys/vm/drop_caches; done; free -h"
free -h
sync
for v in 1 2 3 1 ; do
echo ${v} | tee /proc/sys/vm/drop_caches
done
free -h
Cmd="/usr/sbin/swapoff -av"
echo ${Cmd} && ${Cmd}
Cmd="/usr/sbin/swapon -av"
echo ${Cmd} && ${Cmd}
echo "---------------------------"
echo "DONE: ${0} ${*}"
echo