[addenum] Re: src/http/modules/ngx_http_gzip_filter_module.c tuning

Aleksandar Lazic al-nginx at none.at
Sun Dec 10 13:32:04 MSK 2006


On Son 10.12.2006 11:14, Aleksandar Lazic wrote:
>Hi,
>
>On Son 10.12.2006 13:04, Igor Sysoev wrote:
>>On Sun, 10 Dec 2006, Aleksandar Lazic wrote:
>>
>>>today I have tested nginx and apache compression behavior with proxied
>>>requests and wasn't very happy that apache beats nginx :-/
>>>
>>>/usr/sbin/ab2 -t 60 -c 5 -H 'Accept-Encoding: gzip' URL
>>
>>What backend do you use ?
>
>The backend which was used is Mongrel latest stable.

With 5 processes.

>>There may be follwoing reasons:
>>
>>1) by default nginx compresses 1.1 requests only, you may set:
>>    gzip_http_version 1.0
>>    if ab2 sends 1.0 requests then nginx pass them to backend and
>>    backend compresses them.
>
>We will check this.
>
>>2) how many CPUs and hao many worker_processes ?
>
>#CPUs i will ask.
>worker_processes 10

on:

Linux machine.dedi.acens.net 2.6.8-3-686-smp #1 \
SMP Thu Sep 7 04:39:15 UTC 2006 i686 GNU/Linux

>>3) instead of "proxy_buffering off" better use
>>    proxy_max_temp_file_size  0;
>
>We will check this.
>
>What about the options in the source?
>
>gzip_no_buffer?
>gzip_window?
>gzip_hash?
>
>Thanks for help ;-)

Regards

Aleks





More information about the nginx mailing list