9-11 September 2019
Europe/Lisbon timezone

Improving producer-consumer type workload performance

10 Sep 2019, 16:15
25m
Esmerelda-room-I&II (Corinthia Hotel Lisbon)

Esmerelda-room-I&II

Corinthia Hotel Lisbon

126

Speaker

Srinivas Pandruvada

Description

When each CPU core can independently control its performance states, then there is performance loss on some benchmarks compared to the case when there are no independent performance states. There are couple of options to indicate to the cpufreq drivers when a producer thread wakes a consumer thread: One sending some hints like we do for IO boost or give boost PELT utilization. But there is a challenge in cleanly identifying a producer/consumer relationship in scheduler code. There are several ways a thread can wait and get signaled to wake in Linux.
They don't end up in one place in scheduler code to cleanly implement. I experimented a case where futex are used between producer and consumers, where a hint is passed when cpufreq drivers to give small boost.
The idea here is to discuss:
- Shall we solve this problem?
- How to unify wait and wake up functions?
- Is it better to give a hint or boost PELT utilization of the consumer?

I agree to abide by the anti-harassment policy Yes

Primary author

Srinivas Pandruvada

Presentation Materials

There are no materials yet.
Your browser is out of date!

Update your browser to view this website correctly. Update my browser now

×