diff options
| author | Bart Van Assche <[email protected]> | 2021-09-27 15:03:27 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-10-18 06:17:02 -0600 |
| commit | bce0363ed84af8e8e27df464b2082f4b5f58b57e (patch) | |
| tree | e402c278902eab9834a9d123d00c8a3ff6e23669 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 32f64cad97187f4aed50aca3ed1b5a51a00f848b (diff) | |
block/mq-deadline: Stop using per-CPU counters
Calculating the sum over all CPUs of per-CPU counters frequently is
inefficient. Hence switch from per-CPU to individual counters. Three
counters are protected by the mq-deadline spinlock since these are
only accessed from contexts that already hold that spinlock. The fourth
counter is atomic because protecting it with the mq-deadline spinlock
would trigger lock contention.
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions