Re:A multithreaded fork of Redis that is faster
by BubRoss on Monday October 07, 2019 @03:07PM
(#21184724)
Doesn't that end up duplicating lots of data and work since the processes are independent? They don't share data do they?
[ Parent
| on HN ]
Re:A multithreaded fork of Redis that is faster
by tomjakubowski on Monday October 07, 2019 @03:17PM
(#21184842)
fork() on Linux (and many other OSes) shares pages between the parent/child processes in a copy-on-write scheme
Re:A multithreaded fork of Redis that is faster
by braindeath on Monday October 07, 2019 @05:52PM
(#21186358)
That 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.
Re:A multithreaded fork of Redis that is faster
by tomjakubowski on Monday October 07, 2019 @06:43PM
(#21186790)
I'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.