Message366216
Copy on writes are a big problem in large Python application that rely on multiple processes sharing the same memory.
With the implementation of `gc.freeze`, we've attenuated the problem by removing the CoW coming from the GC Head. However, reference counting still causes CoW.
This introduces Immortal Instances which allows the user to bypass reference counting on specific objects and avoid CoW on forked processes.
Immortal Instances are specially useful for applications that cache heap objects in shared memory which live throughout the entire execution (i.e modules, code, bytecode, etc.) |
|
Date |
User |
Action |
Args |
2020-04-11 15:40:21 | eelizondo | set | recipients:
+ eelizondo |
2020-04-11 15:40:21 | eelizondo | set | messageid: <1586619621.82.0.553262088399.issue40255@roundup.psfhosted.org> |
2020-04-11 15:40:21 | eelizondo | link | issue40255 messages |
2020-04-11 15:40:21 | eelizondo | create | |
|