This commit is contained in:
Oleg Sheynin
2026-06-22 17:06:48 +00:00
commit 4960566db8
3 changed files with 16 additions and 0 deletions
View File
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root." >&2
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
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root." >&2
exit 1
fi
/usr/sbin/fstrim -av