git: emx: Add EMX_TSO_DEBUG

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Aug 1 02:17:30 PDT 2012


commit 0c0e1638b808d58479e41e5cd14e1354db2154b5
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Aug 1 17:09:58 2012 +0800

    emx: Add EMX_TSO_DEBUG
    
    It is used to measure TSO context reuse rate.  Setting up TX context
    interferes TX data fetching pipelining, thus reduces performance, so
    TX context setting up should be avoided as much as possible.
    
    According to limited measurement:
    - 1 one direction TX stream, reuse rate is ~40%
    - 16 one direction TX streams, reuse rate is ~20%
    - 16 bi-direction streams (total 32), reuse rate is ~10%

Summary of changes:
 sys/conf/options           |    1 +
 sys/config/LINT            |    1 +
 sys/config/LINT64          |    1 +
 sys/dev/netif/emx/if_emx.c |   10 ++++++++++
 sys/dev/netif/emx/if_emx.h |    2 ++
 5 files changed, 15 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c0e1638b808d58479e41e5cd14e1354db2154b5


-- 
DragonFly BSD source repository





More information about the Commits mailing list