All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] laptop mode
       [not found] <200310091103.h99B31ug014566@hera.kernel.org>
@ 2003-10-09 14:02 ` Jeff Garzik
  2003-10-09 14:05   ` Jens Axboe
  2003-10-09 14:09   ` Marcelo Tosatti
  0 siblings, 2 replies; 15+ messages in thread
From: Jeff Garzik @ 2003-10-09 14:02 UTC (permalink / raw)
  To: marcelo.tosatti; +Cc: Linux Kernel Mailing List, axboe

Linux Kernel Mailing List wrote:
> ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
> 
> 	[PATCH] laptop mode
> 	
> 	Hi Marcelo,
> 	
> 	Lots of people have been using this patch with great success, and it's
> 	been in the SuSE kernel for some months now too. It is also in the -benh
> 	ppc tree
> 	
> 	Basically, it introduces a write back mode of dirty and journal data
> 	that is more suitable for laptops. At the block layer end, it schedules
> 	write out of dirty data after the disk has been idle for 5 seconds.
> 	
> 	Laptop mode can be switched on and off with /proc/sys/vm/laptop_mode.
> 	There is also a block_dump sysctl, which if enabled will dump who
> 	dirties and writes out data. This is very helpful in pinning down who is
> 	causing unnecessary writes to the disk.

Red Hat just dropped this patch since it was suspected of data 
corruption ;-(

	Jeff




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

* Re: [PATCH] laptop mode
  2003-10-09 14:02 ` [PATCH] laptop mode Jeff Garzik
@ 2003-10-09 14:05   ` Jens Axboe
  2003-10-09 14:17     ` Dave Jones
  2003-10-09 14:09   ` Marcelo Tosatti
  1 sibling, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2003-10-09 14:05 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: marcelo.tosatti, Linux Kernel Mailing List

On Thu, Oct 09 2003, Jeff Garzik wrote:
> Linux Kernel Mailing List wrote:
> >ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
> >
> >	[PATCH] laptop mode
> >	
> >	Hi Marcelo,
> >	
> >	Lots of people have been using this patch with great success, and 
> >	it's
> >	been in the SuSE kernel for some months now too. It is also in the 
> >	-benh
> >	ppc tree
> >	
> >	Basically, it introduces a write back mode of dirty and journal data
> >	that is more suitable for laptops. At the block layer end, it 
> >	schedules
> >	write out of dirty data after the disk has been idle for 5 seconds.
> >	
> >	Laptop mode can be switched on and off with /proc/sys/vm/laptop_mode.
> >	There is also a block_dump sysctl, which if enabled will dump who
> >	dirties and writes out data. This is very helpful in pinning down 
> >	who is
> >	causing unnecessary writes to the disk.
> 
> Red Hat just dropped this patch since it was suspected of data 
> corruption ;-(

Eh? Care to explain a bit further? I'm not aware of any data corruption
issues there, and it's certainly simple enough to easily audit.

And how kind of Red Hat to not inform me of any suspicion in this
regard.

-- 
Jens Axboe


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

* Re: [PATCH] laptop mode
  2003-10-09 14:02 ` [PATCH] laptop mode Jeff Garzik
  2003-10-09 14:05   ` Jens Axboe
@ 2003-10-09 14:09   ` Marcelo Tosatti
  2003-10-09 14:11     ` Jens Axboe
  1 sibling, 1 reply; 15+ messages in thread
From: Marcelo Tosatti @ 2003-10-09 14:09 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: marcelo.tosatti, Linux Kernel Mailing List, Jens Axboe



On Thu, 9 Oct 2003, Jeff Garzik wrote:

> Linux Kernel Mailing List wrote:
> > ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
> > 
> > 	[PATCH] laptop mode
> > 	
> > 	Hi Marcelo,
> > 	
> > 	Lots of people have been using this patch with great success, and it's
> > 	been in the SuSE kernel for some months now too. It is also in the -benh
> > 	ppc tree
> > 	
> > 	Basically, it introduces a write back mode of dirty and journal data
> > 	that is more suitable for laptops. At the block layer end, it schedules
> > 	write out of dirty data after the disk has been idle for 5 seconds.
> > 	
> > 	Laptop mode can be switched on and off with /proc/sys/vm/laptop_mode.
> > 	There is also a block_dump sysctl, which if enabled will dump who
> > 	dirties and writes out data. This is very helpful in pinning down who is
> > 	causing unnecessary writes to the disk.
> 
> Red Hat just dropped this patch since it was suspected of data 
> corruption ;-(

Uh, oh... Jens? 


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

* Re: [PATCH] laptop mode
  2003-10-09 14:09   ` Marcelo Tosatti
