Re: Is there a way to keep the 2.6 kjournald from writing to idledisks? (to allow spin-downs)

From: Bart Samwel
Date: Mon Jan 26 2004 - 05:45:40 EST




Lutz Vieweg wrote:
It's not a laptop, but a server with an ordinary 3.5" harddisk I'm speaking about,
my goal is not saving power, but spinning down a harddisk that does not need to
spin up the whole day long.

What I'm questioning is whether there's a need to write to idle disks at all -
does anybody know why kjournald writes data even if there is nothing to commit at all?

Hmmm. My 2nd HD (that I almost never use) is set to hdparm -S 4 (20 seconds), it has an ext3 filesystem on it, and it spins down some 20 seconds after mounting and never spins up again. I haven't had to set any options to make this possible. Is it possible that there may still be something that is dirtying blocks on that disk? (If you want to check this out, laptop_mode has a /proc/sys/vm/block_dump setting that makes the kernel log all reads, writes and block dirtyings.)

-- Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/