[issue35238] Alleviate memory reservation of fork_exec in subprocess.Popen via forkserver

Oscar Esteban report at bugs.python.org
Mon Dec 17 16:56:47 EST 2018


Oscar Esteban <oesteban at stanford.edu> added the comment:

Hi Victor,

That would be great. However, we played a bit with an alternative implementation of posix_spawn (one I got from one related bpo), and it didn't seem to make any difference in terms of memory allocation.

Then, we found out that posix_spawn uses fork by default (Linux implementation). So the large memory allocations still happen. One can set the vFork option, but that is apparently a very bad idea, as far as we read.

Is that correct?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35238>
_______________________________________


More information about the Python-bugs-list mailing list