From owner-freebsd-stable@FreeBSD.ORG Mon Nov 14 23:56:34 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F6BA1065675 for ; Mon, 14 Nov 2011 23:56:34 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8DA188FC17 for ; Mon, 14 Nov 2011 23:56:33 +0000 (UTC) Received: from vhoffman-macbooklocal.local ([10.10.10.20]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id pAENuUlL083414 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 14 Nov 2011 23:56:31 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4EC1AAAE.1030007@unsane.co.uk> Date: Mon, 14 Nov 2011 23:56:30 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: FreeBSD Stable Mailing List X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: question on netstat statistics. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2011 23:56:34 -0000 I've been trying to work out why my nfs mounts seem to be a little speed limited (thats another email though) and though I'd go through the stats netstat makes available. >From the manpage netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] Display per-interface statistics for each network protocol, for a particular protocol_family, or for a single protocol. I was expecting to be able to see at least some tcp/ip stats per interface, but [root@banshee ~]# ifconfig -l igb0 igb1 lo0 lagg0 lagg0.53 lagg0.52 pflog0 lagg0.66 [root@banshee ~]# for int in $(ifconfig -l) ; do netstat -I $int -s -f inet; done [root@banshee ~]# I can get system wide using netstat -s -f inet and if use netstat -I $int -s I get a bunch of ipv6 stats. and of course i can get the stats from netstat -I $int too. Is this expected behaviour? if so maybe the manpage could be made a little clearer. Thanks, Vince ps tested on [root@ostracod ~]# uname -a FreeBSD ostracod.unsane.co.uk 9.0-RC1 FreeBSD 9.0-RC1 #15 r226879: Fri Oct 28 22:25:26 BST 2011 toor@ostracod.unsane.co.uk:/usr/obj/usr/src/sys/OSTRACOD amd64 [root@ostracod ~]# FreeBSD banshee.namesco.net 8.2-STABLE FreeBSD 8.2-STABLE #5: Wed Nov 2 14:53:03 GMT 2011 toor@banshee.lon.domain.com:/usr/obj/usr/src/sys/BANSHEE amd64 FreeBSD zfstest 9.0-RC2 FreeBSD 9.0-RC2 #0 r227497M: Mon Nov 14 16:14:54 GMT 2011 toor@zfstest:/usr/obj/usr/src/sys/ZFSTEST amd64