ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

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

Re[2]: sendfile_max_chunk


  • To: Александр Ворона <nginx-ru@xxxxxxxxx>
  • Subject: Re[2]: sendfile_max_chunk
  • From: Igor Savchenko <dicsydel@xxxxxxxxx>
  • Date: Thu, 10 May 2007 16:29:18 +0300
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:x-mailer:reply-to:organization:x-priority:message-id:to:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding; b=tUMBLR48FBhAXTWOCh7NryukLUZzWEj9nciQYnHnCf6RxY/RXUD30GxB//ggdHubhgsPY2sOp8LJj7DX65FbvgQ9fr1QTTDDX1St9OO9AFDmZC1ed/7HhQJPYXipqlj92RqL5v3i2snjzGWDDcyQvGNYnXnrZ8YyNSVvfH4n2Co=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:x-mailer:reply-to:organization:x-priority:message-id:to:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding; b=JdGOTYJ0RnsYE5izY2knl8va0PtyflbI576fdB5DC8VPfRHDntzZUH99pMDLAyax7k84ITn+Yhd7Dmsblts7UM4J220cAujVDLaJzcke/nbpddymbOm1yZim6srEiEdfMVMAX3e8ay9ScjvHWeYn5ZihWPACQk74vblTkNcaIjs=
  • In-reply-to: <46430C97.9020406@xxxxxxxxxx>
  • Organization: Webta
  • References: <657731306.20070510105037@xxxxxxxxx> <4642D51B.7060604@xxxxxxxxxx> <324820689.20070510112334@xxxxxxxxx> <4642DFD9.5000104@xxxxxxxxxx> <354656190.20070510134315@xxxxxxxxx> <46430C97.9020406@xxxxxxxxxx>

Hello Александр,

Thursday, May 10, 2007, 3:14:15 PM, you wrote:

> Igor Savchenko пишет:

>>> скорость диска ~40М/сек, сеть быстрее.
>>> Можно увидеть результаты отдачи этого же файла(при отдаче с диска, не из
>>> кэша) nginx'ом wget'у через localhost ?
>> 
> Судя по Server, это  апач отдал, а не nginx.  Сколько отдаёт nginx в тех
> же условиях с sendfile_max_chunk=0 и sendfile_max_chunk=256k ?

  HTTP/1.1 200 OK
  Server: nginx/0.5.20
  Date: Thu, 10 May 2007 13:24:12 GMT
  Content-Type: application/octet-stream
  Content-Length: 1440062065
  Last-Modified: Thu, 10 May 2007 11:37:20 GMT
  Connection: keep-alive
  Accept-Ranges: bytes
Length: 1,440,062,065 (1.3G) [application/octet-stream]

 0% [                                                                           
                                       ] 372,736       16.66K/s ETA 23:26:54

 Это с 256K... оборвал, т.к. ждать 23 часа нет времени...

  HTTP/1.1 200 OK
  Server: nginx/0.5.20
  Date: Thu, 10 May 2007 13:25:59 GMT
  Content-Type: application/octet-stream
  Content-Length: 1440062065
  Last-Modified: Thu, 10 May 2007 11:37:20 GMT
  Connection: keep-alive
  Accept-Ranges: bytes
Length: 1,440,062,065 (1.3G) [application/octet-stream]

 0% [                                                                           
                                       ] 262,144       --.--K/s ETA 44:27:40

 Это с 0. Затыкается частенько.. в среднем по виду показывал скорость
 10-17КБ в секунду.

 вот конфиг:

worker_processes  10;

events {
    worker_connections  1024;
}


http {
    include       conf/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] $status '
                      '"$request" $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" 
"$sent_http_content_length"';

    access_log off;

    sendfile        on;
    #sendfile_max_chunk 0;
    sendfile_max_chunk 256K;

    perl_modules  perl/lib;            
    perl_require  rewrite.pm;

    server {
        listen       64.72.127.195:80;

        location / {
           perl rewrite::handler;
        }

        location /ngx_stat {
            stub_status on;
            access_log   off;
        }

        location /test.file2 {
                root /mnt/tt;

        }
    }
} 

качал test.file2 с этой же машины....

---------------------------------
Igor V. Savchenko

http://webta.net

mailto: igor@xxxxxxxxx
ICQ: 86915046




 




Copyright © Lexa Software, 1996-2009.