Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2016 13:07:09 -0400
From:      George Mitchell <george+freebsd@m5p.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Laptop disk spindown
Message-ID:  <e3c054fb-8961-e98c-ff7b-e6bb450596ca@m5p.com>
In-Reply-To: <57D58E82.4020605@grosbein.net>
References:  <50125b8f-f24d-6b78-f474-7e97017302e3@m5p.com> <57D58E82.4020605@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you!                                          -- George

On 09/11/16 13:04, Eugene Grosbein wrote:
> 11.09.2016 23:50, George Mitchell пишет:
>> Smartctl reports that my laptop disk has started and stopped
>> 101,798 times in 2,027 hours of operation, or roughly once a
>> minute.  I imagine that saves wear and tear on the disk, but
>> it also makes the laptop seem remarkably sluggish for an A8
>> based system.  Isn't there some sysctl that will lengthen the
>> idle time before stopping the disk?  I don't see one in the
>> ada man page.                                     -- George
> 
> Put the following to /usr/local/etc/rc.d/tune-spindown.
> Perhaps, we could have more clever and generalized version in base...
> 
> #!/bin/sh
> 
> # PROVIDE: tune-spindown
> # REQUIRE: FILESYSTEMS
> # BEFORE: DAEMON
> # KEYWORD: nojail
> 
> case "$1" in
> *start)
>         camcontrol standby ada0 -t 300
>         # dd if=/dev/ada0 of=/dev/null bs=512 count=1 >/dev/null 2>&1
>         ;;
> stop)
>         camcontrol standby ada0 -t 0
>         ;;
> esac
> 
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e3c054fb-8961-e98c-ff7b-e6bb450596ca>