@ 2003-10-09 14:11     ` Jens Axboe
  2003-10-09 14:18       ` Jeff Garzik
                         ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jens Axboe @ 2003-10-09 14:11 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Jeff Garzik, Linux Kernel Mailing List

On Thu, Oct 09 2003, Marcelo Tosatti wrote:
> 
> 
> On Thu, 9 Oct 2003, Jeff Garzik wrote:
> 
> > Linux Kernel Mailing List wrote:
> > > ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
> > > 
> > > 	[PATCH] laptop mode
> > > 	
> > > 	Hi Marcelo,
> > > 	
> > > 	Lots of people have been using this patch with great success, and it's
> > > 	been in the SuSE kernel for some months now too. It is also in the -benh
> > > 	ppc tree
> > > 	
> > > 	Basically, it introduces a write back mode of dirty and journal data
> > > 	that is more suitable for laptops. At the block layer end, it schedules
> > > 	write out of dirty data after the disk has been idle for 5 seconds.
> > > 	
> > > 	Laptop mode can be switched on and off with /proc/sys/vm/laptop_mode.
> > > 	There is also a block_dump sysctl, which if enabled will dump who
> > > 	dirties and writes out data. This is very helpful in pinning down who is
> > > 	causing unnecessary writes to the disk.
> > 
> > Red Hat just dropped this patch since it was suspected of data 
> > corruption ;-(
> 
> Uh, oh... Jens? 

See my previous mail. I don't see any problems with it, and I've
certainly not heard of (or experienced myself) problems with the patch.
I'm waiting for Jeff to expand on his mail, surely he/RH must know more
about this issue.

-- 
Jens Axboe


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

* Re: [PATCH] laptop mode
  2003-10-09 14:05   ` Jens Axboe
@ 2003-10-09 14:17     ` Dave Jones
  2003-10-09 14:26       ` Jens Axboe
  0 siblings, 1 reply; 15+ messages in thread
From: Dave Jones @ 2003-10-09 14:17 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Jeff Garzik, marcelo.tosatti, Linux Kernel Mailing List

On Thu, Oct 09, 2003 at 04:05:47PM +0200, Jens Axboe wrote:

 > > Red Hat just dropped this patch since it was suspected of data 
 > > corruption ;-(
 > Eh? Care to explain a bit further? I'm not aware of any data corruption
 > issues there, and it's certainly simple enough to easily audit.

3-4 cases of random data corruption, all using Quantum Fireball drives,
all with different IDE chipsets.

 > And how kind of Red Hat to not inform me of any suspicion in this
 > regard.

I want to get facts right before crying wolf.
Right now laptopmode/aam is just a suspect. There are still 1-2 other
small patches against IDE which could be the reason.  We've dropped
laptopmode/aam for the time being to see if the folks seeing repeatable
corruption suddenly start behaving again.

		Dave

-- 
 Dave Jones     http://www.codemonkey.org.uk

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

* Re: [PATCH] laptop mode
  2003-10-09 14:11     ` Jens Axboe
@ 2003-10-09 14:18       ` Jeff Garzik
  2003-10-09 14:21         ` Jens Axboe
  2003-10-09 14:28       ` Dave Jones
  2003-10-17 19:42       ` Jan Rychter
  2 siblings, 1 reply; 15+ messages in thread
From: Jeff Garzik @ 2003-10-09 14:18 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Marcelo Tosatti, Linux Kernel Mailing List

Jens Axboe wrote:
> On Thu, Oct 09 2003, Marcelo Tosatti wrote:
> 
>>
>>On Thu, 9 Oct 2003, Jeff Garzik wrote:
>>
>>
>>>Linux Kernel Mailing List wrote:
>>>
>>>>ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
>>>>
>>>>	[PATCH] laptop mode
>>>>	
>>>>	Hi Marcelo,
>>>>	
>>>>	Lots of people have been using this patch with great success, and it's
>>>>	been in the SuSE kernel for some months now too. It is also in the -benh
>>>>	ppc tree
>>>>	
>>>>	Basically, it introduces a write back mode of dirty and journal data
>>>>	that is more suitable for laptops. At the block layer end, it schedules
>>>>	write out of dirty data after the disk has been idle for 5 seconds.
>>>>	
>>>>	Laptop mode can be switched on and off with /proc/sys/vm/laptop_mode.
>>>>	There is also a block_dump sysctl, which if enabled will dump who
>>>>	dirties and writes out data. This is very helpful in pinning down who is
>>>>	causing unnecessary writes to the disk.
>>>
>>>Red Hat just dropped this patch since it was suspected of data 
>>>corruption ;-(
>>
>>Uh, oh... Jens? 
> 
> 
> See my previous mail. I don't see any problems with it, and I've
> certainly not heard of (or experienced myself) problems with the patch.
> I'm waiting for Jeff to expand on his mail, surely he/RH must know more
> about this issue.


That's 100% of my knowledge.  Talk to arjan/davej/sct for more info...

That's what RH's field testing showed us, ignore it if you wish... :)

	Jeff




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

* Re: [PATCH] laptop mode
  2003-10-09 14:18       ` Jeff Garzik
@ 2003-10-09 14:21         ` Jens Axboe
  0 siblings, 0 replies; 15+ messages in thread
From: Jens Axboe @ 2003-10-09 14:21 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Marcelo Tosatti, Linux Kernel Mailing List, davej, arjanv

On Thu, Oct 09 2003, Jeff Garzik wrote:
> Jens Axboe wrote:
> >On Thu, Oct 09 2003, Marcelo Tosatti wrote:
> >
> >>
> >>On Thu, 9 Oct 2003, Jeff Garzik wrote:
> >>
> >>
> >>>Linux Kernel Mailing List wrote:
> >>>
> >>>>ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
> >>>>
> >>>>	[PATCH] laptop mode
> >>>>	
> >>>>	Hi Marcelo,
> >>>>	
> >>>>	Lots of people have been using this patch with great success, and 
> >>>>	it's
> >>>>	been in the SuSE kernel for some months now too. It is also in the 
> >>>>	-benh
> >>>>	ppc tree
> >>>>	
> >>>>	Basically, it introduces a write back mode of dirty and journal data
> >>>>	that is more suitable for laptops. At the block layer end, it 
> >>>>	schedules
> >>>>	write out of dirty data after the disk has been idle for 5 seconds.
> >>>>	
> >>>>	Laptop mode can be switched on and off with /proc/sys/vm/laptop_mode.
> >>>>	There is also a block_dump sysctl, which if enabled will dump who
> >>>>	dirties and writes out data. This is very helpful in pinning down 
> >>>>	who is
> >>>>	causing unnecessary writes to the disk.
> >>>
> >>>Red Hat just dropped this patch since it was suspected of data 
> >>>corruption ;-(
> >>
> >>Uh, oh... Jens? 
> >
> >
> >See my previous mail. I don't see any problems with it, and I've
> >certainly not heard of (or experienced myself) problems with the patch.
> >I'm waiting for Jeff to expand on his mail, surely he/RH must know more
> >about this issue.
> 
> 
> That's 100% of my knowledge.  Talk to arjan/davej/sct for more info...

CC'ed

> That's what RH's field testing showed us, ignore it if you wish... :)

As far as I can tell, laptop-mode cannot cause any corruption on it own
that cannot otherwise happen without laptop mode. So if you see
corruption, it is most likely exposing some other bug. Or the field
users run out of battery and 10 minutes of work goes down the drain,
that's a calcuated risk though.

-- 
Jens Axboe


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

* Re: [PATCH] laptop mode
  2003-10-09 14:17     ` Dave Jones
@ 2003-10-09 14:26       ` Jens Axboe
  2003-10-11 11:49         ` Pavel Machek
  0 siblings, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2003-10-09 14:26 UTC (permalink / raw)
  To: Dave Jones, Jeff Garzik, marcelo.tosatti, Linux Kernel Mailing List

On Thu, Oct 09 2003, Dave Jones wrote:
> On Thu, Oct 09, 2003 at 04:05:47PM +0200, Jens Axboe wrote:
> 
>  > > Red Hat just dropped this patch since it was suspected of data 
>  > > corruption ;-(
>  > Eh? Care to explain a bit further? I'm not aware of any data corruption
>  > issues there, and it's certainly simple enough to easily audit.
> 
> 3-4 cases of random data corruption, all using Quantum Fireball drives,
> all with different IDE chipsets.
> 
>  > And how kind of Red Hat to not inform me of any suspicion in this
>  > regard.
> 
> I want to get facts right before crying wolf.

Fair enough.

> Right now laptopmode/aam is just a suspect. There are still 1-2 other
> small patches against IDE which could be the reason.  We've dropped
> laptopmode/aam for the time being to see if the folks seeing repeatable
> corruption suddenly start behaving again.

aam patch is far more risky, it's a far more likely suspect. That patch
never reall did go out of beta. Dropping laptop-mode and aam at the same
time is bad engineering practice :).

laptop-mode cannot cause corruption that cannot show otherwise.

-- 
Jens Axboe


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

* Re: [PATCH] laptop mode
  2003-10-09 14:11     ` Jens Axboe
  2003-10-09 14:18       ` Jeff Garzik
@ 2003-10-09 14:28       ` Dave Jones
  2003-10-17 19:42       ` Jan Rychter
  2 siblings, 0 replies; 15+ messages in thread
From: Dave Jones @ 2003-10-09 14:28 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Marcelo Tosatti, Jeff Garzik, Linux Kernel Mailing List

On Thu, Oct 09, 2003 at 04:11:43PM +0200, Jens Axboe wrote:

 > > > Red Hat just dropped this patch since it was suspected of data 
 > > > corruption ;-(
 > > 
 > > Uh, oh... Jens? 
 > 
 > See my previous mail. I don't see any problems with it, and I've
 > certainly not heard of (or experienced myself) problems with the patch.
 > I'm waiting for Jeff to expand on his mail, surely he/RH must know more
 > about this issue.


Laptop mode is likely fine, the problem we've seen is very likely caused
by the AAM counterpart.

		Dave

-- 
 Dave Jones     http://www.codemonkey.org.uk

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

* Re: [PATCH] laptop mode
  2003-10-09 14:26       ` Jens Axboe
@ 2003-10-11 11:49         ` Pavel Machek
  2003-10-11 13:59           ` Jens Axboe
  0 siblings, 1 reply; 15+ messages in thread
From: Pavel Machek @ 2003-10-11 11:49 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Dave Jones, Jeff Garzik, marcelo.tosatti, Linux Kernel Mailing List

Hi!

> > Right now laptopmode/aam is just a suspect. There are still 1-2 other
> > small patches against IDE which could be the reason.  We've dropped
> > laptopmode/aam for the time being to see if the folks seeing repeatable
> > corruption suddenly start behaving again.
> 
> aam patch is far more risky, it's a far more likely suspect. That patch
> never reall did go out of beta. Dropping laptop-mode and aam at the same
> time is bad engineering practice :).
> 
> laptop-mode cannot cause corruption that cannot show otherwise.

