When running FreeBSD on notebook computers, we noticed a lot of
extra disk activity. Turning on the noatime mount option didn't
seem to help.
Fix: Appended are context diffs of Van's fixes.
If no MNT_NOATIME is set then ignore access time update
If MNT_NOATIME is set, ignore access time changes. Don't
bother flushing the mount point (e.g., for root) since it
gets flushed anyway. If MNT_NOATIME is set, don't update
the on-disk access times for /dev inodes (but do update the
in-core times so finger and w work).
Don't defer flushing the inode or else we will end up with
new I/O activity on the next sync.
RCS file: RCS/ffs_inode.c,v
retrieving revision 1.2
Notice that the disk on a completely idle notebook will spin up
ever few minutes.
Submitted patch applied by John (who forgot to close this PR ;-)
John later reverted these changes. Bruce mentioned that the
patch didn't cleanly to any version of FreeBSD and at least
one failed attempt to contact the orginator about problems
with the patch. Exactly what those problems were, I don't
I'm working on this.
Apparently was committed Fri Jul 3 22:17:03 1998 UTC (9 years, 7 months ago)
by bde in rev 1.92 of ufs_vnops.c.
This week's award for "closing antique PRs" to: Dylan Cochran