ПРОЕКТЫ 


  АРХИВ 


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]: Странноcти со скоростями



Здравствуйте, Igor!

Wednesday, February 22, 2006, 7:16:51 PM, you wrote:

IS> On Wed, 22 Feb 2006, Vyacheslav Kokorin wrote:

>> Странная ситуация случается со скоростями - на loopback скорость
>> вообще никакая по сравнению с обыкновенным интерфейсом.
>> Где конфуз - не нашёл. Может это опциями в nginx.conf какими-то регулируется?
>>
>> Конфиг nginx-а стандартный из портов, только все
>> секции server {} заменены на такую:
>>
>> server {
>>   listen 888;
>>   root        /home/www/site1/public_html;
>>   location /  {
>>     # autoindex on;
>>     index index.shtml index.html index.htm index.wml;
>>   }
>>   error_log   off;
>>   access_log  off;
>> }
>>
>> Получаются совершенно разные скорости при запросах
>> http://127.0.0.1:888/film.avi  и  http://192.168.0.1:888/film.avi
>> примерно 40 К/сек и 30M/sec соответственно.
>>
>> nginx 0.3.20 собран из портов с --with-debug и --with-http_realip_module
>> ситема FreeBSD 6.0
>>
>> Мне показалось странным в debug-log вот что:
>>
>> # grep 'timer delta' error.log.127
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 9050
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 1
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 99
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 200
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:42 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:43 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:43 [debug] 5345#0: timer delta: 200
>> 2006/02/22 18:09:43 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:43 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:43 [debug] 5345#0: timer delta: 100
>> 2006/02/22 18:09:43 [debug] 5345#0: timer delta: 182
>> 2006/02/22 18:09:43 [debug] 5345#0: timer delta: 99

IS> А "grep 'kevent timer'" ?

# grep 'kevent timer' error.log.127
2006/02/22 18:09:33 [debug] 5345#0: kevent timer: -1, changes: 2
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 60000, changes: 1
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 60000, changes: 1
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 59901, changes: 0
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 59801, changes: 0
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 59701, changes: 0
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 60000, changes: 0
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 59800, changes: 0
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 60000, changes: 0
2006/02/22 18:09:42 [debug] 5345#0: kevent timer: 59900, changes: 0
2006/02/22 18:09:43 [debug] 5345#0: kevent timer: 59800, changes: 0
2006/02/22 18:09:43 [debug] 5345#0: kevent timer: 60000, changes: 0
2006/02/22 18:09:43 [debug] 5345#0: kevent timer: 59900, changes: 0
2006/02/22 18:09:43 [debug] 5345#0: kevent timer: 59800, changes: 0
2006/02/22 18:09:43 [debug] 5345#0: kevent timer: 60000, changes: 0
2006/02/22 18:09:43 [debug] 5345#0: kevent timer: 59818, changes: 0
2006/02/22 18:09:43 [debug] 5345#0: kevent timer: -1, changes: 0

# grep 'kevent timer' error.log.192 | head; echo 'skipped'; grep 'kevent timer' 
error.log.192 | tail
2006/02/22 18:10:45 [debug] 5376#0: kevent timer: -1, changes: 2
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 60000, changes: 1
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 60000, changes: 1
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 59860, changes: 0
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 60000, changes: 0
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 60000, changes: 0
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 60000, changes: 0
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 60000, changes: 0
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 59999, changes: 0
2006/02/22 18:10:56 [debug] 5376#0: kevent timer: 59999, changes: 0
skipped
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 59849, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 59848, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 59848, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 59848, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 59848, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 59847, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 75000, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 74870, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: 74771, changes: 0
2006/02/22 18:10:57 [debug] 5376#0: kevent timer: -1, changes: 0




-- 
С уважением, Вячеслав Кокорин
Системный администратор хостинга PeterHost.Ru
Тел: (812) 34-777-43
     (495) 540-56-33
http://www.PeterHost.Ru




 




Copyright © Lexa Software, 1996-2009.