From owner-freebsd-net@FreeBSD.ORG Thu Oct 14 05:48:49 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 045BF106564A for ; Thu, 14 Oct 2010 05:48:49 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [77.88.46.21]) by mx1.freebsd.org (Postfix) with ESMTP id A8AFD8FC1D for ; Thu, 14 Oct 2010 05:48:48 +0000 (UTC) Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward5.mail.yandex.net (Yandex) with ESMTP id EAF9E14D0561 for ; Thu, 14 Oct 2010 09:48:46 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1287035326; bh=7j2CxVhDoFtbfGTaCGyfp1ICUOsuPhH7ZBQWD/oAesw=; h=Date:From:Reply-To:Message-ID:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding; b=kOQyBXkfdgTztsGWzcFH4AybP2d5koPwYvURBeOk2uXR64hz9p+xMwGKa4ql3YBaQ OHZI6DFNqF08+ye66Zedi3/karlWjrJpoOmD7L1DvJfB6KWdMBZ/U2QMkeFAnVVD95 lYT+31232re94MTYB/S4SUfByMg6ElnkWkCncgHc= Received: from HOMEUSER (unknown [77.93.36.205]) by smtp4.mail.yandex.net (Yandex) with ESMTPA id B46D312808C for ; Thu, 14 Oct 2010 09:48:46 +0400 (MSD) Date: Thu, 14 Oct 2010 08:48:46 +0300 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?windows-1251?B?188gyu7t/Oru4iwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <8710276544.20101014084846@yandex.ru> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Yandex-TimeMark: 1287035326 X-Yandex-Spam: 1 X-Yandex-Front: smtp4.mail.yandex.net Subject: help tune X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 05:48:49 -0000 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@yandex.ru