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

2012-11-19 Thread Stefan Fuhrmann
On Mon, Nov 19, 2012 at 3:45 PM, Thomas Åkesson wrote: > On 14 nov 2012, at 01:44, Daniel Shahaf wrote: > > Philip Martin wrote on Tue, Nov 13, 2012 at 21:30:00 +: > >> Perhaps we could start up a separate hook script process before > >> allocating the large FSFS cache and then delegate the f

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

2012-11-19 Thread Thomas Åkesson
On 14 nov 2012, at 01:44, Daniel Shahaf wrote: > Philip Martin wrote on Tue, Nov 13, 2012 at 21:30:00 +: >> Perhaps we could start up a separate hook script process before >> allocating the large FSFS cache and then delegate the fork/exec to that >> smaller process? > > If so, let's have that

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

2012-11-16 Thread Philip Martin
Peter Samuelson writes: > [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 t

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

2012-11-15 Thread Greg Stein
On Nov 15, 2012 9:29 AM, "Peter Samuelson" 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 mem

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

2012-11-15 Thread Peter Samuelson
[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 con

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

2012-11-14 Thread Greg Stein
On Wed, Nov 14, 2012 at 8:49 AM, Philip Martin wrote: >... > Having hooks run in a separate process is complicated. The process > would need to be multi-threaded, or multi-process, to avoid hooks > running in serial. stdin/out/err would need to be handled > somehow. Pipes perhaps? By passing fi

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

2012-11-14 Thread Philip Martin
Stefan Fuhrmann writes: > wrote: >> >> Perhaps we could start up a separate hook script process before >> allocating the large FSFS cache and then delegate the fork/exec to that >> smaller process? >> > > I wonder whether there is a way to pass a different > cache setting to the sub-process. I d

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

2012-11-13 Thread Greg Stein
This problem is why mod_cgid exists. Been there. Done that. It creates a daemon early, before threads/mem are allocated. The child CGI processes are then fast to spawn. Cheers, -g (*) http://httpd.apache.org/docs/2.4/mod/mod_cgid.html On Nov 13, 2012 6:44 PM, "Daniel Shahaf" wrote: > Philip Mar

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

2012-11-13 Thread Daniel Shahaf
Philip Martin wrote on Tue, Nov 13, 2012 at 21:30:00 +: > Perhaps we could start up a separate hook script process before > allocating the large FSFS cache and then delegate the fork/exec to that > smaller process? If so, let's have that daemon handle all forks we might do, not just those rela

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

2012-11-13 Thread Stefan Fuhrmann
On Tue, Nov 13, 2012 at 10:30 PM, Philip Martin wrote: > 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. The user sees: > I

fork/exec for hooks scripts with a large FSFS cache

2012-11-13 Thread 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. The user sees: $ svn mkdir -mm http://localhost:/obj/repo/A svn: E165002: Faile