What are the best practices for disk spindown on a Netbook running on Ubuntu 10.04?

2

1

I have a Netbook (Samsung N210) running Ubuntu 10.04 Netbook Edition. Generally, I'm very happy with it. However, I'm not getting quite as much battery life out of it as I expected based on the manufacturer's claims (and from what I have read elsewhere) - perhaps 4-5 hours, even when doing simple text editing etc.

I tried installing the laptop-mode-tools package, which seemed extremely disk spindown happy - the disk spun up and down a lot - maybe every 5 seconds. I know laptop disks are designed for frequent spindowns, but that made me nervous and I uninstalled it. The alternative seems to be the default package pm-utils-powersave-policy, but that seems to almost never spin down.

Incidentally, I have the checkbox "Spin down hard disks when possible" checked in my Power Management Preferences, but I'm not clear what that affects or interacts with - it would be interesting to know.

So: what should I do? I'd like to eke out a bit more battery life, but the laptop-mode-tools settings seem extremely aggressive out-of-the-box. I know they can be tuned, but there seems to be a huge number of them - I'd prefer something more out-of-the-box and tested.

Andrew Ferrier

Posted 2010-10-03T19:21:53.763

Reputation: 1 604

Answers

2

Most laptop-mode settings won't cause any harm. Parameter choice is a compromise between power consumption and performance — a fairly personal choice, so it's expected that you'll want to tune the settings.

The noflushd package can make your disk spin down for longer periods of time by delaying writes (at the expense of data loss if your system crashes or runs out of battery before the delayed writes actually occur).


The hard disk only contributes a small part of your laptop's power consumption. Noise reduction, not power saving, is the primary reason to spin the disk down. See e.g. Who Eats the Energy? Power Consumption on a Modern Laptop — it's a bit dated, but I think the approximate results still hold.

Reduce the brightness of the display as far as you can go.

Turn off the wifi if you're not using it.

Try running powertop to find programs that are running in the background and prevent the CPU from switching to a low-power state.

Gilles 'SO- stop being evil'

Posted 2010-10-03T19:21:53.763

Reputation: 58 319

Thanks for your thoughts, and thanks for making me aware of noflushd; I wasn't, and I'll try it out. Not so sure about it not causing harm however. Hard drives, even laptop hard drives, are generally only rated for a certain maximum number of spindowns. A very regular spindown numbered in minutes could cause it to fail before time. – Andrew Ferrier – 2010-10-10T11:25:19.777

@Andrew: Using noflushd will result in fewer spin cycles (that's the whole point), at the expense of writes being delayed more. Regarding early failures due to spin cycles, you may be interested in How harmful is a hard disk spin cycle?.

– Gilles 'SO- stop being evil' – 2010-10-10T12:13:58.047