dvfs4j – Dynamic voltage and frequency scaling for Java

dvfs4j permits to control the operating frequency of CPU cores in Linux systems, from within a Java application.

To work, it requires the Linux acpi_cpufreq driver to be enabled. Also, it requires access permissions on the files managed by acpi_cpufreq. This can be achieved, for instance, via:

sudo chown owner:ownergroup /sys/devices/system/cpu/cpu*/cpufreq/*

dvfs4j currently supports only systems equipped with a single multi-core CPU.

To get an instance of the DVFS class, please use the DVFSFactory. Refer to the test class(es) for working examples.

Check it out at https://github.com/catenamatteo/dvfs4j