Page MenuHomeFreeBSD

Disable timestamping on devfs by default.
ClosedPublic

Authored by delphij on Mar 21 2015, 12:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 23, 5:32 AM
Unknown Object (File)
Thu, Jan 23, 5:03 AM
Unknown Object (File)
Thu, Jan 9, 6:17 AM
Unknown Object (File)
Thu, Jan 9, 12:33 AM
Unknown Object (File)
Dec 19 2024, 7:05 PM
Unknown Object (File)
Nov 12 2024, 6:44 PM
Unknown Object (File)
Nov 10 2024, 6:50 PM
Unknown Object (File)
Nov 10 2024, 3:08 PM
Subscribers

Details

Reviewers
kib
jhb
Summary

Currently we update timestamps unconditionally for each
read/write on devfs. This may slow things down on hardware where
reading time is expensive (e.g. HPET, because the timestamp setting
is currently nanosecond by default) with limited benefit.

Test Plan

boot system and change the setting from zero to non-zero
and back and observe the performance impact.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

delphij retitled this revision from to Disable timestamping on devfs by default..
delphij updated this object.
delphij edited the test plan for this revision. (Show Details)
delphij added a reviewer: jhb.
sys/fs/devfs/devfs_vnops.c
1592

I suggest not to skip timestamp on attribute change always.

Exclude the VOP_SETATTR() codepath.

sys/fs/devfs/devfs_vnops.c
1592

Actually the current code doesn't seem right. I'll exclude this portion for now.

kib edited edge metadata.
This revision is now accepted and ready to land.Mar 21 2015, 12:50 AM