echo 1 > foo; stat foo; echo 2 > foo; stat foo

Do both stats show the same mtime for the file? Seeing that on some linux 2.16 systems and trying to understand why.

I'll bet it has something to do with linux's minimum timer tick vs processor speed etc

@joeyh I get an mtime difference:

Modify: 2018-10-30 10:02:02.612055158 +0200
Modify: 2018-10-30 10:02:02.616055159 +0200

My computer's not fast enough for that difference. I assume your speculation of some in-kernel minimum timer tick is on the right track.

@joeyh Completely not.

Modify: 2018-10-30 09:05:17.456483848 +0100
Modify: 2018-10-30 09:05:17.459483772 +0100
Linux 4.14.76-gentoo on x86_64, filesystem is ZFS+LUKS on a HDD.
Sign in to participate in the conversation

Octodon is a nice general purpose instance. more