Re: Notebook disk spindown

2000-09-14 Thread Pavel Machek
Hi! > >Thanks for this patch. But why hasn't it been included into > >the kernel earlier? Wouldn't be a combination of yours and my > > It's basically included into 2.4.x. > > >patch be the proper way? As far as I understand you switch > > Your patch is sure fine. BTW, 2.4.x have an high limi

Re: Notebook disk spindown

2000-09-14 Thread Pavel Machek
Hi! > o developpers, > > this is a short description of a particular wish of notebook > users. Since kernel 2.2.11 the buffer flushing deamon is no longer > a user space program but part of the kernel (in fs/buffer.c). > > Before this kernel release it was the bdflush-program which > could

Re: Notebook disk spindown

2000-09-12 Thread Daniel Kobras
On Tue, 12 Sep 2000, Jamie Lokier wrote: > Dave Zarzycki wrote: > > Personally speaking, I always thought it would be nice if the kernel > > flushed dirty buffers right before a disk spins down. It seems silly to me > > that a disk can spin down with writes pending. > > Absolutely. That allows

Re: Notebook disk spindown

2000-09-12 Thread Pavel Machek
Hi! > > On Sat, 9 Sep 2000 [EMAIL PROTECTED] wrote: > > > Would it be possible to detect when the disk spins up, and do the flush then? > > Yes if you had a continuious polling of power status wrt standby. > > I think the following flushing policy would work almost as well, while > remaining gen

Re: Notebook disk spindown

2000-09-12 Thread Jamie Lokier
Dave Zarzycki wrote: > Personally speaking, I always thought it would be nice if the kernel > flushed dirty buffers right before a disk spins down. It seems silly to me > that a disk can spin down with writes pending. Absolutely. That allows more time spun down too. -- Jamie - To unsubscribe fr

Re: Notebook disk spindown

2000-09-11 Thread Dave Zarzycki
On Sat, 9 Sep 2000 [EMAIL PROTECTED] wrote: > Would it be possible to detect when the disk spins up, and do the flush then? Personally speaking, I always thought it would be nice if the kernel flushed dirty buffers right before a disk spins down. It seems silly to me that a disk can spin down wi

Re: Notebook disk spindown

2000-09-11 Thread almesber
Andre Hedrick wrote: > On Sat, 9 Sep 2000 [EMAIL PROTECTED] wrote: > > Would it be possible to detect when the disk spins up, and do the flush then? > Yes if you had a continuious polling of power status wrt standby. I think the following flushing policy would work almost as well, while remaining

Re: Notebook disk spindown

2000-09-10 Thread Andrea Arcangeli
On Sat, 9 Sep 2000, Richard Gooch wrote: >at least a day, IMO. There's probably no reason it can't effectively >be infinite. The kernel shouldn't be enforcing policy in this area. Right. An embedded usage where there are no writeable blockdevices can just set the interval to zero and avoid a sch

Re: Notebook disk spindown

2000-09-10 Thread Andrea Arcangeli
On Sat, 9 Sep 2000, Tim Brunne wrote: >Thanks for this patch. But why hasn't it been included into >the kernel earlier? Wouldn't be a combination of yours and my It's basically included into 2.4.x. >patch be the proper way? As far as I understand you switch Your patch is sure fine. BTW, 2.4.x

Re: Notebook disk spindown

2000-09-09 Thread Andre Hedrick
On Sat, 9 Sep 2000, Alan Cox wrote: Alan you assume that you only have one disk (this is okay). How does this wakeup a spindown? If you call a 'SETMULTI" and the drive is not ready it may/will hang the system. This is why I think that the issue of a reset and then a polling loop of checkpower un

Re: Notebook disk spindown

2000-09-09 Thread Andre Hedrick
On Sat, 9 Sep 2000 [EMAIL PROTECTED] wrote: > On Sat, Sep 09, 2000 at 03:25:35PM +0200, Tim Brunne wrote: > > Thanks for this patch. But why hasn't it been included into > > the kernel earlier? Wouldn't be a combination of yours and my > > patch be the proper way? As far as I understand you switc

