Change hard drive's sleep/standby mode timer to reduce power consumption Depends on your system's usage and environment the time your hard drive is in idle state may wary. Every time a hard drive has nothing to do it waits certain period of time and then it enters sleep mode. To enter the sleep/standby mode, had drive has to park it's head and stops plate spin. by reducing a timer before hard drive goes to sleep mode we can save some energy.
Use hdparm command to determine what is the current enter sleep mode timer value (APM LEVEL):
# hdparm -B /dev/sda

 APM_level	= 254

Looking for Linux Systems Analyst !

The UAF Geophysical Institute, is looking for an experienced Linux Systems Analyst to join their team of research cyber infrastructure analysts and engineers. LOCATION: Fairbanks, Alaska, USA


The possible values for AMP level are between 1 ... 254. Multiply APM value by 5 and you get number of seconds your hard drive enters standby mode. For the block device /dev/sda above we can see that it enters standby mode after 1270 seconds of idle time that is if we set APM_level value to 1 the hard drive enters sleep mode after 5 seconds. 5 seconds may seem as a lot of energy saving, however, it may come with the price of reduced hard drive's life span.

Each time hard drive enters sleep mode and resumes normal working mode the head and hard drive's wear more rapidly. To reduce APM LEVEL of our hard drive you can use the bellow hdparm command:
# hdparm -B100 /dev/sda

 setting Advanced Power Management level to 0x64 (100)
 APM_level	= 100
Now the hard drive we sleep after 500 seconds of idle time.
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
Get extra help by visiting our LINUX FORUM or simply use comments below.

Comments and Discussions