Linux

Table of Contents

1. CPU frequency scaling

1.1. Debian

Configuring CPU frequency scaling on Debian

sudo apt install linux-cpupower

As of <2023-12-12 mar.>, Debian does not package a .service systemd unit file (see package file list)

Create a modified version of Fedora systemd service unit at /etc/systemd/system/cpupower.service to configure the governor at boot to ondemand

[Unit]
Description=Configure CPU power related settings
After=syslog.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/cpupower frequency-set --governor ondemand
ExecStop=/usr/bin/cpupower frequency-set --governor ondemand

[Install]
WantedBy=multi-user.target

Enable the systemd service

sudo systemctl enable cpupower

1.2. Fedora

Configuring CPU frequency scaling on Fedora

sudo dnf install kernel-tools

Change the default configuration from performance to ondemand

sudo sed -i 's/performance/ondemand/' /etc/sysconfig/cpupower

Enable the systemd service

sudo systemctl enable cpupower

2. Filesystem hierarchy

The Filesystem Hierarchy Standard (FHS) can be accessed with the following commands

man hier            # shorter descriptions
man file-hierarchy  # verbose descriptions

3. Related nodes

4. References