git: kqueue: Use wakeup_one() to wake up kqueue scanner

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Dec 31 02:29:06 PST 2015


commit 7adc569540a5968e41789d9ddeafc3534b23d464
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Dec 31 18:18:04 2015 +0800

    kqueue: Use wakeup_one() to wake up kqueue scanner
    
    It hard to imagine an application to have multiple threads to
    wait on one kqueue.  However, even if this kind of application
    existed, wakeup_one() would not break them (admittedly they
    might suffer uneven workload distribution).
    
    In case the old behaviour is still wanted, sysctl
    kern.kq_wakeup_one can be changed to 0.
    
    This saves us 30Kipis/s ~ 50Kipis/s in kqueue+accept test.

Summary of changes:
 sys/kern/kern_event.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list