[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: fork/exec for hooks scripts with a large FSFS cache

From: Greg Stein <gstein_at_gmail.com>
Date: Thu, 15 Nov 2012 11:32:24 -0500

On Nov 15, 2012 9:29 AM, "Peter Samuelson" <peter_at_p12n.org> 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
Received on 2012-11-15 17:32:58 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.