From 14c4a7d1df8fa36b2615536f8e37b4309af4cc85 Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Sun, 18 Sep 2022 09:52:42 +0200 Subject: Limited the inactivity wait time. --- smart_spindown | 7 +++++-- 1 file 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. -- cgit v1.2.3