]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89fc1307b451721452d026dd47b74e4ac9468501
tree10edf3e4db0967b8a711e0808bc35c2d050f34b6
parentfabda6df9351f30e0dd14a72702d87340ea6495d
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