[Development] QProcess fork() failure and overcommit

Thiago Macieira thiago.macieira at intel.com
Tue Mar 7 22:05:21 CET 2017

Em terça-feira, 7 de março de 2017, às 17:53:41 CET, René J.V. Bertin 
> One tends to forget (I do at least) that spawning a little helper process
> can be quite expensive, sometimes prohibitively so. Makes you wonder what
> kind of cross-platform alternatives there are!

It shouldn't be.

fork() does need to copy the page tables and mark the pages as shared. It also 
means COW of certain pages. But the overhead shouldn't be that big.

If anyone is seeing this, can you run your application with strace to get the 

	strace -T -e clone

Add -f if the forking is happening outside the main thread.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list