Comment on Redis latency spikes and the Linux kernel: a few more detailsparentComments−Ono-Sendai11yIf 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.−justincormack11yBut 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.
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.