Log whether the PSI trigger armed
Browse files at this commit3b06babc056d3444540280dc4ef288680aa4d9d9Parent: c9518e0- fix
- log whether the PSI trigger armed
1 changed file +2 -0
crates/forge-runner/src/pressure.rsmodified+2 -0
| @@ -273,10 +273,12 @@ impl Pressure { | |||
| 273 | let this = Arc::new(Self::at(dir, budget)); | 273 | let this = Arc::new(Self::at(dir, budget)); |
| 274 | match Watcher::open(&this.dir) { | 274 | match Watcher::open(&this.dir) { |
| 275 | Ok(watcher) => { | 275 | Ok(watcher) => { |
| 276 | + let psi = watcher.psi_armed; | ||
| 276 | tokio::spawn(this.clone().watch(watcher, shutdown)); | 277 | tokio::spawn(this.clone().watch(watcher, shutdown)); |
| 277 | tracing::info!( | 278 | tracing::info!( |
| 278 | box_dir = %this.dir.display(), | 279 | box_dir = %this.dir.display(), |
| 279 | budget = %forge_ci::size::format_size(budget), | 280 | budget = %forge_ci::size::format_size(budget), |
| 281 | + psi, | ||
| 280 | "memory control is on" | 282 | "memory control is on" |
| 281 | ); | 283 | ); |
| 282 | Some(this) | 284 | Some(this) |