diff options
author | Dave Kleikamp <[email protected]> | 2017-05-15 14:14:13 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-05-23 10:01:34 +0200 |
commit | c249f255aab86b9b187ba319b9d2684841ac7c8d (patch) | |
tree | 995fbe15e1c550ea496acebb8fc1c874b24f989c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 896bbb2522587e3b8eb2a0d204d43ccc1042a00d (diff) |
sched/rt: Minimize rq->lock contention in do_sched_rt_period_timer()
With CONFIG_RT_GROUP_SCHED=y, do_sched_rt_period_timer() sequentially
takes each CPU's rq->lock. On a large, busy system, the cumulative time it
takes to acquire each lock can be excessive, even triggering a watchdog
timeout.
If rt_rq->rt_time and rt_rq->rt_nr_running are both zero, this function does
nothing while holding the lock, so don't bother taking it at all.
Signed-off-by: Dave Kleikamp <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions