faster boots?
Quoted 2 lines
Ditto. Especially if it spun them down again
when idle for a while.
I had a patch for this in my 2.2 kernel tree, originally from [email protected], but I didn't have time to port it to 2.4. I've been using it happily for about 2 years on the NFS server which is too close to my bedroom. The only annoying side of the problem is that when you incidentelly do an NFS access and the disks are down, you have to wait a few minutes before they spin up, especially with raid. I once failed a CD burning session from the NFS server because doing something else simultaneously woke other disks up, which hung the NFS server until they were ready.
But it's definitely interesting, and missing in 2.4 IMHO.
If you want to try it for your 2.2 tree, I can send you the patch.
Cheers,
Willy
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Quoted 3 lines · On Fri, 5 Apr 2002, [iso-8859-1] willy tarreau wrote:
I had a patch for this in my 2.2 kernel tree,
originally from [email protected], but I
didn't have time to port it to 2.4.
It's normally done with hdparm spindown when idle options...
Signature · 3 lines
bill davidsen <[email protected]> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979.
Quoted 2 lines
It's normally done with hdparm spindown when idle
options...
only supported on IDE devices.
Willy
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Quoted 4 lines · On Fri, 5 Apr 2002, [iso-8859-1] willy tarreau wrote:
Quoted 2 lines
It's normally done with hdparm spindown when idle
options...only supported on IDE devices.
I didn't have a machine to test, that's not clear from the man page:
Some options (eg. -r for SCSI) may not work with old ker- nels as necessary ioctl()'s were not supported.
Although this utility is intended primarily for use with (E)IDE hard disk devices, several of the options are also valid (and permitted) for use with SCSI hard disk devices and MFM/RLL hard disks with XT interfaces.
and
-S Set the standby (spindown) timeout for the drive.
This value is used by the drive to determine how long to wait (with no disk activity) before turning
off the spindle motor to save power. Under such
circumstances, the drive may take as long as 30 seconds to respond to a subsequent disk access, though most drives are much quicker. The encoding of the timeout value is somewhat peculiar. A value of zero means "off". Values from 1 to 240 specify multiples of 5 seconds, for timeouts from 5 seconds to 20 minutes. Values from 241 to 251 specify from 1 to 11 units of 30 minutes, for timeouts from 30 minutes to 5.5 hours. A value of 252 signifies a timeout of 21 minutes, 253 sets a vendor-defined timeout, and 255 is interpreted as 21 minutes plus 15 seconds.
so I thought this might be helpful for someone with the problem to consider. I'll be building a suitable machine in the next few days, so I will try it with current hdparm, just for my own edification.
There is a scsi-idle program of some age floating around, I haven't looked at that but I know it exists. As I recall it used the sg interface, but that's purely what I remember from the days when a 600MB Maxtor made me a king. I went through a few years ago and backed them all up to one CD each...
Signature · 3 lines
bill davidsen <[email protected]> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979.
Quoted 3 lines · Bill Davidsen
There is a scsi-idle program of some age
floating around, I haven't looked at that but
I know it exists.
I have it on my server, and used it with the
associated patch for kernel 2.2. The problem
is not to spin the disk down, which is handled
in userspace, but to automatically spin it up
upon any access. Thus the patch. I have not
ported it to 2.4 because it wasn't trivial and
I didn't have time for it. But I may one day I
will be bored with my server's noise and I'll
do it. If you want to give it a try, you can
download it from one of my old 2.2 trees :
Cheers,
Willy
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Quoted 6 lines · willy tarreau
Quoted 2 lines
It's normally done with hdparm spindown when idle
options...only supported on IDE devices.
Willy
There was a scsi_idle patch for spinning down scsi disks. IIRC it was before 2.0 (for the 1.1.x or 1.2.x kernels). Anyone know what happened with that patch and why it hasn't got into the official kernel?
-- Itai