[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What programs make disks spin up?



> Nathan E Norman wrote:
> > 
> > I don't think this is going to work, since Linux caches the superblock
> > as well as other filesystem info.  There's a daemon called bdflush,
> > which I believe has been incorporated into the kernel ... its  job is to
> > flush dirty disk buffers.  Since Linux multitasks, I imagine something
> > is being read from or written to the disk at pretty regular intervals
> > ..
> 
>   ^^^^^^^^^^^^^
> 
> Only **dirty** buffers need to be written to disk by bdflush. I
> nothing is writing to disk, (and nothing is reading blocks from
> disk that are not cached) then no physical disk access needs to be
> made.
 
(You probably already realised this, but) the last statement
is only true if you have the no_atime_patch, cause otherwise everytime
somebody reads /lib/ld.so, the atime of /lib/ld.so needs to be updated,
no matter wheter it was in cache or not (and ld.so probably is cached).


-- 
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: