From owner-freebsd-questions@FreeBSD.ORG Thu Jan 12 01:28:23 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C19C21065670 for ; Thu, 12 Jan 2012 01:28:23 +0000 (UTC) (envelope-from ds@hacked.com.br) Received: from mail.hacked.com.br (mail.hacked.com.br [66.197.215.149]) by mx1.freebsd.org (Postfix) with SMTP id 5A06B8FC20 for ; Thu, 12 Jan 2012 01:28:22 +0000 (UTC) Received: (qmail 33017 invoked from network); 11 Jan 2012 23:01:39 -0200 Received: from bb686fe9.virtua.com.br (HELO Vinicius-Viannas-MacBook.local) (187.104.111.233) by mail.hacked.com.br with SMTP; 11 Jan 2012 23:01:39 -0200 Message-ID: <4F0E30F1.9000501@hacked.com.br> Date: Wed, 11 Jan 2012 23:01:37 -0200 From: Vinicius Vianna 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: Mike Woods References: <20120111112400.Horde.g4QFfgcXel9PDXFQSwJwfrA@webmail.geofront.co.uk> In-Reply-To: <20120111112400.Horde.g4QFfgcXel9PDXFQSwJwfrA@webmail.geofront.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Network throughput X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 01:28:23 -0000 On 11/01/12 09:24, Mike Woods wrote: > Hi guys, Been a while since i've had need to post to the list :) > > I'm trying to gather network throughput information on a box of ours > and I'm having a little problem, the throughput is to be measured on a > per-minute basis and i've been trying to use netstat for this (count > now - count before/timeperiod) however netstats byte counter resets > far too quickly to be usefull (this is a busy gb link), i've had a > look at vnstat but this only seems to operation on an hour or higher > and I need to get down to the minute, does anyone have any suggestions > of a tool better suited to this ? > Hi, Some NICs have sysctl variables that can be used to collect this data, we're using this on Intel em interfaces, don't know if this helps. The sysctl for the em devices are: dev.em.0.mac_stats.good_octets_recvd: 15266556928143 dev.em.0.mac_stats.good_octets_txd: 69147911137578 And in this you can count errors and other stuff too. > > ------------------------ > Mike Woods > Full of squishy cynicism > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"