A walk among the symlinks
A walk among the symlinks
Posted Jul 18, 2015 2:16 UTC (Sat) by neilbrown (subscriber, #359)In reply to: A walk among the symlinks by Jandar
Parent article: A walk among the symlinks
I don't *think* so but I'm not 100% sure.
I think the kernel mostly only updates its internal time counter (tk_core.timekeeper) every "tick",which means every millisecond or so depending on the HZ setting.
So while it records the time with a precision of 1ns, the accuracy is much less than that.
You only need REF-walk if tk_core.timekeeper has changed since the last time that symlink was accessed. So accessing the same symlink repeatedly should only require REF-walk once per millisecond (or per 10 msecs or whatever HZ is).
I don't think lazytime would change this calculation.
However I do think that nosymlinkatime is probably a good idea and should probably be the default - at least for follow_link (not sure about readlink).
You would need to demonstrate a slowdown caused by the updates, and I suspect you would need quite a few CPU cores to do that (It's quite easy to measure the cost of REF-walk on a 64-core machine ;-)
