git: kevent: Reduce kqueue token contention

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Nov 29 23:42:16 PST 2015


commit 7a3794c6b374b9b340c104ad871c23fb938bc531
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Nov 30 11:42:42 2015 +0800

    kevent: Reduce kqueue token contention
    
    By reducing kqueue token coverage on kern_event() path.
    
    This halves the pool token contention for tool/kq_connect_client
    (from 100Kcollisions/s to 50Kcollision/s, @315Kconns/s).  And
    also reduces pool token contention for tool/kq_accept_server
    noticeablely.

Summary of changes:
 sys/kern/kern_event.c | 121 +++++++++++++++++++++++---------------------------
 1 file changed, 56 insertions(+), 65 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7a3794c6b374b9b340c104ad871c23fb938bc531


-- 
DragonFly BSD source repository



More information about the Commits mailing list