You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,4 +54,14 @@ If this fails we measure all available GPUs.
54
54
```
55
55
echo "your_username ALL=(ALL) NOPASSWD: /usr/bin/powermetrics" | sudo tee -a /etc/sudoers
56
56
```
57
-
- Alternatively, one can run **carbontracker** with root privileges.
57
+
- Alternatively, one can run **carbontracker** with root privileges.
58
+
59
+
## Running **carbontracker** in Virtual Machines
60
+
61
+
In virtual machines or containerized environments where direct power measurements are unavailable, **carbontracker** estimates power consumption using [CPU TDP values](https://github.com/mlco2/codecarbon/blob/master/codecarbon/data/hardware/cpu_power.csv):
62
+
63
+
- Identifies the CPU model when possible
64
+
- Uses 50% of the CPU's TDP value to estimate power consumption at 50% utilization
65
+
- Falls back to 50% of average TDP across known CPUs if the specific model isn't found
66
+
67
+
While less precise than direct measurements, this provides reasonable power consumption estimates in virtualized environments.
0 commit comments