Skip to content

performance-tweaks

performance-tweaks is a settings package with the description “Tweaks to improve performance”. It pulls in services that tune process priorities, interrupts and application preloading. It also ships config files that set the CPU, GPU, PCIe and disk power settings to performance.

The Dr460nized Gaming edition ships it, in the settings section of its Packages-Desktop list. No other edition includes it. For tuning on top of it, see Gaming optimizations.

FieldValue
Version2.2.0
Archany
Dependsananicy-cpp, cachyos-ananicy-rules-git, hdparm, irqbalance, preload
Conflictspowersave-tweaks, tlp, auto-cpufreq, thermald
Terminal window
sudo pacman -S performance-tweaks

The install script runs these commands on install and on every upgrade:

Terminal window
systemctl enable ananicy-cpp
systemctl enable irqbalance
systemctl enable preload

The services are enabled, not started. They start on the next boot.

PackageRole in this package
ananicy-cppDaemon that adjusts the nice levels of processes by rules. Enabled.
cachyos-ananicy-rules-gitThe CachyOS rule set for ananicy-cpp. It replaced ananicy-rules-git.
irqbalanceEnabled.
preloadEnabled.
hdparmUsed by the udev rule for rotating disks below. Not enabled as a service.

The rules live in /etc/ananicy.d/00-default/. Custom rules are covered in Ananicy rules.

All files are installed under /usr/lib.

These files write values to sysfs at boot.

FileTargetValue
tmpfiles.d/cpu-governor.conf/sys/devices/system/cpu/cpu*/cpufreq/scaling_governorperformance
tmpfiles.d/energy_performance_preference.conf/sys/devices/system/cpu/cpufreq/policy*/energy_performance_preferenceperformance
tmpfiles.d/pcie_aspm_performance.conf/sys/module/pcie_aspm/parameters/policyperformance
tmpfiles.d/power_dpm_state.conf/sys/class/drm/card0/device/power_dpm_stateperformance
tmpfiles.d/power_dpm_force_performance_level.conf/sys/class/drm/card0/device/power_dpm_force_performance_levelhigh, commented out. The file has no effect.
FileMatchesSets
udev/rules.d/30-amdgpu-pm.rulescard0 with the amdgpu driverpower_dpm_state to performance. The lines for power_dpm_force_performance_level and power_profile are commented out.
udev/rules.d/30-radeon-pm.rulescard0 with the radeon driverpower_dpm_state to performance. The same two lines are commented out.
udev/rules.d/50-sata.rulesSATA hosts (scsi_host, host*)Link power management policy to max_performance.
udev/rules.d/60-ioschedulers.rulesNVMe disksI/O scheduler none.
SATA SSDs and eMMC (sd[a-z], mmcblk*, not rotating)I/O scheduler bfq.
Rotating disks (sd[a-z])I/O scheduler bfq.
udev/rules.d/69-hdparm.rulesRotating disks (sd[a-z])Runs hdparm -B 254 -S 0 /dev/<disk> on the disk.

See udev for how rules are applied.

FileSets
modprobe.d/amdgpu.confoptions amdgpu ppfeaturemask=0xffffffff, the PowerPlay feature mask of the amdgpu driver with all bits set.

The package ships no sysctl files.

A package update restores the files in /usr/lib, so editing or deleting them does not last. Mask a tmpfiles entry with a link to /dev/null of the same name in /etc/tmpfiles.d/. For example, for the energy performance preference:

Terminal window
sudo ln -s /dev/null /etc/tmpfiles.d/energy_performance_preference.conf

This file conflicts with sched_ext CPU schedulers. See Gaming optimizations for that case.

Terminal window
sudo pacman -R performance-tweaks

The install script has no removal step. ananicy-cpp, irqbalance and preload stay enabled until you disable or remove them.