logoalt Hacker News

blibblelast Friday at 8:14 PM2 repliesview on HN

redis uses the copy-on-write property of fork() to implement saving

which is elegant and completely legitimate


Replies

ycombinatrixlast Friday at 8:31 PM

How does fork() work with vm.overcommit=2?

A forked process would assume memory is already allocated, but I guess it would fail when writing to it as if vm.overcommit is set to 0 or 1.

show 2 replies
loeglast Friday at 8:41 PM

Can you elaborate on how this comment is connected to the article?

show 1 reply