starvation_monitor: Implement the conservative mode

Instead of dispatching one thread per CPU, monitors all CPUs from a
single thread. Once a starving thread is detected for a half of the
threshold time, start a thread to monitor that CPU.

If a thread monitoring a CPU detects that there is nothing to do for 10
seconds, it stops monitoring the CPU, returning to monitoring for the
main thread.

the -A/--aggressive_mode knob forces the creation of a monitoring thread
per CPU.

Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
1 file changed
tree: 42021cc5b828cc05d4c41607cc37c3b5646da3d8
  1. src/
  2. Makefile
  3. README.md
README.md

starvation_monitor