On Nov 15, 2012 9:29 AM, "Peter Samuelson" <[email protected]> wrote: > > > [Philip Martin] > > If I configure a server with an FSFS cache that uses about 50% of > > available memory and then I use the server so the cache is in use I > > find that hook scripts fail to run because the fork/exec cannot > > allocate memory. > > You didn't say what OS this is. It matters. Some are configured to > overcommit RAM allocation, because a lot of software tends to allocate > far more RAM than it actually needs. (fork() is only one case of > this.) > > The other reason the OS matters is that some OSes support a vfork() > call which would avoid this issue entirely. Unfortunatley it seems > apr_proc_create() has no option to use vfork() instead of fork(), even > for OSes (Linux and most Unixes) that support it.
We can fix APR. "If you're running a big cache, and hitting fork errors, please upgrade to APR 1.6" Cheers, -g

