Re: Lazy atime mount option?

Pavel Machek (pavel@bug.ucw.cz)
Fri, 18 Sep 1998 11:15:08 +0200


Hi!

> I have a laptop, and to speed it up and prevent the update daemon from
> writing the HD, I have used the "noatime" mount option. However, what I'd
> really like is a "lazyatime" write feature:
>
> I figure such a feature would simply *not* toggle the flag that says there
> is something flush to the HD when the atime is written to. (Figuring that
> if something writes to the HD, then it's put in the cache and a bit-flag
> is set to "dirty" or some such.)

Get bdflush-1.6: it solves this some other way - bdflush will hold as
much writes as it can until disk is spinned back up, then it writes
them.

It would solve your problem.

It has some strange implications, however: if you edit file on a
machine for ten hours, and your hdd sleeps after first 10 minutes,
bdflush will sense it and not let anything onto disk. Harddisk will be
sleeping for that 10 hours. If power fails, you loose.

(Reading from disk (uncached area) will cause spinup and immediate
sync.)

Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

- 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/