A Java library to control CPU frequency scaling
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/eu/nicecode/dvfs4j
test/eu/nicecode/dvfs4j
README.md
pom.xml

README.md

dvfs4j

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.