Re: Notebook disk spindown

2000-09-09 Thread Andre Hedrick
On Sat, 9 Sep 2000, Russell King wrote: > Also, please note that I was talking about the whole machine, NOT just > the hard drive. Okay, but I was responding based upon the subject line. Cheers Andre Hedrick The Linux ATA/IDE guy - To unsubscribe from this list: send the line "unsubscribe lin

Re: Notebook disk spindown

2000-09-09 Thread Russell King
Christoph Rohland writes: > Russell King <[EMAIL PROTECTED]> writes: > > (and I've seen my Thinkpad 380XD with RH's 2.2.14-5.0 kernel and > > RH's apmd run itself dead. Kill apmd and it'll do the right thing > > and suspend, then hibernate. And no, I haven't even attempted to > > debugg it yet).

Re: Notebook disk spindown

2000-09-09 Thread Christoph Rohland
Russell King <[EMAIL PROTECTED]> writes: > Jamie Lokier writes: > > With laptops, people are willing > > to assume the RAM is reliable -- accidentally pulling the plug out won't > > lose the data. > > But a buggy apm implementation and the battery running down can. > > (and I've seen my Thinkpa

Re: Notebook disk spindown

2000-09-09 Thread Daniel Kobras
On Sat, 9 Sep 2000, Tim Brunne wrote: > I think Jamie is right. The nice feature of the old > bdflushd deamon was, that disk writes were possible > without spin up of the disk, because of RAM > buffering. This is achived again by patching the > kernel later than 2.2.10. It is still possible with

Re: Notebook disk spindown

2000-09-09 Thread Richard Gooch
Tim Brunne writes: > Richard Gooch wrote: > > > Jamie Lokier writes: > > > Russell King wrote: > > > > > With laptops, people are willing > > > > > to assume the RAM is reliable -- accidentally pulling the plug out won't > > > > > lose the data. > > > > > > > > But a buggy apm implementation and

Re: Notebook disk spindown

2000-09-09 Thread Alan Cox
> I have and offered it to the folks at linuxcare the apmd guys. > The ideas were to create an ioctl pair that would/could knock-out a drive > and preserve the settings, because the reset command to wake it up flushes > the settings. Thus after the wakeup reset, and a checkpower-loop for > ready-

Re: Notebook disk spindown

2000-09-09 Thread rob
On Sat, Sep 09, 2000 at 03:25:35PM +0200, Tim Brunne wrote: > Thanks for this patch. But why hasn't it been included into > the kernel earlier? Wouldn't be a combination of yours and my > patch be the proper way? As far as I understand you switch > off automatic buffer flushing completely, but it

Re: Notebook disk spindown

2000-09-09 Thread Tim Brunne
Andrea Arcangeli wrote: > On Fri, 8 Sep 2000, Tim Brunne wrote: > > >*a silent hard disk hard disk is no longer feasible since kernel > >2.2.11*. > > Try: > > echo 40 500 64 256 0 >/proc/sys/vm/bdflush > > once you want to return to the old behaviour: > > echo 40

Re: Notebook disk spindown

2000-09-09 Thread Andrea Arcangeli
On Fri, 8 Sep 2000, Tim Brunne wrote: >*a silent hard disk hard disk is no longer feasible since kernel >2.2.11*. Try: echo 40 500 64 256 0 >/proc/sys/vm/bdflush once you want to return to the old behaviour: echo 40 500 64 256 500 >/proc/sys/vm/bdfl

Re: Notebook disk spindown

2000-09-09 Thread Tim Brunne
Richard Gooch wrote: > Jamie Lokier writes: > > Russell King wrote: > > > > With laptops, people are willing > > > > to assume the RAM is reliable -- accidentally pulling the plug out won't > > > > lose the data. > > > > > > But a buggy apm implementation and the battery running down can. > > > >

Re: Notebook disk spindown

2000-09-09 Thread Russell King
Andre Hedrick writes: > If apmd could issue a WIN_STANDBY value and execute WIN_STANDBYNOW1 then > the drive would know the thresholds to attempt a "suspend". Where as an > issue of WIN_SLEEPNOW1 would "hibernate" the drive. Ok, so that deals with the hard drive, so the series of events on hiber

Re: Notebook disk spindown

2000-09-09 Thread Andre Hedrick
On Sat, 9 Sep 2000, Russell King wrote: > Andre Hedrick writes: > > You know that it would take me 25 minutes or less to fix the code if I had > > a full native taskfile. This would allow a (void *)(void) to be set in > > kernel apmd and have all the drive data and callouts. > > Andre, > > I t

Re: Notebook disk spindown

2000-09-09 Thread Russell King
Andre Hedrick writes: > You know that it would take me 25 minutes or less to fix the code if I had > a full native taskfile. This would allow a (void *)(void) to be set in > kernel apmd and have all the drive data and callouts. Andre, I totally fail to see how taskfile will fix the problem of a

Re: Notebook disk spindown

2000-09-08 Thread Andre Hedrick
On Fri, 8 Sep 2000, Russell King wrote: > Jamie Lokier writes: > > With laptops, people are willing > > to assume the RAM is reliable -- accidentally pulling the plug out won't > > lose the data. > > But a buggy apm implementation and the battery running down can. > > (and I've seen my Thinkpad

Re: Notebook disk spindown

2000-09-08 Thread Kurt Garloff
On Sat, Sep 09, 2000 at 12:32:27AM +0200, Jamie Lokier wrote: > You're right, but what you're missing is that with "noflushd", it was > possible to keep the disk spun down _even with pending writes_. You may tweak /proc/sys/vm/bdflush to have it collect data for a long time before it is written t

Re: Notebook disk spindown

2000-09-08 Thread Richard Gooch
Jamie Lokier writes: > Russell King wrote: > > > With laptops, people are willing > > > to assume the RAM is reliable -- accidentally pulling the plug out won't > > > lose the data. > > > > But a buggy apm implementation and the battery running down can. > > Well, perhaps the risk is worth it.

Re: Notebook disk spindown

2000-09-08 Thread Jamie Lokier
Russell King wrote: > > With laptops, people are willing > > to assume the RAM is reliable -- accidentally pulling the plug out won't > > lose the data. > > But a buggy apm implementation and the battery running down can. Well, perhaps the risk is worth it. -- Jamie - To unsubscribe from this l

Re: Notebook disk spindown

2000-09-08 Thread Russell King
Jamie Lokier writes: > With laptops, people are willing > to assume the RAM is reliable -- accidentally pulling the plug out won't > lose the data. But a buggy apm implementation and the battery running down can. (and I've seen my Thinkpad 380XD with RH's 2.2.14-5.0 kernel and RH's apmd run itse

Re: Notebook disk spindown

2000-09-08 Thread Jamie Lokier
Russell King wrote: > > *a silent hard disk hard disk is no longer feasible since kernel > > 2.2.11*. > > Yes it is. I have one of my machines (which NFS serves a NFS root > client, both of which are on 24 hours a day) capable of spinning > down for up to 4 hours at a time, with no kernel modifi

Re: Notebook disk spindown

2000-09-08 Thread Russell King
Tim Brunne writes: > *a silent hard disk hard disk is no longer feasible since kernel > 2.2.11*. Yes it is. I have one of my machines (which NFS serves a NFS root client, both of which are on 24 hours a day) capable of spinning down for up to 4 hours at a time, with no kernel modifications what

Notebook disk spindown

2000-09-08 Thread Tim Brunne
Hello developpers, this is a short description of a particular wish of notebook users. Since kernel 2.2.11 the buffer flushing deamon is no longer a user space program but part of the kernel (in fs/buffer.c). Before this kernel release it was the bdflush-program which could be called with ce