Re: [PATCH v2] selftests/x86: add "ffff8" -- kernel memory scanner

From: Alexey Dobriyan
Date: Tue Nov 01 2022 - 02:45:52 EST


On Mon, Oct 31, 2022 at 02:37:43PM -0700, Dave Hansen wrote:
> On 10/29/22 10:25, Alexey Dobriyan wrote:
> >
> > $ ./ffff8_64 -h
> > usage: ./ffff8_64 [-f] [-r] [-n N] [-s S]
> > -f: sequential scan
> > -r: random scan (default)
> > -n: use N threads (default: $(nproc))
> > -s: lowest address shift (default: 47)
> > -t: time to run (default: 256 seconds)
>
> Does this mean that if someone is just running all kernel selftests,
> they need to wait for 256 seconds for this to finish?

Yes. But low time will cover negligible amount of address space.

Is there some kind of policy to not do this? LTP surely has similar
tests for races.