meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:cpufreq [2016/11/14 13:04] niziaklinux:cpufreq [2025/12/11 07:49] (current) niziak
Line 1: Line 1:
 +====== cpufreq ======
 +
 +===== sys interface =====
 +<code bash>
 +ls -l /sys/devices/system/cpu/cpu0/cpufreq/
 +-r--r--r-- 1 root root 4096 lis 14 12:18 affected_cpus             0
 +-r--r--r-- 1 root root 4096 lis 14 13:08 bios_limit                3400000
 +-rw-r--r-- 1 root root 4096 lis 14 13:08 cpb
 +-r-------- 1 root root 4096 lis 14 12:46 cpuinfo_cur_freq
 +-r--r--r-- 1 root root 4096 lis 14 12:18 cpuinfo_max_freq
 +-r--r--r-- 1 root root 4096 lis 14 12:18 cpuinfo_min_freq
 +-r--r--r-- 1 root root 4096 lis 14 12:46 cpuinfo_transition_latency
 +-r--r--r-- 1 root root 4096 lis 14 13:08 freqdomain_cpus
 +-r--r--r-- 1 root root 4096 lis 14 12:46 related_cpus
 +-r--r--r-- 1 root root 4096 lis 14 12:18 scaling_available_frequencies
 +-r--r--r-- 1 root root 4096 lis 14 12:18 scaling_available_governors
 +-r--r--r-- 1 root root 4096 lis 14 12:46 scaling_cur_freq          1400000
 +-r--r--r-- 1 root root 4096 lis 14 12:46 scaling_driver            acpi-cpufreq
 +-rw-r--r-- 1 root root 4096 lis 14 12:19 scaling_governor          userspace
 +-rw-r--r-- 1 root root 4096 lis 14 12:47 scaling_max_freq
 +-rw-r--r-- 1 root root 4096 lis 14 12:47 scaling_min_freq
 +-rw-r--r-- 1 root root 4096 lis 14 13:08 scaling_setspeed
 +drwxr-xr-x 2 root root    0 lis 14 12:20 stats
 +</code>
 +
 +List current governors:
 +<code bash>
 +cat /sys/devices/system/cpu/cpu?/cpufreq/scaling_governor
 +</code>
 +
 <code> <code>
-  cpufreqd.service                                                                                      loaded active running   LSB: start and stop cpufreqd +cpufreqd.service                                                                                      loaded active running   LSB: start and stop cpufreqd 
-  cpufrequtils.service                                                                                  loaded active exited    LSB: set CPUFreq kernel parameters +cpufrequtils.service                                                                                  loaded active exited    LSB: set CPUFreq kernel parameters 
-  loadcpufreq.service                                                                                   loaded active exited    LSB: Load kernel modules needed to enable cpufreq scaling+loadcpufreq.service                                                                                   loaded active exited    LSB: Load kernel modules needed to enable cpufreq scaling
 </code> </code>
  
Line 18: Line 48:
 </code> </code>
  
-===== cpufrequtils ====== +
-It provides: +
-<code> +
-/etc/init.d/cpufrequtils +
-/etc/init.d/loadcpufreq +
-cpufreq-set +
-cpufreq-info +
-cpufreq-aperf +
-</code> +
-'' +
-utilities to deal with the cpufreq Linux kernel feature +
- This package contains two utilities for inspecting and setting the +
- CPU frequency through both the sysfs and procfs CPUFreq kernel +
- interfaces. +
- . +
- By default, it also enables CPUFreq at boot time if the correct CPU +
- driver is found. +
-'' +
-<code>/etc/default/cpufrequtils</code>+