Date: Sun, 26 Mar 2017 02:48:26 +0300 From: Slawa Olhovchenkov <slw@zxy.spb.ru> To: freebsd-net@FreeBSD.org Subject: Re: TSO and packets accounting Message-ID: <20170325234826.GC70430@zxy.spb.ru> In-Reply-To: <20170325233233.GA17705@ox> References: <20170325223930.GK86500@zxy.spb.ru> <20170325233233.GA17705@ox>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 25, 2017 at 04:32:33PM -0700, Navdeep Parhar wrote: > On Sun, Mar 26, 2017 at 01:39:30AM +0300, Slawa Olhovchenkov wrote: > > How to acoount output packets w/ TSO? > > I mean as one large packet. What I see: > > > > # netstat -nbI lagg0 1 > > input lagg0 output > > packets errs idrops bytes packets errs bytes colls > > 1702715 0 0 122228560 6274492 0 9401968581 0 > > 1623416 0 0 116306353 6035291 0 9045680036 0 > > 1670956 0 0 119911678 6107868 0 9153586152 0 > > 1682365 0 0 120518112 6157620 0 9228163875 0 > > 1575295 0 0 112786199 5831604 0 8736670135 0 > > 1596283 0 0 114404028 5910990 0 8852555094 0 > > 1651946 0 0 118449478 6080815 0 9109251501 0 > > 1661730 0 0 119001512 6152532 0 9219357915 0 > > 1638212 0 0 117502802 6114157 0 9160154253 0 > > 1644270 0 0 117823930 6116968 0 9164984649 0 > > > > 9401968581/6274492 = 1498.44299442887169192342 > > > > TSO not worked? > > Or this is adapted acounting? > > The interfaces are cc(4), so this is adapter accounting. The numbers > you see are coming from hardware MAC statistics that track "on-the-wire" > frames. > > If you want to know if TSO is occurring look for the driver stats for > the number of TSO work requests it has sent to the chip: > # sysctl dev.cc. | grep tso_wrs Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170325234826.GC70430>