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. For ufs/ffs/ffs_inode.c: If no MNT_NOATIME is set then ignore access time update requests. For ufs/ffs/ffs_vfsops.c: 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). For ufs/ffs/ffs_vnops.c: 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 How-To-Repeat: Notice that the disk on a completely idle notebook will spin up ever few minutes.
State Changed From-To: open->closed Submitted patch applied by John (who forgot to close this PR ;-)
State Changed From-To: closed->open 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 know.
Responsible Changed From-To: freebsd-bugs->bde I'm working on this.
State Changed From-To: open->closed 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