Re: [PATCH 2/2] block/mq-deadline: fallback to per-cpu insertion buckets under contention

Keith Busch
2024-01-18T18:25:46Z

On Thu, Jan 18, 2024 at 11:04:57AM -0700, Jens Axboe wrote:
> +#define DD_CPU_BUCKETS 32
> +#define DD_CPU_BUCKETS_MASK (DD_CPU_BUCKETS - 1)

A bit of wasted space on machines with < 32 CPUs, no? Sure, it's not
much and the fixed size makes the implementation simpler, but these add
up.