Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hard drive power management in laptops
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gsra99
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2008
Posts: 105

PostPosted: Mon Jun 02, 2008 11:51 am    Post subject: Hard drive power management in laptops Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jun 02, 2008 12:00 pm    Post subject: Reply with quote

I will check my laptop tonight.

But for the rest, I would like to know the answer too :)
Back to top
View user's profile Send private message
IvanMajhen
Guru
Guru


Joined: 10 Jun 2006
Posts: 392
Location: Croatia

PostPosted: Mon Jun 02, 2008 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
gsra99
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2008
Posts: 105

PostPosted: Mon Jun 02, 2008 6:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Mon Jun 02, 2008 7:42 pm    Post subject: Reply with quote

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):
Code:
sda_args="-B192"

(You could also try other values. Some people use -B255, but I hear some strange noise with this setting)
Back to top
View user's profile Send private message
gsra99
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2008
Posts: 105

PostPosted: Mon Jun 02, 2008 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jun 02, 2008 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
IvanMajhen
Guru
Guru


Joined: 10 Jun 2006
Posts: 392
Location: Croatia

PostPosted: Mon Jun 02, 2008 8:36 pm    Post subject: Reply with quote

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? :lol:

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
View user's profile Send private message
gsra99
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2008
Posts: 105

PostPosted: Mon Jun 02, 2008 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Jun 03, 2008 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Tue Jun 03, 2008 3:40 pm    Post subject: Reply with quote

HDPARM(8) wrote:
hdparm - get/set SATA/ATA device parameters
Back to top
View user's profile Send private message
Minthos
n00b
n00b


Joined: 04 Feb 2005
Posts: 9
Location: Norway

PostPosted: Tue Jul 08, 2008 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
mrazvan
n00b
n00b


Joined: 21 Nov 2006
Posts: 7
Location: Bucharest, Romania

PostPosted: Sat Mar 28, 2009 10:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum