[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

laptop_mode doesn't seem to work: kjournald waking up disks frequently



I'm trying to use laptop_mode to get my disks to stay down to save energy in kernel 2.6.7. I used the script from kernel 2.6.7, put it in sbin. I also compiled the monitor in laptop_mode.txt too. When I run laptop_mode it doesn't seem to help much with the disks. What's the problem?

Using hdparm -S 4 I get:

Total running time:  517s
 State changed 9 times
 Time in sleep state:   76s (14.70%)
 Time in active state:  441s (85.30%)
 Time in unknown state: 0s (0.00%)

Using the bit block that reports to dmesg I get kjournald as the process that's dirtying the node. 

Hence, it doesn't seem like laptop_mode is even doing anything. If I run laptop_mode start again it doesn't complain that it's already running. I also don't see it in top but I assume that's normal since it's a script. When I run strace I get the following: 

[...]
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigaction(SIGINT, {0x8075fd0, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 2468
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 2469
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fd0, [], 0}, 8) = 0
close(3)                                = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbffff54c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
write(1, ".\n", 2.
)                      = 2
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "\nexit 0\n\n", 7994)         = 9
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0)     

How do I get the disks to spin down without kjournald interrupting so often?

Thanks


_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Reply to: