This repository contains a set of system configurations. Some of them are inspired by CachyOS.
These settings are designed to improve system performance, speed, and resource management.
Udev rules automatically apply system configurations upon device detection or state changes.
- Audio Power Management: Manages
snd-hda-intelpower saving to mitigate audio crackling, disabling it when AC-powered and re-enabling on battery. - ZRAM Swap Optimization: Configures ZRAM to prefer anonymous page compression (
vm.swappiness=150) and disables Zswap for efficient RAM-based swap. - Device Permissions: Sets
rtc0andhpetdevice group to "audio" for proper application access. - SATA Performance: Configures SATA host link power management to
max_performance. - I/O Scheduler Assignment: Dynamically assigns optimal I/O schedulers:
bfqfor HDDs,mq-deadlinefor SATA SSDs, andnonefor NVMe SSDs. - HDD Performance Tuning: Applies
hdparmsettings (-B 254 -S 0) to rotational disks. - NVIDIA Runtime Power Management: Enables/disables NVIDIA GPU runtime power management on driver bind/unbind events.
- CPU DMA Latency Access: Sets permissions for the
cpu_dma_latencydevice.
Sysctl parameters modify kernel behavior at runtime for system-wide performance and stability.
- Memory & I/O Management: Adjusts
vm.swappiness,vfs_cache_pressure,dirty_bytes,dirty_background_bytes, anddirty_writeback_centisecsfor balanced memory usage and efficient disk I/O. Disablesvm.page-cluster. - System Stability & Security: Disables
kernel.nmi_watchdog, enableskernel.unprivileged_userns_clone, restrictskernel.kptr_restrict, and disableskernel.kexec_load_disabled. - Logging & Network: Configures
kernel.printkto hide messages from console, increasesnet.core.netdev_max_backlog, and setsfs.file-max.
Modprobe configurations control module loading and behavior for hardware-specific optimizations.
- AMD GPU Driver Enforcement: Forces
amdgpudriver for GCN 1.0+ and 2.x GPUs, blacklistingradeon. - Watchdog Module Blacklist: Prevents loading of Intel TCO and AMD SP5100 watchdog timers.
- NVIDIA Driver Optimizations: Applies parameters like
NVreg_UsePageAttributeTable=1(PAT for CPU performance),NVreg_InitializeSystemMemoryAllocations=0(disables memory clearing for GPU),NVreg_DynamicPowerManagement=0x02(mobile GPU power saving), andNVreg_RegistryDwords=RMIntrLockingMode=1(frame-pacing).
Systemd unit and configuration files for streamlined boot, resource management, and service control.
- Journal Log Limits: Sets
journaldsize limit to 50MB. - Service Timeouts: Defines
DefaultTimeoutStartSec(15s) andDefaultTimeoutStopSec(10s) for services. - File Descriptor Limits: Increases
DefaultLimitNOFILEfor both system (2048:2097152) and user (1024:1048576) services. - Time Synchronization: Configures
systemd-timesyncdwith Cloudflare and Google NTP servers. - ZRAM Generator: Configures ZRAM with
zstdorlz4compression,ramsize, andswap-priority=100. - PCI Latency Service: Enables a systemd service to apply
pci-latencyscript at boot. - User Service Resource Delegation: Delegates CPU, cpuset, IO, memory, and pids to user services.
Configurations for temporary file cleanup and Transparent Huge Page (THP) behavior.
- Coredump Retention: Clears coredumps older than 3 days.
- THP Defragmentation: Sets
transparent_hugepage/defragtodefer+madvisefor tcmalloc-using applications. - THP Shrinker: Configures
khugepaged/max_ptes_nonefor Kernel 6.12+ to optimize THP memory usage.
Boot-time scripts in /usr/bin/ that apply dynamic optimizations requiring hardware detection or runtime adjustments.
Purpose: Applies runtime optimizations that cannot be configured via static files.
Systemd Service: meowrch-optimizations.service (enabled at boot)
Optimizations Applied:
- CPU Governor Management: Automatically sets
performancegovernor for all CPU cores when available, ensuring maximum clock speeds and minimal frequency scaling latency. - Intelligent I/O Scheduler Selection:
- SSDs/NVMe: Assigns
nonescheduler (bypasses kernel I/O scheduling, direct-to-hardware) - HDDs: Assigns
mq-deadlinescheduler (optimizes for rotational media seek patterns) - Detection via
/sys/block/*/queue/rotationalattribute
- SSDs/NVMe: Assigns
- Transparent Huge Pages (THP) Tuning:
- Sets THP to
madvisemode (enabled only for applications explicitly requesting it) - Configures THP defrag to
defer(reduces memory allocation stalls)
- Sets THP to
- Network Packet Steering:
- Enables RPS (Receive Packet Steering) with
ffmask for all network interfaces - Distributes network interrupt processing across all available CPU cores
- Enables RPS (Receive Packet Steering) with
- GPU Performance Modes:
- NVIDIA: Activates persistence mode (
nvidia-smi -pm 1) and locks maximum GPU/memory clocks - AMD: Forces
manualpower profile and highest performance level via/sys/class/drm/card0/device/sysfs interface
- NVIDIA: Activates persistence mode (
Purpose: Optimizes PCI device latency timers to reduce audio crackling and improve peripheral responsiveness.
Systemd Service: pci-latency.service (enabled at boot)
Configuration Applied:
- Default PCI Devices: Sets latency timer to
20cycles (balances throughput and latency) - Root Complex (0:0): Resets latency timer to
0(immediate data transfer) - Audio Controllers (PCI class 04xx): Sets latency timer to
80cycles (prevents audio buffer underruns and glitches)
Uses setpci to directly modify PCI configuration space at boot.
Auto-start Units:
meowrch-optimizations.service- Executes/usr/bin/meowrch-apply-optimizationsaftersysinit.targetpci-latency.service- Executes/usr/bin/pci-latencybefore graphical/multi-user target
Both services run once at boot with Type=oneshot and RemainAfterExit=yes to maintain optimization state.
Purpose: Prevents complete system freezes by proactively killing memory-hungry processes before OOM killer activation.
Configuration: /etc/default/earlyoom-meowrch
Protection Strategy:
- Memory Threshold: Triggers at 5% free RAM (
-m 5) - Swap Threshold: Triggers at 10% free swap (
-s 10) - Protected Processes: System-critical daemons (
init,systemd,Xorg,ssh,NetworkManager,pipewire,wireplumber) - Kill Candidates: Memory-intensive applications prioritized (
firefox,chromium,electron,code,discord,telegram,steam) - Testing Mode: Includes
--dryrunflag by default (remove to enable actual process termination)
Automatically enabled via earlyoom.service at boot, ensuring system remains responsive during memory pressure scenarios.
Purpose: Dynamically adjusts process priorities (nice levels, I/O class, OOM scores) based on predefined rules for optimal responsiveness.
Rules: cachyos-ananicy-rules - CachyOS-curated ruleset for gaming, desktop, and server workloads
Key Features:
- Game Boost: Automatically prioritizes game processes with high CPU/IO priority
- Background Tasks: De-prioritizes compilers, package managers, and system maintenance
- Desktop Responsiveness: Keeps GUI applications responsive under heavy background load
- OOM Score Adjustment: Protects important processes from being killed first
/etc/nvidia/nvidia-application-profiles-rc.d/50-limit-free-buffer-pool.json
Saves 2-4GB VRAM on Wayland by disabling excessive buffer pool GLVidHeapReuseRatio=0 - NOT fixed in drivers 575+ (Jan 2026)
- github.com/hyprwm/Hyprland/issues/7704
- reddit.com/r/hyprland/comments/1m71ukt
Optimizations are based on projects: