httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] mod-cgi reads entire output into memory...
Date Tue, 17 Jul 2012 20:32:24 GMT
On Tue, 17 Jul 2012 23:25:09 +0300
Nadav Har'El <nyh@math.technion.ac.il> wrote:

> The resulting code is ugly, hairy and Unix-only, but it works and
> performance is significantly better than normal mod_cgi for my usecase
> of very large program-generated files. For example, a simple CGI
> generating 512 MB of data took 0.9 seconds to fetch locally when using
> mod_cgi, but only 0.4 seconds with my "zero-copy mod_cgi".
> 
> Additionally, after this local fetch with my "zero-copy mod_cgi", the
> httpd process remains tiny (2 MB resident), while with the original
> "pass through the do-nothing bucket brigade" mod_cgi, httpd grew to
> 86 MB resident.

Did you test your program with mod_cgid, mod_fcgid, mod_proxy_scgi?

I'm thinking, if they also grow out-of-control with your program
then it would probably be worth fixing.

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message