From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,59cf6ce2c2c803 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,59cf6ce2c2c803 X-Google-Attributes: gidfee84,public X-Google-Thread: fbad3,59cf6ce2c2c803 X-Google-Attributes: gidfbad3,public From: roy@popmail.med.nyu.edu (Roy Smith) Subject: Re: unexpected (and unwanted!) drive spindown (ST423451W on DEC PW433au) Date: 1997/10/21 Message-ID: #1/1 X-Deja-AN: 282206897 References: X-License-Fee: $10 per copy for commercial use X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 877442674 5925 (None) 128.122.205.14 Organization: NYU School of Medicine, Educational Computing X-Redistribution-Policy: Commercial redistribution prohibited without license fee paid in advance Newsgroups: comp.unix.osf.osf1,comp.periphs.scsi,comp.sys.dec X-Copyright: Copyright 1997 Roy Smith mark@cita.utoronto.ca wrote: > When the disk hasn't been accessed within some time window (I've > not been able to quantify how long it has to be idle), it spins > down! Beats me why it's doing it, but as an (ugly) work-around, how about just running a process which reads a random block from the raw drive every minute? It's pretty gross, but it'll keep the idle timer (wherever it is) from spinning the drive down, and the performance impact should be minimal: /* pseudocode */ fd = open ("/dev/rrzNc") while(1) { i = random (0, SIZE_OF_DISK) seek (fd, i) read (fd, buf, 512) sleep (60) /* or whatever it takes */ } -- Roy Smith New York University School of Medicine 550 First Avenue, New York, NY 10016