Does this look okay?

Igor Sysoev is at rambler-co.ru
Mon Sep 29 23:04:24 MSD 2008


On Mon, Sep 29, 2008 at 11:48:37PM +0800, Delta Yeh wrote:

> What's your HW for  50K active connection ?

These are unactive keep-alive connections.
There are 5,000 req/s, mostly small static files, all are cached by VM.

> Would you please paste your system configure or optimization?
> There is no such  system tuning sample of  nginx for heavy traffic server.

FreeBSD 7.1/amd64, dual-core CPU, 4G.

/boot/loader.conf:

vm.kmem_size=1844M

# decrease buff_map and pipe_map to increase KVM
# 64M KVA
kern.maxbcache=64M
# 4M KVA
kern.ipc.maxpipekva=4M

/etc/sysctl.conf:

# 4G, 2G KVA, 1844M KVM
#
# 797M KVA/KVM
kern.ipc.nmbjumbop=192000
# 504M KVA/KVM
kern.ipc.nmbclusters=229376
# 334M KVA/KVM
kern.ipc.maxsockets=204800
# 8M KVA/KVM
net.inet.tcp.maxtcptw=163840
# 24M KVA/KVM
kern.maxfiles=204800

kern.ipc.somaxconn=4096


> 2008/9/29 Igor Sysoev <is at rambler-co.ru>:
> > On Sun, Sep 28, 2008 at 11:05:57PM -0700, mike wrote:
> > Active connections: 45579
> > server accepts handled requests
> >  268846178 268846178 638258372
> > Reading: 620 Writing: 576 Waiting: 44383


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list