lkml.org 
[lkml]   [1998]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Lazy atime mount option?
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/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.049 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site