Laptop-mode v7 for linux 2.6.1
Bart Samwel <[email protected]> schrieb am 12.01.04 14:47:20:
Quoted 15 lines
Quoted 5 lines · Jan De Luyck
Quoted 2 lines
2. Stop klogd, do "echo 1 >
/proc/sys/vm/block_dump" and see which process keeps your disk spun up using dmesg.Welll.... i see no READs, and the writes i see is spamd, kmail, pdflush, reiserfs/0.
How are the WRITEs grouped, are they grouped together or do they seem to occur more evenly spaced? When you use "sync", how long until the next WRITE? What are the values of
/proc/sys/vm/dirty_expire_centisecsand/proc/sys/vm/dirty_writeback_centisecs? Are you sure you are running a kernel that supports the commit= option with reiserfs? (This option was added in 2.6.1.)
Quoted 2 lines
I've never tested laptop mode with reiserfs BTW, does anybody else here have experience with laptop mode and reiserfs?
I'm currently trying kernel 2.6.1-mm1 with laptop-mode on a reiserfs partition.
If I kill all daemons running on the system and do nothing with it, I can achieve the 10 minutes spin down time I had expected from laptop-mode. However as soon as I start up X with KDE I get regular spin ups every 30 seconds. Looking at the output of "echo 1 > /proc/sys/vm/block_dump", I see an entry every 30 seconds of "kdeinit(15145): WRITE block 65680 on hda1" followed by a whole load of "reiserfs/0(12): dirtied page" and "reisers/0(12): WRITE block XXXXX on hda1".
Due to the regular 30 second interval writes of kdeinit: kded to block 65680, laptop-mode is not particularly usable on this system. Is this a problem with reiserfs or with kde and is there any fix available?
Quoted 2 lines
-- Bart
Kai
______________________________________________________________________________
Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php
Quoted 5 lines · Kai Krueger
I'm currently trying kernel 2.6.1-mm1 with laptop-mode on a reiserfs partition.
If I kill all daemons running on the system and do nothing with it, I can achieve the 10 minutes spin down time I had expected from laptop-mode. However as soon as I start up X with KDE I get regular spin ups every 30 seconds. Looking at the output of "echo 1 >/proc/sys/vm/block_dump", I see an entry every 30 seconds of "kdeinit(15145): WRITE block 65680 on hda1" followed by a whole load of "reiserfs/0(12): dirtied page" and "reisers/0(12): WRITE block XXXXX on hda1".Due to the regular 30 second interval writes of kdeinit: kded to block 65680, laptop-mode is not particularly usable on this system. Is this a problem with reiserfs or with kde and is there any fix available?
Can you take a look at the message that Dumitru Ciobarcianu just sent to the list (about syslog), and check if it's that?
-- Bart
Quoted 9 lines · Bart Samwel
Quoted 5 lines · Kai Krueger
I'm currently trying kernel 2.6.1-mm1 with laptop-mode on a reiserfs partition.
If I kill all daemons running on the system and do nothing with it, I can achieve the 10 minutes spin down time I had expected from laptop-mode. However as soon as I start up X with KDE I get regular spin ups every 30 seconds. Looking at the output of "echo 1 >/proc/sys/vm/block_dump", I see an entry every 30 seconds of "kdeinit(15145): WRITE block 65680 on hda1" followed by a whole load of "reiserfs/0(12): dirtied page" and "reisers/0(12): WRITE block XXXXX on hda1".Due to the regular 30 second interval writes of kdeinit: kded to block 65680, laptop-mode is not particularly usable on this system. Is this a problem with reiserfs or with kde and is there any fix available?
Can you take a look at the message that Dumitru Ciobarcianu just sent to the list (about syslog), and check if it's that?
Won't help him if kdeinit is doing fsync() on every friggind write. syslog has an option to disable that, that's all.
That's what evolution was doing until some friends helped me build an fsync "NOP" wrapper .
This e-mail is written using "LD_PRELOAD=no-fsync.so evolution", and the disc does not spin up every time I switch to another folder or just another e-mail.
(Yeah, I know it's not an good ideea if I care about my e-mail, but I keep backups... :)
Now I wonder what will happen if I do this system-wide...
hmmm... candy...
Signature · 1 line
Cioby - "kids, don't try this at home"
Quoted 10 lines · Dumitru Ciobarcianu
Quoted 7 lines
Quoted 5 lines
I'm currently trying kernel 2.6.1-mm1 with laptop-mode on a reiserfs partition.
If I kill all daemons running on the system and do nothing with it, I can achieve the 10 minutes spin down time I had expected from laptop-mode. However as soon as I start up X with KDE I get regular spin ups every 30 seconds. Looking at the output of "echo 1 >/proc/sys/vm/block_dump", I see an entry every 30 seconds of "kdeinit(15145): WRITE block 65680 on hda1" followed by a whole load of "reiserfs/0(12): dirtied page" and "reisers/0(12): WRITE block XXXXX on hda1".Due to the regular 30 second interval writes of kdeinit: kded to block 65680, laptop-mode is not particularly usable on this system. Is this a problem with reiserfs or with kde and is there any fix available?
Can you take a look at the message that Dumitru Ciobarcianu just sent to the list (about syslog), and check if it's that?
Won't help him if kdeinit is doing
fsync()on every friggind write. syslog has an option to disable that, that's all.
I would be surprised if "kdeinit: kded" would do that. In fact, I run KDE, and it doesn't spin up the disk because of that, even though I have about 15 kdeinit instances running, including one for kded. Of course, I might be mistaken.
Kai, can you check the following: is the WRITE of kdeinit preceded by one or more "kdeinit: kded([some pid]): dirtied page" lines? And if they are, are they coming directly before the WRITE, or 5 seconds before it, or 30 seconds before it? This distance might give a clue about the cause. If it's directly before it (within a second), it's likely that kded calls fsync. If it's about 5 or 30 seconds before it, it might have to do with some kind of writeback or expiry interval.
-- Bart
Quoted 7 lines · Dumitru Ciobarcianu
This e-mail is written using "LD_PRELOAD=no-fsync.so evolution", and the disc does not spin up every time I switch to another folder or just another e-mail.
...
Now I wonder what will happen if I do this system-wide...
I think it's a valid thing to do, personally. I had a "personal laptop-mode" patch ages ago which just disabled fsync, fdatasync and O_SYNC kernel-wide. Gone.
It's the sort of thing which email purists tend to get emotional about, but really this is a choice which should be made available to the user if you want to do this thing properly.
sync() needs to still work. If you have some app which calls sync() all the time then you lose.