Skip to content

Commit

Permalink
fix(proxmox): power saving
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Sep 12, 2023
1 parent 3613bd5 commit b678815
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Virtualization/ProxMox/proxmox-cpu-consumption.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
```bash
cpufreq-info -g
```
4. Set the governor to `powersave` via `cpufreq-set -g powersave`
4. See current governor
```bash
cpufreq-info -p
``
5. Set the governor to `powersave` via `cpufreq-set -g powersave`
```bash
cpufreq-set -g powersave
```
6. Make it persistent
```bash
echo 'GOVERNOR="powersave"' | tee /etc/default/cpufrequtils
```

51 changes: 51 additions & 0 deletions Virtualization/ProxMox/proxmox-energy-consumption.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Reduce energy consumption of Proxmox

## Powertop

[Powertop](https://wiki.archlinux.org/title/powertop) is a tool to diagnose issues with power consumption and power management.
It can also be used to tune power management settings.

### Install powertop

```bash
apt install powertop
```

### Run powertop calibration

Calibration will toggle various functions on and off to determine the best settings for your system.
So it is best to run this when the system is idle.

```bash
powertop --calibrate
```

### Run powertop to see recommendations

With <TAB> you can switch between the different tabs.

```bash
powertop
```

### Auto tune power management settings (not reboot persistent)

```bash
powertop --auto-tune
```

### Systemd service to auto tune power management settings (reboot persistent)

```bash
cat << EOF > /etc/systemd/system/powertop.service
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
```

0 comments on commit b678815

Please sign in to comment.