Re: mod-cgi reads entire output into memory...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Jul 2012 23:25:09 +0300
Nadav Har'El <nyh@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux