Open Bug 1365095 Opened 9 years ago Updated 4 years ago

Record and possibly alert for CPU frequency changes during build

Categories

(Firefox Build System :: General, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: gps, Unassigned)

References

(Blocks 1 open bug)

Details

psutil 5.1 has a cpu_freq() API to obtain the CPU frequency. I'm not sure what all platforms this runs on and whether it returns current CPU versus maximum/baseline CPU. But it seems potentially useful to record CPU frequency during the build so we can: * Report in metrics the CPU frequency (along with model info) so we know the types of machines people are building on * Alert/identify users when thermal throttling may be coming into play (e.g. if CPU usage is ~100% and CPU frequency is significantly lower than an observed max, the CPU may be thermal throttled).
Blocks: buildmetrics
FYI we should grab the "CPU brand string", which is the bit in /proc/cpuinfo on Linux like "model name : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz". There's a small pure-Python module to do that here: https://pypi.python.org/pypi/py-cpuinfo
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.