Well, if fireballs have data-corrupting that happens just after spinup
(for example), I can see how laptop-mode affects that. W/o
laptop-mode, disk is spinning all the time so sleep bugs can not
manifest themselves. You add laptop-mode, and...
								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

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

* Re: [PATCH] laptop mode
  2003-10-11 11:49         ` Pavel Machek
@ 2003-10-11 13:59           ` Jens Axboe
  2003-10-12 22:45             ` Barry K. Nathan
  0 siblings, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2003-10-11 13:59 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Dave Jones, Jeff Garzik, marcelo.tosatti, Linux Kernel Mailing List

On Sat, Oct 11 2003, Pavel Machek wrote:
> Hi!
> 
> > > Right now laptopmode/aam is just a suspect. There are still 1-2 other
> > > small patches against IDE which could be the reason.  We've dropped
> > > laptopmode/aam for the time being to see if the folks seeing repeatable
> > > corruption suddenly start behaving again.
> > 
> > aam patch is far more risky, it's a far more likely suspect. That patch
> > never reall did go out of beta. Dropping laptop-mode and aam at the same
> > time is bad engineering practice :).
> > 
> > laptop-mode cannot cause corruption that cannot show otherwise.
> 
> Well, if fireballs have data-corrupting that happens just after spinup
> (for example), I can see how laptop-mode affects that. W/o
> laptop-mode, disk is spinning all the time so sleep bugs can not
> manifest themselves. You add laptop-mode, and...

Not very likely, imho. People have been using spin down with hdparm for
years (in Linux and elsewhere), while acoustic management is a bit more
esoteric.

-- 
Jens Axboe


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

* Re: [PATCH] laptop mode
  2003-10-11 13:59           ` Jens Axboe
