diff options
author | Shrikanth Hegde <sshegde@linux.ibm.com> | 2024-11-16 22:23:05 +0300 |
---|---|---|
committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2024-12-19 11:51:08 +0300 |
commit | 00199ed6f2ca6601b2c5856fac64132303d9437a (patch) | |
tree | 4937b100b45475323bf4dea7798b261ef111f5d3 /tools/perf/scripts/python/parallel-perf.py | |
parent | d629d7a8efc33d05d62f4805c0ffb44727e3d99f (diff) | |
download | linux-00199ed6f2ca6601b2c5856fac64132303d9437a.tar.xz |
powerpc: Add preempt lazy support
Define preempt lazy bit for Powerpc. Use bit 9 which is free and within
16 bit range of NEED_RESCHED, so compiler can issue single andi.
Since Powerpc doesn't use the generic entry/exit, add lazy check at exit
to user. CONFIG_PREEMPTION is defined for lazy/full/rt so use it for
return to kernel.
Ran a few benchmarks and db workload on Power10. Performance is close to
preempt=none/voluntary.
Since Powerpc systems can have large core count and large memory,
preempt lazy is going to be helpful in avoiding soft lockup issues.
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Ankur Arora <ankur.a.arora@oracle.com>
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241116192306.88217-2-sshegde@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions