Низкая скорость обработки запросов

Igor Sysoev is at rambler-co.ru
Wed Feb 21 13:22:53 MSK 2007


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





More information about the nginx-ru mailing list