DragonFly BSD
DragonFly commits List (threaded) for 2012-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: bnx: Improve tiny packets transmission performance on low frequency CPU


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Nov 2012 22:37:51 -0800 (PST)

commit c9b7f592671d46a6f91f2054b49ef1350d7475cb
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Sun Nov 25 14:08:31 2012 +0800

    bnx: Improve tiny packets transmission performance on low frequency CPU
    
    - Reduce TX coalesce BDs from 128 to 64.  This improves tiny packets
      transmission performance on AMD970@2200Mhz a little bit (1.40Mpps
      -> 1.48Mpps)
    - Update TX PROD register a little bit often; mainly to improve timeliness
      of packets transmission:
      The TX PROD register is updated after certain amount of TX descriptors
      are added to the hardware TX ring.  The default value of the amount of
      TX descriptors are 8.  This value could be further tuned by per-device
      sysctl node hw.bnxX.tx_wreg.  The default value greatly improves tiny
      packets performance on AMD970@800Mhz (780Kpps -> 1.11Mpps) and it does
      not increase CPU usage on AMD970@3500Mhz (CPU usage stays @31%).

Summary of changes:
 sys/dev/netif/bnx/if_bnx.c    |   45 +++++++++++++++++++++++++---------------
 sys/dev/netif/bnx/if_bnxvar.h |    6 ++--
 2 files changed, 31 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c9b7f592671d46a6f91f2054b49ef1350d7475cb


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]