[Development] QProcess fork() failure and overcommit

Thiago Macieira thiago.macieira at intel.com
Tue Mar 7 22:00:53 CET 2017


Em terça-feira, 7 de março de 2017, às 14:32:13 CET, Christian Kandeler 
escreveu:
> This kind of stuff seems to happen when the parent process has allocated
> a lot of memory. I haven't debugged into it, but one idea might be that
> the page tables themselves get to a non-trivial size and thus copying
> them causes allocation problems.
> Note also that starting a QProcess becomes enormously slow in such
> applications; for instance, on my machine here, I can only start about
> 20 processes per second from an application that has 1 GB of memory
> allocated.

What OS is that? René was talking about macOS.

Also, what's 1 GB for you? Virtual size or resident set size?

The page table overhead in the OS shouldn't be more than a couple of 
megabytes.

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




More information about the Development mailing list