46 points luu 3 days ago 12 comments
vatsachak 2 hours ago | parent
For example Jon G gave a talk at Jane Street about how he had a mysterious performance bug that was later attributed to cores fighting over the same cache line
rwmj 51 minutes ago | parent
1317 2 hours ago | parent
prmph 1 hour ago | parent
Someone should post that article instead, lol. I'd love to discuss why I am able to comprehend and read a language almost fully but cannot speak it.
todowhatexactly 1 hour ago | parent
Compare the ease with which you recognize a bicycle and the difficulty of drawing one.
It’s not the mechanics of the pencil alone although that plays a role a well. But even if you could somehow imprint perfect lines like you imagine them, the bicycle and the lightening etc will not be realistic unless you are a trained artist.
chrisweekly 1 hour ago | parent
tbrownaw 1 hour ago | parent
mightyham 58 minutes ago | parent
The author should clarify here that this fsync wrinkle only affects newly created files, not updates to existing ones.
rwmj 52 minutes ago | parent
Pannoniae 52 minutes ago | parent
Writes are the opposite, they're usually not RAW (read-after-write), they're "fire and forget", so you don't really care about latency, but you do care a whole a lot about your writes actually arriving... again two competing parameters because the more you batch the writes, the faster they are but the bigger chance of a torn write or data loss. And unlike reads, writes are not idempotent on the application level so ideally you'd want some logic to atomically write a meaningful amount of data so it won't get torn, even if it crashes.
Now in practice just about no one actually does any of this but it's a fun thought :D