3 ms·
Doesn't that end up duplicating lots of data and work since the processes are independent? They don't share data do they?
by BubRoss 7y ago
Doesn't that end up duplicating lots of data and work since the processes are independent? They don't share data do they?
- tomjakubowski 7y agofork() on Linux (and many other OSes) shares pages between the parent/child processes in a copy-on-write scheme
- braindeath 7y agoThat doesn’t mean multiple long running processes will share memory though unless they actually create a shared mapping, which I think the gp is referring to. In addition to tremendous memory waste this also kills cache performance.
- tomjakubowski 7y agoI'd presume the persistence / I/O process would be pretty short lived: its job is to save a snapshot to disk so there's not much reason to let it live long.
- BubRoss 7y agoHow does that share data between multiple Redis processes?