@ 2003-10-12 22:45             ` Barry K. Nathan
  2003-10-14 17:50               ` Jeff Garzik
  0 siblings, 1 reply; 15+ messages in thread
From: Barry K. Nathan @ 2003-10-12 22:45 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Pavel Machek, Dave Jones, Jeff Garzik, marcelo.tosatti,
	Linux Kernel Mailing List

On Sat, Oct 11, 2003 at 03:59:43PM +0200, Jens Axboe wrote:
> Not very likely, imho. People have been using spin down with hdparm for
> years (in Linux and elsewhere), while acoustic management is a bit more
> esoteric.

I'm having trouble finding this on Google now, but I've heard rumors
over the years of old Fireball drives corrupting data if they receive
write commands too soon after spinning up (i.e., the drive doesn't
bother waiting to spin up fully first). Maybe I'm not remembering the
details correctly, but it was something about the drive trying to act on
commands before it was fully spun up and malfunctioning as a result.

-Barry K. Nathan <barryn@pobox.com>

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

* Re: [PATCH] laptop mode
  2003-10-12 22:45             ` Barry K. Nathan
@ 2003-10-14 17:50               ` Jeff Garzik
  0 siblings, 0 replies; 15+ messages in thread
From: Jeff Garzik @ 2003-10-14 17:50 UTC (permalink / raw)
  To: Barry K. Nathan
  Cc: Jens Axboe, Pavel Machek, Dave Jones, marcelo.tosatti,
	Linux Kernel Mailing List

