6 ms·
> Fork on Linux should use copy-on-write vmpages now, so if you fork inside python it should be cheap. No, that's exactly the point I'm making, copying PTEs is
by charleshn 1y ago
> Fork on Linux should use copy-on-write vmpages now, so if you fork inside python it should be cheap.
No, that's exactly the point I'm making, copying PTEs is not cheap on a large address space, woth many VMAs.
You can run a simple python script allocating a large list and see how it affects fork time.
- charleshn 1y agoSee e.g. https://www.alibabacloud.com/blog/async-fork-mitigating-query-latency-spikes-incurred-by-the-fork-based-snapshot-mechanism_600205 https://www.alibabacloud.com/blog/async-fork-mitigating-quer...