sendfile не включается почему-то

Михаил Монашёв postmaster at softsearch.ru
Sun Feb 24 01:16:03 MSK 2008


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

Вот при такой конфигурации:

/usr/local/etc/nginx/nginx.conf:
worker_processes  30;

events {
    worker_connections  16384;
}


http {
    sendfile_max_chunk 128k;
    sendfile        on;
...



/boot/loader.conf:
autoboot_delay="1"

beastie_disable="YES"

kern.maxvnodes=400000

net.inet.tcp.log_debug=0
debug.vfscache=0

net.inet.tcp.syncache.hashsize="1024"
net.inet.tcp.syncache.bucketlimit="100"
net.inet.tcp.tcbhashsize="4096"

vm.kmem_size="1G"
#kern.ipc.nmbclusters="262144"
kern.ipc.nmbclusters="65536"
kern.ipc.nsfbufs="16896"

net.inet.tcp.hostcache.bucketlimit="100"
net.inet.tcp.hostcache.hashsize="4096"


/etc/sysctl.conf:
net.inet.tcp.msl=7500
net.inet.tcp.delayed_ack=0

net.inet.ip.random_id=1

net.inet.ip.fw.dyn_buckets=32768
net.inet.ip.fw.dyn_max=32768
net.inet.ip.fw.dyn_ack_lifetime=120
net.inet.ip.fw.dyn_syn_lifetime=10
net.inet.ip.fw.dyn_fin_lifetime=2
net.inet.ip.fw.dyn_short_lifetime=10

net.inet.tcp.keepidle=40000
net.inet.tcp.keepintvl=40000
net.inet.tcp.keepinit=40000

net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=16384

net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1

kern.maxvnodes=400000
net.inet.tcp.maxtcptw=40960
net.inet.ip.portrange.randomized=0
net.inet.tcp.syncookies=1
kern.ipc.maxsockets=204800
kern.maxfiles=204800
kern.maxfilesperproc=200000
kern.ipc.maxsockets=204800
kern.ipc.somaxconn=4096


sendfile почему-то не работает:

sysctl -a | grep sfbuf
kern.ipc.nsfbufsused: 0
kern.ipc.nsfbufspeak: 0
kern.ipc.nsfbufs: 0

netstat -m
4167/4158/8325 mbufs in use (current/cache/total)
369/1985/2354/65536 mbuf clusters in use (current/cache/total/max)
369/1935 mbuf+clusters out of packet secondary zone in use (current/cache)
0/35/35/16896 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/8448 9k jumbo clusters in use (current/cache/total/max)
0/0/0/4224 16k jumbo clusters in use (current/cache/total/max)
1779K/5149K/6929K 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)
0/0/0 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
32775 requests for I/O initiated by sendfile
0 calls to protocol drain routines

FreeBSD 7.0-PRERELEASE

Вопрос: почему не работает sendfile?


--

С уважением,
Михаил Монашёв, SoftSearch.ru
mailto:postmaster at softsearch.ru
ICQ# 166233339
http://michael.mindmix.ru/
Без бэкапа по жизни.






More information about the nginx-ru mailing list