Barry K. Nathan wrote:
> On Sat, Oct 11, 2003 at 03:59:43PM +0200, Jens Axboe wrote:
> 
>>Not very likely, imho. People have been using spin down with hdparm for
>>years (in Linux and elsewhere), while acoustic management is a bit more
>>esoteric.
> 
> 
> I'm having trouble finding this on Google now, but I've heard rumors
> over the years of old Fireball drives corrupting data if they receive
> write commands too soon after spinning up (i.e., the drive doesn't
> bother waiting to spin up fully first). Maybe I'm not remembering the
> details correctly, but it was something about the drive trying to act on
> commands before it was fully spun up and malfunctioning as a result.


Well, there exists devices which comply with the delayed spin-up part of 
ATA/ATAPI specification...   maybe our code doesn't cover that.  I don't 
put much stock in rumors, but they are occasionally clues... :)

	Jeff



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

* Re: [PATCH] laptop mode
  2003-10-09 14:11     ` Jens Axboe
  2003-10-09 14:18       ` Jeff Garzik
  2003-10-09 14:28       ` Dave Jones
@ 2003-10-17 19:42       ` Jan Rychter
  2003-10-18 12:52         ` Jens Axboe
  2 siblings, 1 reply; 15+ messages in thread
From: Jan Rychter @ 2003-10-17 19:42 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2008 bytes --]

>>>>> "Jens" == Jens Axboe <axboe@suse.de> writes:
 Jens> On Thu, Oct 09 2003, Marcelo Tosatti wrote:
 >> On Thu, 9 Oct 2003, Jeff Garzik wrote:
 > Linux Kernel Mailing List wrote:
 > > ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
 > > 	[PATCH] laptop mode
 > >
 > > 	Hi Marcelo,
 > >
 > > 	Lots of people have been using this patch with great success,
 > > 	and it's been in the SuSE kernel for some months now too. It is
 > > 	also in the -benh ppc tree
 > >
 > > 	Basically, it introduces a write back mode of dirty and journal
 > > 	data that is more suitable for laptops. At the block layer end,
 > > 	it schedules write out of dirty data after the disk has been
 > > 	idle for 5 seconds.
 > >
 > > 	Laptop mode can be switched on and off with
 > > 	/proc/sys/vm/laptop_mode.  There is also a block_dump sysctl,
 > > 	which if enabled will dump who dirties and writes out data. This
 > > 	is very helpful in pinning down who is causing unnecessary
 > > 	writes to the disk.
 >
 > Red Hat just dropped this patch since it was suspected of data
 > corruption ;-(
 >>
 >> Uh, oh... Jens?

 Jens> See my previous mail. I don't see any problems with it, and I've
 Jens> certainly not heard of (or experienced myself) problems with the
 Jens> patch.  I'm waiting for Jeff to expand on his mail, surely he/RH
 Jens> must know more about this issue.

FWIW, I've been using laptop-mode for a long time now, with no problems
whatsoever. It's a great addition and really helps laptop users.

On a related note, a very desirable feature would be to be able to trace
which processes do I/O. Unfortunately, Linux distributions aren't very
well adapted to laptops and many applications are way too
"trigger-happy" when it comes to hard drive accesses. I guess most
developers don't use laptops and just assume that they can write or
read data at will. It is very difficult to trace the culprits when your
HD light goes on every couple of seconds.

--J.

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

* Re: [PATCH] laptop mode
  2003-10-17 19:42       ` Jan Rychter
