logoalt Hacker News

toast0last Friday at 9:23 PM1 replyview on HN

As pm215 states, it doubles your memory commit. It's somewhat common for large programs/runtimes that may fork at runtime to spawn an intermediary process during startup to use for runtime forks to avoid the cost of CoW on memory and mapppings and etc where the CoW isn't needed or desirable; but redis has to fork the actual service process because it uses CoW to effectively snapshot memory.


Replies

loeglast Friday at 10:25 PM

It seems like a wrong accounting to count CoWed pages twice.

show 2 replies