ПРОЕКТЫ 


  АРХИВ 


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: Низкая скорость об работки запросов



On Wed, Feb 21, 2007 at 01:12:46PM +0300, Oleg I. wrote:

> > А что показывает "netstat -m" ?
> 
> netstat -m
> 73017/903/73920 mbufs in use (current/cache/total)
> 4394/238/4632/65536 mbuf clusters in use (current/cache/total/max)
> 2374/48 mbuf+clusters out of packet secondary zone in use (current/cache)
> 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
> 0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
> 0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
> 27042K/701K/27744K bytes allocated to network (current/cache/total)
> 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
> 0/0/0 requests for jumbo clusters denied (4k/9k/16k)
> 65536/65536/65536 sfbufs in use (current/peak/max)
> 0 requests for sfbufs denied
> 7727173 requests for sfbufs delayed
> 17820651 requests for I/O initiated by sendfile
> 87310 calls to protocol drain routines

Вот, собственно и проблема: sndbuf=1048576 и кончились sfbufs, а nginx
висит в состояниях sfbufa.

65536/65536/65536 sfbufs in use (current/peak/max)
7727173 requests for sfbufs delayed

Их бескончено увеличивать нельзя.

> Это на первом варианте конфига (т.е. без rcvbuf=131072 sndbuf=1048576).
> Ждем возможности перезагрузить машину, чтоб увеличить sfbufs.

Поставьте sndbuf=64k и всё.


-- 
Игорь Сысоев
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.