OSDN Git Service

powerpc/64s/hash: Add stress_slb kernel boot option to increase SLB faults
authorNicholas Piggin <npiggin@gmail.com>
Mon, 11 May 2020 12:58:24 +0000 (22:58 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 May 2020 13:39:58 +0000 (23:39 +1000)
commit82a1b8ed5604cccf30b6ff03bcd61640cd26369b
tree10edf3e4db0967b8a711e0808bc35c2d050f34b6
parenta0594e89c9dc8e37883cc0d6642d1baad9c0744e
powerpc/64s/hash: Add stress_slb kernel boot option to increase SLB faults

This option increases the number of SLB misses by limiting the number
of kernel SLB entries, and increased flushing of cached lookaside
information. This helps stress test difficult to hit paths in the
kernel.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Relocate the code into arch/powerpc/mm, s/torture/stress/]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200511125825.3081305-1-mpe@ellerman.id.au
Documentation/admin-guide/kernel-parameters.txt
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/book3s64/internal.h [new file with mode: 0644]
arch/powerpc/mm/book3s64/slb.c