hoangt / rapl_power_meter Goto Github PK
View Code? Open in Web Editor NEWThis project forked from spandruvada/rapl_power_meter
This utility implements a software power meter using RAPL
This project forked from spandruvada/rapl_power_meter
This utility implements a software power meter using RAPL
Software Power Meter using RAPL feature This utility implements a software power meter. This uses Linux Intel® RAPL (Running Average Power Limit) driver using power capping sysfs. Intel RAPL driver and power cap sysfs is available from Linux kernel 3.13 release. Usage: rapl_power_meter [ ... ] --help Display this usage information. --version Show version. --no-daemon No daemon. --interface --hostname --index.html specify local index.html path --port By default rapl power meter starts as a Linux daemon, unless no-daemon mode is specified. The default port is 9999, which can be changed by command line option. This program binds to localhost only, unless an interface is specified via command line option. There is a default index.html is built into this program, which can be changed by command line option (A sample is provided for reference). The command line option hostname can be used to specify server path in index.html. Some proxy's expects domain names in the hostname to route requests. Since this utility only allows ready only access to power capping sysfs,so no root privilege is required. Operation This utility starts a mini http server and waits for "GET" requests. Each GET request can have one of the following paths: /rapl_domains_count : Returns number of power cap domains present. Each domain is an independent power unit, where power can be measured. /rapl_domain_name/_domain_number/_sub_domain_number_: Domains are organized in a hierarchical model. A domain can contain multiple sub domains. Refer to documentation of Linux Power Cap sysfs under kernel tree documentation. Using the path domain names can be obtained. For example /rapl_domain_name/1, returns name for domain one, and /rapl_domain_name/1/1 returns name for sub domain 1, under domain 1. /rapl_domain_energy/_domain_number/_sub_domain_number_: Returns domain energy. The path follows same model as rapl_domain_name. /rapl_domain_max_energy_domain_number/_sub_domain_number_: Returns maximum possible energy. The path follows same model as rapl_domain_name. Default index.html This utility has an in built web page, which uses above http GET requests to calculate power and display. It calculates power for all available domains and sub domains and displays in table, which is updated inline. This uses java script and AJAX to send GET request and update values. Also there is a logging feature, which when enabled logs all power and allows download of log data in a CSV format. Release: v1.0 : Base release
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.