pub fn monitor_loop( sched: &mut Scheduler<'_>, shutdown: &'static AtomicBool, verbose: bool, nr_cpus: u64, phi_scale: Option<u64>, ) -> Result<bool>