3 ms·
Yes imagine recording a video stream, you'd have to update every directory above a file every few mS when files are written, and because file metadata usually g
by Taniwha 6y ago
Yes imagine recording a video stream, you'd have to update every directory above a file every few mS when files are written, and because file metadata usually gets priority on a spinning disk the heads would go crazy and throughput would go way down - probably couldn't keep up with the incoming stream
- apenwarr 6y agoYou're assuming the inodes of all the parent directories would be flushed to disk every time they change. This is already not the case. It would be just a matter of touching the data structure in memory and eventually flushing it out.
- dspillett 6y agoYou are assuming a modern filesystem and/or cacheing architecture in a machine with enough memory to spare to run it effectively (though in fairness the post you replied to directly did mention a fairly modern use case). Back when the behaviours being discussed became the norm the landscape was pretty different.