View previous topic :: View next topic |
Author |
Message |
gsra99 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_agent_smith.gif)
Joined: 06 Jan 2008 Posts: 105
|
Posted: Mon Jun 02, 2008 11:51 am Post subject: Hard drive power management in laptops |
|
|
Has anyone seen this thread in the Ubuntu forums about hard drive power management:
http://ubuntuforums.org/showthread.php?t=805570
Is this a real problem? I noticed that my load cycle count on my brand new hard disk after using Gentoo for 3 months is ~80,000. Which is far to high according to the article. Does anyone know if this will reduce the lifetime of the hard drive? Apparently all laptop hard drives have a minimum load cycle count of 600,000. Generally in all linux os tend to use very aggressive power management settings for hard drives which causes the hard disk head to park every ~1 min, and this causes the load cycle count to increase rapidly. Any information would to useful. I haven't seen this problem mentioned in the forums. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon Jun 02, 2008 12:00 pm Post subject: |
|
|
I will check my laptop tonight.
But for the rest, I would like to know the answer too ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IvanMajhen Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/546222386463ca2501f004.jpg)
Joined: 10 Jun 2006 Posts: 392 Location: Croatia
|
Posted: Mon Jun 02, 2008 4:32 pm Post subject: |
|
|
My Hitachi HDD, 1.5 years old:
Code: | Load_Cycle_Count 0x0012 068 068 000 Old_age Always - 323472 |
They should work with minimum 600k Load_Cycle_Count.
But why do they count this the same as when drive spins down...
I have this clicking in XP too. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gsra99 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_agent_smith.gif)
Joined: 06 Jan 2008 Posts: 105
|
Posted: Mon Jun 02, 2008 6:54 pm Post subject: |
|
|
I think the load cycle count is when the hard drive 'parks' its head and not when it actually spins down the spindle. They are 2 different things, which are required for power saving on the hard drive. If this is wrong then please let me know. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Link31 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Apr 2006 Posts: 200 Location: France
|
Posted: Mon Jun 02, 2008 7:42 pm Post subject: |
|
|
It happens for me in Gentoo and Windows (actually, it happens also in Grub, so it may be BIOS-related).
I don't think it is very good for the hard drive lifetime... Fortunately, you can fix it, at least from Linux.
Just add this line to /etc/conf.d/hdparm (emerge it if needed):
(You could also try other values. Some people use -B255, but I hear some strange noise with this setting) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gsra99 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_agent_smith.gif)
Joined: 06 Jan 2008 Posts: 105
|
Posted: Mon Jun 02, 2008 7:47 pm Post subject: |
|
|
I'm currently using -B254 -S242 -M128 with hdparm, and I have reduced my load cycle count drastically, but I have to keep an eye on the HD temperature. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon Jun 02, 2008 8:34 pm Post subject: |
|
|
Code: |
gentootux ~ # smartctl -H /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
gentootux ~ # smartctl -a /dev/sda | grep Load_Cycle_Count
193 Load_Cycle_Count 0x0032 001 001 000 Old_age Always - 204698
gentootux ~ #
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
IvanMajhen Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/546222386463ca2501f004.jpg)
Joined: 10 Jun 2006 Posts: 392 Location: Croatia
|
Posted: Mon Jun 02, 2008 8:36 pm Post subject: |
|
|
So, this head parking is dangerous like when disk spins up/down?
It is better then to run some app that reads/writes to disk (like ktorrent, my count then doesn't go up) then when disk is idle?
Deactivating this could also leads to more fragile disk when using it on your lap, or against shocks.
Is there any way to read max Load_Cycle_Count number from disk firmware?
I hope they don't have any evil program in firmware to disable drive when critical count is reached, and disk could still be ok. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gsra99 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_agent_smith.gif)
Joined: 06 Jan 2008 Posts: 105
|
Posted: Mon Jun 02, 2008 9:36 pm Post subject: |
|
|
I think the hard disk manufactures only guarantee a minimum load cycle count which is generally 600k for most hd. Therefore, once you reach this then the life span of your hd is in the hands of the gods as they say. I saw several posts on the ubuntu forums where people have said that there hd are beyond the 600k mark. I think someone even posted that there hd was on 1.2m. That is why I wanted to know how serious an issue this was. Also if you are running a read/write program constantly it does reduce the load cycle count, but to get a drastic reduction you need to use hdparm at boot. I think they recommend a -B200 -S252 for hdparm for a conservative power management setting. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Jun 03, 2008 11:47 am Post subject: |
|
|
gsra99 wrote: | I think they recommend a -B200 -S252 for hdparm for a conservative power management setting. |
And what about someone like me who has a SATA hdd ? Hdparm is not use at all with my disk. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Link31 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Apr 2006 Posts: 200 Location: France
|
Posted: Tue Jun 03, 2008 3:40 pm Post subject: |
|
|
HDPARM(8) wrote: | hdparm - get/set SATA/ATA device parameters |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Minthos n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Feb 2005 Posts: 9 Location: Norway
|
Posted: Tue Jul 08, 2008 4:40 pm Post subject: |
|
|
Just got a new laptop and its HDD is already at
Code: | 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 1307 |
after oly
Code: | 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 80 |
and I can confirm the frequent clicking when idle.
I read about this problem previously and checked my computers for high load cycle count and none of them had the problem. I had assumed HDD manifacturers had switched to more sane default values by now, evidently they have not.
I'm also surprised there is no better fix than hdparm -B 254 written up somewhere. Shouldn't be such a problem to increase the delay before head parking to 5 minutes or so, right? I set my hdparm -B to 240. Don't know how long that is but I hope it's more reasonable than 128 and 254.
There is, however, a package that should avoid this problem; laptop-mode-tools. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mrazvan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/121272475045c0537845cb2.jpg)
Joined: 21 Nov 2006 Posts: 7 Location: Bucharest, Romania
|
Posted: Sat Mar 28, 2009 10:42 pm Post subject: |
|
|
This seems to bring about neverending discussions as more and more people (like myself) discover the issue and start asking questions, but the hdd manufacturers don't say a word.
I am using laptop_mode_tools under gentoo with little success. The problem is the HDD tries to park its heads too quick. This is a feature of notebook hdds, and on my model (a wd2500bevs) it is labeled (taken from hdparm -I)
Code: | IDLE IMMEDIATE with UNLOAD |
which pretty much says it all. No setting apart from B254 (completely disable power management) has any effect on head parking time on my model.
I guess there's really no solution to this other than leaving it as it is. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|