em0 NIC slow on 8.2-p1 amd64?

Michael W. Lucas mwlucas at blackhelicopters.org
Thu Jul 21 14:05:40 UTC 2011


On Wed, Jul 20, 2011 at 05:19:47PM -0400, Mike Tancsa wrote:
> On 7/20/2011 12:04 PM, Michael W. Lucas wrote:
> > Hi,
> > 
> > I'm running FreeNAS 8.0/amd64, with an 8.2-p1 kernel.  When using FTP
> > or SCP, performance maxes out around 30MB/s. This is on a gigabit
> > network, no errors showing. 
> 
> what does
> sysctl -a dev.em
> 
> show ?
> 
> What kind of switch is the box plugged into ? Can you show the output of
> the switch interface showing how its connected e.g. flow control,
> duplex, interface counters etc.

It's an HP Procurve 3400cl-24g.

  Port  Type      | Enabled Mode         Flow Ctrl MDI 
...
  15    100/1000T | Yes     Auto         Disable   Auto


                  | Intrusion                           MDI   Flow  Bcast 
  Port  Type      | Alert     Enabled Status Mode       Mode  Ctrl  Limit 
...
  15    100/1000T | No        Yes     Up     1000FDx    MDI   off   0     

 Status and Counters - Port Counters for port 15                      

  Name  : data5
  Link Status     : Up  
  Totals (Since boot or last clear) :                                    
   Bytes Rx        : 2,717,700,038      Bytes Tx        : 2,179,415,738     
   Unicast Rx      : 162,116,833        Unicast Tx      : 190,514,323       
   Bcast/Mcast Rx  : 51,058             Bcast/Mcast Tx  : 35,257,606        
  Errors (Since boot or last clear) :                                    
   FCS Rx          : 0                  Drops Rx        : 0                 
   Alignment Rx    : 0                  Collisions Tx   : 0                 
   Runts Rx        : 0                  Late Colln Tx   : 0                 
   Giants Rx       : 0                  Excessive Colln : 0                 
   Total Rx Errors : 0                  Deferred Tx     : 0                 
  Rates (5 minute weighted average) :
   Total Rx  (bps) : 2428792            Total Tx  (bps) : 5019632   
   Unicast Rx (Pkts/sec) : 0            Unicast Tx (Pkts/sec) : 0         
   B/Mcast Rx (Pkts/sec) : 0            B/Mcast Tx (Pkts/sec) : 1         
   Utilization Rx  : 00.24 %            Utilization Tx  : 00.50 %


dev.em.0.%desc: Intel(R) PRO/1000 Network Connection 7.1.9
dev.em.0.%driver: em
dev.em.0.%location: slot=0 function=0
dev.em.0.%pnpinfo: vendor=0x8086 device=0x108b subvendor=0x8086 subdevice=0x0000 class=0x020000
dev.em.0.%parent: pci1
dev.em.0.nvm: -1
dev.em.0.debug: -1
dev.em.0.rx_int_delay: 0
dev.em.0.tx_int_delay: 66
dev.em.0.rx_abs_int_delay: 66
dev.em.0.tx_abs_int_delay: 66
dev.em.0.rx_processing_limit: 100
dev.em.0.flow_control: 3
dev.em.0.link_irq: 0
dev.em.0.mbuf_alloc_fail: 0
dev.em.0.cluster_alloc_fail: 0
dev.em.0.dropped: 0
dev.em.0.tx_dma_fail: 0
dev.em.0.rx_overruns: 0
dev.em.0.watchdog_timeouts: 0
dev.em.0.device_control: 1075053128
dev.em.0.rx_control: 67141634
dev.em.0.fc_high_water: 10240
dev.em.0.fc_low_water: 8740
dev.em.0.queue0.txd_head: 338
dev.em.0.queue0.txd_tail: 338
dev.em.0.queue0.tx_irq: 0
dev.em.0.queue0.no_desc_avail: 0
dev.em.0.queue0.rxd_head: 375
dev.em.0.queue0.rxd_tail: 374
dev.em.0.queue0.rx_irq: 0
dev.em.0.mac_stats.excess_coll: 0
dev.em.0.mac_stats.single_coll: 0
dev.em.0.mac_stats.multiple_coll: 0
dev.em.0.mac_stats.late_coll: 0
dev.em.0.mac_stats.collision_count: 0
dev.em.0.mac_stats.symbol_errors: 0
dev.em.0.mac_stats.sequence_errors: 0
dev.em.0.mac_stats.defer_count: 0
dev.em.0.mac_stats.missed_packets: 0
dev.em.0.mac_stats.recv_no_buff: 0
dev.em.0.mac_stats.recv_undersize: 0
dev.em.0.mac_stats.recv_fragmented: 0
dev.em.0.mac_stats.recv_oversize: 0
dev.em.0.mac_stats.recv_jabber: 0
dev.em.0.mac_stats.recv_errs: 0
dev.em.0.mac_stats.crc_errs: 0
dev.em.0.mac_stats.alignment_errs: 0
dev.em.0.mac_stats.coll_ext_errs: 0
dev.em.0.mac_stats.xon_recvd: 0
dev.em.0.mac_stats.xon_txd: 0
dev.em.0.mac_stats.xoff_recvd: 0
dev.em.0.mac_stats.xoff_txd: 0
dev.em.0.mac_stats.total_pkts_recvd: 11708739
dev.em.0.mac_stats.good_pkts_recvd: 11708739
dev.em.0.mac_stats.bcast_pkts_recvd: 2121887
dev.em.0.mac_stats.mcast_pkts_recvd: 57365
dev.em.0.mac_stats.rx_frames_64: 464757
dev.em.0.mac_stats.rx_frames_65_127: 4131944
dev.em.0.mac_stats.rx_frames_128_255: 43756
dev.em.0.mac_stats.rx_frames_256_511: 204667
dev.em.0.mac_stats.rx_frames_512_1023: 492040
dev.em.0.mac_stats.rx_frames_1024_1522: 6371575
dev.em.0.mac_stats.good_octets_recvd: 10457944503
dev.em.0.mac_stats.good_octets_txd: 2875493372
dev.em.0.mac_stats.total_pkts_txd: 7967315
dev.em.0.mac_stats.good_pkts_txd: 7967315
dev.em.0.mac_stats.bcast_pkts_txd: 121
dev.em.0.mac_stats.mcast_pkts_txd: 0
dev.em.0.mac_stats.tx_frames_64: 1739777
dev.em.0.mac_stats.tx_frames_65_127: 3871275
dev.em.0.mac_stats.tx_frames_128_255: 270032
dev.em.0.mac_stats.tx_frames_256_511: 412542
dev.em.0.mac_stats.tx_frames_512_1023: 255864
dev.em.0.mac_stats.tx_frames_1024_1522: 1417825
dev.em.0.mac_stats.tso_txd: 427046
dev.em.0.mac_stats.tso_ctx_fail: 0
dev.em.0.interrupts.asserts: 10716051
dev.em.0.interrupts.rx_pkt_timer: 1157
dev.em.0.interrupts.rx_abs_timer: 24
dev.em.0.interrupts.tx_pkt_timer: 359
dev.em.0.interrupts.tx_abs_timer: 426
dev.em.0.interrupts.tx_queue_empty: 0
dev.em.0.interrupts.tx_queue_min_thresh: 0
dev.em.0.interrupts.rx_desc_min_thresh: 0
dev.em.0.interrupts.rx_overrun: 0





-- 
Michael W. Lucas 	
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
mwlucas at BlackHelicopters.org, Twitter @mwlauthor


More information about the freebsd-questions mailing list