[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-10-11 Thread Zekun Li
Zekun Li added the comment: > This is only useful if the parent process has a lot of memory that's never > used by the child processes right? Otherwise, you would lose via refcounting > COWs. What we saw in prod is that memory fragmentation caused by gc is the main reason of

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-10-11 Thread Zekun Li
Zekun Li added the comment: So what we did is: We keep gc **disabled** on parent process and freeze after warmup, enable gc on child process. The reason not to do a full collection is mentioned in previous comments/original ticket - (I called it) memory fragmentation. The observation is