Rombobjörn

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Persson <Bjorn@Rombobjörn.se>2022-09-18 09:52:42 +0200
committerBjörn Persson <Bjorn@Rombobjörn.se>2022-09-18 09:52:42 +0200
commit14c4a7d1df8fa36b2615536f8e37b4309af4cc85 (patch)
treefc1da3a70084ccfc824bfcc3509e72f77b22456e
parent69d241362d4e45e7ce52136122fb116a2a640933 (diff)
Limited the inactivity wait time.HEADmaster
-rwxr-xr-xsmart_spindown7
1 files changed, 5 insertions, 2 deletions
diff --git a/smart_spindown b/smart_spindown
index 9f7a3cb..20ba556 100755
--- a/smart_spindown
+++ b/smart_spindown
@@ -61,8 +61,11 @@ WAITTIME=150
# The maximum inactivity wait time (in seconds).
# This also limits the backoff factor: the backoff factor cannot increase
# above a value that makes the inactivity wait time larger than MAXWAIT.
-# Default is 120 seconds.
-MAXWAIT=1200
+# Something, probably in Linux, seems to read a few disk sectors every ten
+# minutes while the disk is spinning, which prevents this program from ever
+# spinning down the disk once the inactivity wait time grows longer than ten
+# minutes. To avoid this, MAXWAIT is set to nine minutes.
+MAXWAIT=540
# Time (in seconds) between polls to see if the disk is active again.
# Default is 10 seconds.