LAB13.01-surveillance matériel et énergétique : Différence entre versions
| (Une révision intermédiaire par un autre utilisateur non affichée) | |||
| Ligne 3 : | Ligne 3 : | ||
* Open hardware | * Open hardware | ||
* [https://bpetit.nce.re/fr/2021/01/scaphandre-v0.1.1-mesurer-la-consommation-d%C3%A9nergie-des-coulisses-du-num%C3%A9rique/ Scaphandre] | * [https://bpetit.nce.re/fr/2021/01/scaphandre-v0.1.1-mesurer-la-consommation-d%C3%A9nergie-des-coulisses-du-num%C3%A9rique/ Scaphandre] | ||
| + | On veut installer Scaphandre sur un ordinateur LINUX, pré-requis, pour le faire fonctionner. Il s'agit d'un logiciel récent. | ||
| + | |||
| + | |||
| + | == notes en vrac à structurer == | ||
| + | |||
| + | INSTALL SCAPHANDRE | ||
| + | |||
| + | https://hubblo-org.github.io/scaphandre-documentation/tutorials/quickstart.html | ||
| + | |||
| + | |||
| + | Quickstart | ||
| + | Depending on your kernel version, you could need to modprobe the module intel_rapl or intel_rapl_common first: | ||
| + | modprobe intel_rapl_common # or intel_rapl for kernels < 5 | ||
| + | To quickly run scaphandre in your terminal you may use docker: | ||
| + | docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -ti hubblo/scaphandre stdout -t 15 | ||
| + | |||
| + | |||
| + | he prometheus exporter, for example, allows you to expose power consumption metrics as an HTTP endpoint that can be scrapped by a prometheus instance: | ||
| + | docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -p 8080:8080 -ti hubblo/scaphandre prometheus | ||
| + | |||
| + | Promethus = interface graphique utilisee | ||
Version actuelle datée du 3 septembre 2021 à 15:19
On a vu 3 logiciels qui peuvent nous indiquer notre consommation d'énergie:
- Power Top est un logiciel qui ne fonctionne que sur les ordinateurs portables.
- Open hardware
- Scaphandre
On veut installer Scaphandre sur un ordinateur LINUX, pré-requis, pour le faire fonctionner. Il s'agit d'un logiciel récent.
notes en vrac à structurer[modifier]
INSTALL SCAPHANDRE
https://hubblo-org.github.io/scaphandre-documentation/tutorials/quickstart.html
Quickstart
Depending on your kernel version, you could need to modprobe the module intel_rapl or intel_rapl_common first:
modprobe intel_rapl_common # or intel_rapl for kernels < 5
To quickly run scaphandre in your terminal you may use docker:
docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -ti hubblo/scaphandre stdout -t 15
he prometheus exporter, for example, allows you to expose power consumption metrics as an HTTP endpoint that can be scrapped by a prometheus instance:
docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -p 8080:8080 -ti hubblo/scaphandre prometheus
Promethus = interface graphique utilisee