help tune
Коньков Евгений
kes-kes at yandex.ru
Thu Oct 14 05:48:49 UTC 2010
Hi, Freebsd-net.
Help me pls, to tune those drops.
fastvpn# netstat -s
udp:
268701 datagrams received
0 with incomplete header
1 with bad data length field
12 with bad checksum
5229 with no checksum
208022 dropped due to no socket <<<<<<<
25412 broadcast/multicast datagrams undelivered
0 dropped due to full socket buffers
0 not for hashed pcb
35254 delivered
36778 datagrams output
ip:
29905296 packets for this host
5251 packets for unknown/unsupported protocol
76959667 packets forwarded (0 packets fast forwarded)
29392 packets not forwardable
0 packets received for unknown multicast group
0 redirects sent
73000444 packets sent from this host
106902149 total packets received
35680 output packets dropped due to no bufs, etc. <<<<<<<
I do this tuning:
/etc/sysctl.conf
hw.pci.enable_msix=1
hw.pci.enable_msi=1
kern.ipc.nmbclusters=262144
kern.ipc.shmall=65536
kern.ipc.shmmax=268435456
kern.ipc.somaxconn=4096
kern.ipc.semmap=512
kern.maxfiles=204800
kern.maxfilesperproc=200000
kern.ipc.maxsockets=262144
kern.coredump=1
net.graph.maxdgram=128000
net.graph.recvspace=128000
ddb.panic=5
/boot/loader.conf
kern.ipc.nmbclusters=262144
kern.ipc.maxsockets=262144
net.graph.maxalloc=2048
kern.maxusers=1024
kern.ipc.maxpipekva=268435456
kern.maxfiles=204800
net.graph.maxdata=2048
kern.maxfilesperproc=200000
kern.ipc.maxsockbuf=524288
Mem: 42M Active, 183M Inact, 90M Wired, 20K Cache, 59M Buf, 170M Free
Swap: 2048M Total, 2048M Free
--
mailto:kes-kes at yandex.ru
More information about the freebsd-net
mailing list