@ 2003-10-18 12:52         ` Jens Axboe
  0 siblings, 0 replies; 15+ messages in thread
From: Jens Axboe @ 2003-10-18 12:52 UTC (permalink / raw)
  To: Jan Rychter; +Cc: linux-kernel

On Fri, Oct 17 2003, Jan Rychter wrote:
> >>>>> "Jens" == Jens Axboe <axboe@suse.de> writes:
>  Jens> On Thu, Oct 09 2003, Marcelo Tosatti wrote:
>  >> On Thu, 9 Oct 2003, Jeff Garzik wrote:
>  > Linux Kernel Mailing List wrote:
>  > > ChangeSet 1.1150.1.52, 2003/10/08 10:49:45-03:00, axboe@suse.de
>  > > 	[PATCH] laptop mode
>  > >
>  > > 	Hi Marcelo,
>  > >
>  > > 	Lots of people have been using this patch with great success,
>  > > 	and it's been in the SuSE kernel for some months now too. It is
>  > > 	also in the -benh ppc tree
>  > >
>  > > 	Basically, it introduces a write back mode of dirty and journal
>  > > 	data that is more suitable for laptops. At the block layer end,
>  > > 	it schedules write out of dirty data after the disk has been
>  > > 	idle for 5 seconds.
>  > >
>  > > 	Laptop mode can be switched on and off with
>  > > 	/proc/sys/vm/laptop_mode.  There is also a block_dump sysctl,
>  > > 	which if enabled will dump who dirties and writes out data. This
>  > > 	is very helpful in pinning down who is causing unnecessary
>  > > 	writes to the disk.
>  >
>  > Red Hat just dropped this patch since it was suspected of data
>  > corruption ;-(
>  >>
>  >> Uh, oh... Jens?
> 
>  Jens> See my previous mail. I don't see any problems with it, and I've
>  Jens> certainly not heard of (or experienced myself) problems with the
>  Jens> patch.  I'm waiting for Jeff to expand on his mail, surely he/RH
>  Jens> must know more about this issue.
> 
> FWIW, I've been using laptop-mode for a long time now, with no problems
> whatsoever. It's a great addition and really helps laptop users.

Glad to hear that.

> On a related note, a very desirable feature would be to be able to trace
> which processes do I/O. Unfortunately, Linux distributions aren't very
> well adapted to laptops and many applications are way too
> "trigger-happy" when it comes to hard drive accesses. I guess most
> developers don't use laptops and just assume that they can write or
> read data at will. It is very difficult to trace the culprits when your
> HD light goes on every couple of seconds.

You do know that the laptop-mode patch included a feature to help with
just that very problem, block_dump? If you do

echo "1" > /proc/sys/vm/block_dump

(shut down klogd first), it will tell you which process caused the hd
activity, either directly or by dirtying a page of data.

-- 
Jens Axboe


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

end of thread, other threads:[~2003-10-18 12:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200310091103.h99B31ug014566@hera.kernel.org>
2003-10-09 14:02 ` [PATCH] laptop mode Jeff Garzik
2003-10-09 14:05   ` Jens Axboe
2003-10-09 14:17     ` Dave Jones
2003-10-09 14:26       ` Jens Axboe
2003-10-11 11:49         ` Pavel Machek
2003-10-11 13:59           ` Jens Axboe
2003-10-12 22:45             ` Barry K. Nathan
2003-10-14 17:50               ` Jeff Garzik
2003-10-09 14:09   ` Marcelo Tosatti
2003-10-09 14:11     ` Jens Axboe
2003-10-09 14:18       ` Jeff Garzik
2003-10-09 14:21         ` Jens Axboe
2003-10-09 14:28       ` Dave Jones
2003-10-17 19:42       ` Jan Rychter
2003-10-18 12:52         ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.