We have a huge HG repo (takes 24G disk space, couple hundred branches) that I'm not able to successfully add in phabricator. I get a following error after couple of hours :
[2014-01-08 20:05:29] EXCEPTION: (PhutilProxyException) Error while fetching changes to the 'M' repository. {>} (Exception) Failed to proc_open(): proc_open(): fork failed - Cannot allocate memory {>} (Exception) Failed to proc_open(): proc_open(): fork failed - Cannot allocate memory at [/home/sadmin/phabricator/libphutil/src/future/exec/ExecFuture.php:649] #0 phlog(Object PhutilProxyException) called at [/home/sadmin/phabricator/phabricator/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:181] #1 PhabricatorRepositoryPullLocalDaemon::run() called at [/home/sadmin/phabricator/libphutil/src/daemon/PhutilDaemon.php:85] #2 PhutilDaemon::execute() called at [/home/sadmin/phabricator/libphutil/scripts/daemon/exec/exec_daemon.php:112]
I've also checked and it seems that importing(stuck at 0%) didn't start so I presumed that it must happen during discovery. I run discovery with verbose and it seems to iterate over all branches even though I selected only one to be tracked. (and it's also not successful, ends with the same error)
I have latest version of phabricator (updated on 08.01.2014.)
There's only 4G of memory on my machine, is there req that physical memory needs to match size of the repo ?