Bug 47773

Summary: "em" network device does not update packet counters smoothly
Product: Base System Reporter: Paul Vixie <paul>
Component: kernAssignee: pdeuskar
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Paul Vixie 2003-01-31 23:10:16 UTC
	"em" network device packet counters only update every other second

How-To-Repeat: 
# netstat 1
            input        (Total)           output
   packets  errs      bytes    packets  errs      bytes colls
         0     0      49411          0     0      99551     0
      1113     0      47959       1159     0      90625     0
         0     0      43280          0     0      85302     0
       971     0      46905       1008     0      92500     0
         2     0      47095          2     0      92107     0
      1070     0      47132       1123     0      91538     0
         0     0      47209          0     0      89947     0
      1088     0      49646       1138     0      96308     0
^C
Comment 1 dwmalone freebsd_committer freebsd_triage 2003-02-05 11:44:07 UTC
Responsible Changed
From-To: freebsd-bugs->pdeuskar

The em driver is maintained by Prafulla.
Comment 2 pdeuskar freebsd_committer freebsd_triage 2003-02-12 17:37:03 UTC
State Changed
From-To: open->closed

Reading memory mapped registers is very expensive. That is why the driver 
doesn't read statistics registers every second.