Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2009 11:45:05 GMT
From:      "Dmitry S. Luhtionov" <mitya@cabletv.dp.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/141340: wrong netstat -w 1 output
Message-ID:  <200912101145.nBABj5uN065028@www.freebsd.org>
Resent-Message-ID: <200912101150.nBABo4gp059336@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141340
>Category:       bin
>Synopsis:       wrong netstat -w 1 output
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 10 11:50:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry S. Luhtionov
>Release:        8.0-RELEASE
>Organization:
>Environment:
vpn8# uname -a
FreeBSD vpn8.cabletv.dp.ua 8.0-STABLE FreeBSD 8.0-STABLE #0: Wed Dec  2 10:18:16 EET 2009     mitya@vpn8.cabletv.dp.ua:/usr/src/sys/amd64/compile/vpn8  amd64
vpn8#
>Description:
On high load netstat may incorrect output
This server running mpd-5.3 as pptp server
vpn8# ifconfig -lu | wc -w
    1734
vpn8# netstat -w 1 -d -h
           input        (Total)           output
  packets  errs      bytes    packets  errs      bytes colls drops
     173K     0        89M       183K     0       129M     0     0
     170K     0        89M       181K     0       129M     0     0
     170K     0        89M       180K     0       128M     0     0
     170K     0        89M       180K     0       127M     0     0
     175K     0        91M       184K     0       130M     0     0
     173K     0        90M       183K     0       129M     0     0
     173K     0        90M       182K     0       129M     0     0
     171K     0        89M       180K     0       127M     0     0
     171K     0        89M       181K     0       129M     0     0
     172K     0        89M       181K     0       128M     0     0
     143K     0        88M       156K     0       107M     0     0
     174K     0        91M       184K     0       131M     0     0
     173K     0        90M       183K     0       130M     0     0
     175K     0        91M       186K     0       131M     0     0
     177K     0        92M       188K     0       133M     0     0
              0        71M                0                0     0
     171K     0        89M       179K     0       127M     0     0
     171K     0        89M       181K     0       128M     0     0
     175K     0        91M       186K     0       131M     0     0
      70K     0        83M        52K     0       -20M     0     0
           input        (Total)           output
  packets  errs      bytes    packets  errs      bytes colls drops
     174K     0        92M       184K     0       132M     0     0
     175K     0        93M       184K     0       132M     0     0
     174K     0        92M       184K     0       132M     0     0
     135K     0        89M       145K     0       118M     0     0
     172K     0        90M       181K     0       129M     0     0
     171K     0        89M       182K     0       129M     0     0
     172K     0        90M       183K     0       130M     0     0
     171K     0        90M       182K     0       130M     0     0
     173K     0        91M       183K     0       130M     0     0
^C
vpn8# netstat -w 1
            input        (Total)           output
   packets  errs      bytes    packets  errs      bytes colls
    145159     0   82485349     153321     0  117743533     0
    136895     0   79084654     145018     0  111877348     0
    146279     0   81710082     153952     0  116857455     0
    143634     0   80602950     152005     0  116127801     0
    144205     0   81175701     151892     0  115836499     0
    146342     0   83031415     153968     0  118093209     0
    143365     0   80564430     151508     0  115702643     0
    145253     0   82320881     153062     0  116675147     0
    146909     0   81998714     155485     0  117155601     0
     91507     0   76590439      79098     0   35481375     0
    145148     0   81429871     153728     0  116617071     0
    142632     0   80932248     150865     0  115942720     0
     21918     0   74115278 18446744073709486002     0 18446744073585465790     0
    142905     0   81095335     150861     0  115144168     0
    142216     0   80410366     150408     0  114744557     0
    142302     0   81065884     150364     0  115161521     0
    141493     0   79316895     148997     0  112673424     0
^C

>How-To-Repeat:
run netstat -w 1 again
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912101145.nBABj5uN065028>