Re: [PATCH-next 2/5] lib/test_vmalloc.c: add a new 'nr_threads' parameter

From: Andrew Morton
Date: Fri Apr 02 2021 - 17:59:39 EST


On Fri, 2 Apr 2021 22:22:34 +0200 "Uladzislau Rezki (Sony)" <urezki@xxxxxxxxx> wrote:

> By using this parameter we can specify how many workers are
> created to perform vmalloc tests. By default it is one CPU.
> The maximum value is set to 1024.
>
> As a result of this change a 'single_cpu_test' one becomes
> obsolete, therefore it is no longer needed.
>

Why limit to 1024? Maybe testers want more - what's the downside to
permitting that?

We may need to replaced that kcalloc() with kmvalloc() though...