- Intelligent hardware detection and analysis - Modular optimization system with profiles - Automatic tmpfs, zram, and kernel tuning - Real-time monitoring and health checks - Support for desktop, gaming, and development workloads - Safe backup and rollback capabilities - Systemd integration for persistent optimizations
43 lines
1.7 KiB
Plaintext
43 lines
1.7 KiB
Plaintext
# Configuration Template
|
|
# Copy this file to /var/lib/system-tuning/configs/custom.conf and modify
|
|
|
|
# Global settings
|
|
PROFILE="desktop" # desktop, gaming, development, minimal
|
|
DRY_RUN=false # Test mode - show what would be done
|
|
VERBOSE=true # Detailed output
|
|
BACKUP_ENABLED=true # Create backups before changes
|
|
|
|
# Memory settings
|
|
ZRAM_ENABLED=true # Enable zram compression
|
|
ZRAM_SIZE="auto" # Size: auto, 4G, 8G, 12G, etc.
|
|
ZRAM_ALGORITHM="lz4" # Compression: lz4, zstd, lzo
|
|
|
|
# tmpfs settings
|
|
TMPFS_BROWSER_CACHE=true # Browser cache in RAM
|
|
TMPFS_IDE_CACHE=true # IDE/editor cache in RAM
|
|
TMPFS_PACKAGE_CACHE=true # Package manager cache in RAM
|
|
TMPFS_BUILD_CACHE=false # Build cache in RAM (development)
|
|
|
|
# Kernel tuning
|
|
TUNE_KERNEL_PARAMS=true # Optimize kernel parameters
|
|
CUSTOM_SWAPPINESS="" # Leave empty for profile default
|
|
CUSTOM_DIRTY_RATIO="" # Leave empty for profile default
|
|
|
|
# Advanced settings
|
|
OVERLAY_ENABLED=false # Enable overlay filesystems
|
|
OVERLAY_PROTECT_CONFIGS=false # Protect system configs with overlay
|
|
SYSTEMD_SERVICE=true # Install systemd service
|
|
|
|
# Exclusions (space-separated paths)
|
|
EXCLUDE_PATHS="/home/user/important /opt/critical"
|
|
|
|
# Custom tmpfs mounts (format: path:size)
|
|
CUSTOM_TMPFS="
|
|
/tmp/custom-cache:1G
|
|
/var/tmp/builds:2G
|
|
"
|
|
|
|
# Performance monitoring
|
|
ENABLE_MONITORING=true # Enable performance monitoring
|
|
LOG_METRICS=true # Log performance metrics
|
|
BENCHMARK_ON_COMPLETION=false # Run benchmark after optimization |