From owner-freebsd-net@freebsd.org Sat Mar 25 23:32:40 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7193CD1DE7D for ; Sat, 25 Mar 2017 23:32:40 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pg0-x236.google.com (mail-pg0-x236.google.com [IPv6:2607:f8b0:400e:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 41958139D for ; Sat, 25 Mar 2017 23:32:40 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pg0-x236.google.com with SMTP id t143so11821447pgb.2 for ; Sat, 25 Mar 2017 16:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=L6MFGP4wQprEU52a1zQjQL+2FbgloeDejBWDQLfiLMc=; b=a9LmqGoir9pF+50macRAEh9JO6CWod4X9GWyG1/zd6awB6A4V1BdWR9+IUaQ8/FF4S oyW4KeKG7jIk/TmhCGWzUgiPEanha/HiA1BaRTb11OA4VuKrGEnae1mdvmwFFw9kIE44 0K/02jehmANRHSAv/dVaTHl/8f7vKVd2DomJ4iDbuXViOOGVOA3asyzHgkiLlDxSnhCt 12Cm6uxH0CMh85mcNjzAfd4Q32wQkhJN5DfGHMJAH5M0mzd3udRrB/G5nm4Gd9xGE57m Vr8Ju/odcJBi1pQMOqNSTd8/hEL67kUQBqj5jDIdjIRBBW9YzFhP+1ikkMZZ4UDpmhyE DasQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=L6MFGP4wQprEU52a1zQjQL+2FbgloeDejBWDQLfiLMc=; b=nTwl3FoLmdSskXpqER3/L8h0PcMX/YIOEh6E/rWUDPA2T+QrVYLR7KB/wgqbZRr1Ig hCMnvn1n5+jkSNIazFhARn655t2zWVpkmAocXrYtGSDthvNDW3duooOsG/t5HLOrm/xQ TvuF8alQ+z3Z8mJvMp/UHC9XbT+dpQVhcTRhFrXN5bUygKpNlA+3ZmkCFxHKWUyryjt1 L+XfEBDUoyVf8WlRfRgu8zckpZTOdn3RL47RWV/NhCGqfYkb2iMUfVw3jc//jVy+tUz5 vcuVtZn/SbBBxkYolQoBOZ3akeCTegGR6d0momeJ76I+/LQbUGy8PEZjm2At4nYCZ/j5 lvSg== X-Gm-Message-State: AFeK/H1yL+Fr5zQNvBYN62rphibXehD2hQZ09PJVohGDXzOerneHBbERCKGHOpu5tuQSng== X-Received: by 10.84.222.4 with SMTP id w4mr20120384pls.159.1490484759808; Sat, 25 Mar 2017 16:32:39 -0700 (PDT) Received: from ox ([2601:641:c000:b800:f1f4:efde:3908:41b4]) by smtp.gmail.com with ESMTPSA id a21sm12222225pfc.36.2017.03.25.16.32.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Mar 2017 16:32:38 -0700 (PDT) Sender: Navdeep Parhar Date: Sat, 25 Mar 2017 16:32:33 -0700 From: Navdeep Parhar To: Slawa Olhovchenkov Cc: freebsd-net@FreeBSD.org Subject: Re: TSO and packets accounting Message-ID: <20170325233233.GA17705@ox> Mail-Followup-To: Slawa Olhovchenkov , freebsd-net@FreeBSD.org References: <20170325223930.GK86500@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170325223930.GK86500@zxy.spb.ru> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Mar 2017 23:32:40 -0000 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 Regards, Navdeep > > cc0: flags=8843 metric 0 mtu 1500 > options=ec07bb > ether 00:07:43:04:b3:20 > nd6 options=9 > media: Ethernet 40Gbase-SR4 > status: active > cc1: flags=8843 metric 0 mtu 1500 > options=ec07bb > ether 00:07:43:04:b3:20 > nd6 options=9 > media: Ethernet 40Gbase-SR4 > status: active > lagg0: flags=8843 metric 0 mtu 1500 > options=ec07bb > ether 00:07:43:04:b3:20 > nd6 options=9 > media: Ethernet autoselect > status: active > groups: lagg > laggproto lacp lagghash l2,l3,l4 > laggport: cc0 flags=1c > laggport: cc1 flags=1c > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"