• Rusty Russell's avatar
    [PATCH] Futex lock division · b58da0d0
    Rusty Russell authored
    From: "Hu, Boris" <boris.hu@intel.com>
    
    Andrew reminded me of this.
    
    Simple change to split the futex lock into a per-hashchain lock.
    Don't bother cacheline aligning: Jamie points out that increasing
    FUTEX_HASHBITS would have more payoff.
    
    Ulrich Drepper reports 6% improvement in on a 4way futex-thrashing
    benchmark.
    b58da0d0
futex.c 14.4 KB