Re: strange sync behaviour

Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Tue, 17 Aug 1999 16:57:11 +0200


On Aug 16, Richard B. Johnson wrote:

> On Sun, 15 Aug 1999, Giuliano Pochini wrote:
>
> >
> > Try this on an unloaded system:
> >
> > sync
> > find / -name something
> > sync
> >
> > ok, now all directories are cached and no buffers have to be written to
> > the disk. Type again:
> >
> > find / -name something
> > sync
> >
> > Why the sync command make my HDs to work for 2-3 seconds ? find
> > shouldn't write anything on the disk, so what has it to update ??
> >
> > Bye.
> >
>
> The `atime` of every file accessed is written to the disk!
> Look at "struct stat".

only `atime' of directories, not of every file.
you don't `access' files with find ...

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/