Author pitrou
Recipients Aaron.Sherman, gregory.p.smith, pitrou, vstinner
Date 2011-02-24.23:44:44
SpamBayes Score 0.00011716
Marked as misclassified No
Message-id <1298591085.7.0.176262469006.issue11314@psf.upfronthosting.co.za>
In-reply-to
Content
I think your analysis is wrong. These mmap() calls are for anonymous memory, most likely they are emitted by the libc's malloc() to get some memory from the kernel. In other words they will be blazingly fast.

I would suggest you try to dig deeper. For example, how much CPU time does the parent process take (excluding its children).

Of course, I also disagree with the idea that spawning "exit 0" subprocesses is a performance critical operation ;) Therefore, it would be useful to know the absolute overhead difference (in milliseconds) between subprocess and os.popen(), to decide if there is really a problem.
History
Date User Action Args
2011-02-24 23:44:45pitrousetrecipients: + pitrou, gregory.p.smith, vstinner, Aaron.Sherman
2011-02-24 23:44:45pitrousetmessageid: <1298591085.7.0.176262469006.issue11314@psf.upfronthosting.co.za>
2011-02-24 23:44:44pitroulinkissue11314 messages
2011-02-24 23:44:44pitroucreate