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)
Feb 10 2024, 9:36 PM
Unknown Object (File)
Feb 2 2024, 10:49 PM
Unknown Object (File)
Dec 28 2023, 6:00 PM
Unknown Object (File)
Dec 19 2023, 11:51 PM
Unknown Object (File)
Dec 15 2023, 5:24 PM
Unknown Object (File)
Nov 5 2023, 9:43 PM
Unknown Object (File)
Sep 26 2023, 9:49 AM
Unknown Object (File)
Aug 2 2023, 4:17 AM
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