Skip to content

Commit

Permalink
Update zeusd/src/devices/cpu/linux.rs for supporting zeusd in docker …
Browse files Browse the repository at this point in the history
…container

Co-authored-by: Jae-Won Chung <[email protected]>
  • Loading branch information
wbjin and jaywonchung authored Nov 2, 2024
1 parent 908ab1e commit ad0369d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zeusd/src/devices/cpu/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ use tokio::time::{sleep, Duration};
use crate::devices::cpu::{CpuManager, PackageInfo};
use crate::error::ZeusdError;

// NOTE: To support Zeusd deployment in a docker container, this should support
// sysfs mounts under places like `/zeus_sys`.
static RAPL_DIR: &'static str = "/sys/class/powercap/intel-rapl";

pub struct RaplCpu {
Expand Down

0 comments on commit ad0369d

Please sign in to comment.