ПРОЕКТЫ 


  АРХИВ 


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: Persistent HTTP connections && Pipelining



uname -a

Linux corp 2.6.18-8.1.8.el5 #1 SMP Tue Jul 10 06:50:22 EDT 2007 i686 i686 i386 
GNU/Linux





net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_tw_recycle = 1



Server Software:        nginx/0.5.33

Server Hostname:        127.0.0.1

Server Port:            80



Document Path:          /

Document Length:        372 bytes



Concurrency Level:      1

Time taken for tests:   21.830205 seconds

Complete requests:      100000

Failed requests:        0

Write errors:           0

Total transferred:      49400000 bytes

HTML transferred:       37200000 bytes

Requests per second:    4580.81 [#/sec] (mean)

Time per request:       0.218 [ms] (mean)

Time per request:       0.218 [ms] (mean, across all concurrent requests)

Transfer rate:          2209.87 [Kbytes/sec] received





net.ipv4.tcp_tw_reuse = 0

net.ipv4.tcp_tw_recycle = 0

Server Software:        nginx/0.5.33

Server Hostname:        127.0.0.1

Server Port:            80



Document Path:          /

Document Length:        372 bytes



Concurrency Level:      1

Time taken for tests:   21.787039 seconds

Complete requests:      100000

Failed requests:        0

Write errors:           0

Total transferred:      49400000 bytes

HTML transferred:       37200000 bytes

Requests per second:    4589.88 [#/sec] (mean)

Time per request:       0.218 [ms] (mean)

Time per request:       0.218 [ms] (mean, across all concurrent requests)

Transfer rate:          2214.25 [Kbytes/sec] received



Есть у меня мнение, что для всего, что идёт через lo linux использует tw_reuse.





16.11.07, 21:56, Igor Sysoev (is@xxxxxxxxxxxxx):



> On Fri, Nov 16, 2007 at 07:39:57PM +0100, Roxis wrote:

> > On Friday 16 November 2007, Igor Sysoev wrote:

> > > Интересно, как выглядит тест

> > >

> > > ab -n 100000 http://localhost/

> > >

> > > на машине, где выключены обе настройке, особенно tcp_tw_reuse ?

> > 

> > ab -n 1000000

> > 

> > # 2.6.18.8

> > Time taken for tests:       72.432 seconds

> > Complete requests:          1000000

> > Total transferred:          105000000 bytes

> > Requests per second:        13806.05 [#/sec] (mean)

> > Time per request:           0.07 [ms] (mean)

> > Transfer rate:                      1449.64 [Kbytes/sec] received

> > 

> > # 2.6.23.3

> > Time taken for tests:       68.602 seconds

> > Complete requests:          1000000

> > Total transferred:          105000000 bytes

> > Requests per second:        14576.83 [#/sec] (mean)

> > Time per request:           0.07 [ms] (mean)

> > Transfer rate:                      1530.57 [Kbytes/sec] received

> Вполне себе reuse'аются. Тогда я не понимаю, что именно разрешает

> tcp_tw_reuse.



 




Copyright © Lexa Software, 1996-2009.