Re: [PATCH RFC v2 05/10] slab: switch percpu sheaves locking to localtry_lock

2025-02-24 Thread Harry Yoo
On Fri, Feb 14, 2025 at 05:27:41PM +0100, Vlastimil Babka wrote: > Instead of local_lock_irqsave(), use localtry_trylock() when potential > callers include irq context, and localtry_lock() otherwise (such as when > we already know the gfp flags allow blocking). > > This should reduce the locking (

Re: [PATCH RFC v2 05/10] slab: switch percpu sheaves locking to localtry_lock

2025-02-22 Thread Suren Baghdasaryan
On Fri, Feb 14, 2025 at 8:27 AM Vlastimil Babka wrote: > > Instead of local_lock_irqsave(), use localtry_trylock() when potential > callers include irq context, and localtry_lock() otherwise (such as when > we already know the gfp flags allow blocking). > > This should reduce the locking (due to i

[PATCH RFC v2 05/10] slab: switch percpu sheaves locking to localtry_lock

2025-02-14 Thread Vlastimil Babka
Instead of local_lock_irqsave(), use localtry_trylock() when potential callers include irq context, and localtry_lock() otherwise (such as when we already know the gfp flags allow blocking). This should reduce the locking (due to irq disabling/enabling) overhead. Failing to use percpu sheaves in a