linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Laptop-mode v7 for linux 2.6.1
@ 2004-01-10 10:38 Bart Samwel
  2004-01-10 11:15 ` Dax Kelson
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Bart Samwel @ 2004-01-10 10:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: Dax Kelson, Kiko Piris, Bartek Kania, Simon Mackinlay


I've created a new version of the laptop-mode patch, this time against 
linux 2.6.1. It can be found here:

http://www.liacs.nl/~bsamwel/laptop_mode/laptop-mode-2.6.1-7.patch

It has no kernel code changes, only changes to the supporting 
documentation/scripts:

* Dax Kelson's ACPI integration script is included.
* Fixed a missing "esac" in the control script.
* Minor documentation improvements.

Especially Dax's addition should make it a lot more usable. I haven't 
been able to test this myself however, because I don't own a laptop. Dax 
probably does, so I'll trust him and assume that he has tested it. ;)

-- Bart

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [PATCH] Laptop-mode v7 for linux 2.6.1
@ 2004-01-12 17:07 Kai Krueger
  2004-01-12 19:31 ` Bart Samwel
  0 siblings, 1 reply; 31+ messages in thread
From: Kai Krueger @ 2004-01-12 17:07 UTC (permalink / raw)
  To: BartSamwel; +Cc: linux-kernel

Bart Samwel <bart@samwel.tk> schrieb am 12.01.04 14:47:20:
> 
> Jan De Luyck wrote:
> >>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_centisecs and 
> /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.)
> 
> 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?

> 
> -- Bart

Kai
______________________________________________________________________________
Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php


^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [PATCH] Laptop-mode v7 for linux 2.6.1
@ 2004-01-13  1:10 Kai Krueger
  2004-01-13 11:58 ` Bart Samwel
  0 siblings, 1 reply; 31+ messages in thread
From: Kai Krueger @ 2004-01-13  1:10 UTC (permalink / raw)
  To: BartSamwel; +Cc: linux-kernel

Bart Samwel <bart@samwel.tk> schrieb am 12.01.04 22:54:41:
>
> Dumitru Ciobarcianu wrote:
> >>>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.

I can not see any log entries for "kdeinit: [some pid]: dirtied page". There are only the "kdeinit: () WRITE block 65680 on hda1". By the way, it is always block 65680; also across reboots if that is any indication and I have seen other processes like artsd write to that block without dirtying pages before as well.

Is there a way to find out what kdeinit writes to disk?

the sysklog daemon was shut down during the time of testing, so that shouldn't have effected it.

Thanks for the help,
Kai

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

______________________________________________________________________________
Nachrichten, Musik und Spiele schnell und einfach per Quickstart im 
WEB.DE Screensaver - Gratis downloaden: http://screensaver.web.de/?mc=021110


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2004-02-11 13:00 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-10 10:38 [PATCH] Laptop-mode v7 for linux 2.6.1 Bart Samwel
2004-01-10 11:15 ` Dax Kelson
2004-01-12  9:45 ` Jan De Luyck
2004-01-12  9:59   ` Bart Samwel
2004-01-12 12:50     ` Dax Kelson
2004-01-12 12:59       ` Bart Samwel
2004-01-12 15:04       ` Valdis.Kletnieks
2004-01-12 11:12 ` Jan De Luyck
2004-01-12 11:22   ` Bart Samwel
2004-01-12 12:43     ` Jan De Luyck
2004-01-12 13:41       ` Bart Samwel
2004-01-12 13:32         ` Hugang
2004-01-12 17:30         ` Dumitru Ciobarcianu
2004-01-12 12:19   ` Kiko Piris
2004-01-12 12:45     ` Jan De Luyck
2004-01-12 13:09     ` Jan De Luyck
2004-01-12 14:02       ` Jens Axboe
2004-01-13 11:00         ` Jan De Luyck
2004-01-13 11:01           ` Jens Axboe
2004-01-13 12:46             ` Bart Samwel
2004-01-13 14:21               ` Hugang
2004-01-13 17:17                 ` Jan De Luyck
2004-02-11  6:24             ` Jan De Luyck
2004-02-11 13:00               ` Micha Feigin
2004-01-12 17:07 Kai Krueger
2004-01-12 19:31 ` Bart Samwel
2004-01-12 20:51   ` Dumitru Ciobarcianu
2004-01-12 21:50     ` Bart Samwel
2004-01-12 22:51     ` Andrew Morton
2004-01-13  1:10 Kai Krueger
2004-01-13 11:58 ` Bart Samwel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).