Skip to content

Comment on Redis latency spikes and the Linux kernel: a few more detailsparent

Comments

If you have a pointer to an immutable data structure, you know it won't change, so you can write it out to disk at your leisure.

But the immutable data structure is not that much different from the copy-on-write pages the kernel gives you, likely to involve the same amount of copying. And disk IO is blocking so you need at least a thread, so it is a natural strategy.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.