- Remove unused overlay filesystem configuration and references - Remove overlayfs sections from all profile JSON files - Remove OVERLAY_ENABLED/OVERLAY_PROTECT_CONFIGS from config - Update documentation to focus on tmpfs optimization - Add overlay detection and removal functionality for cleanup - Add remove_overlays() function with safe unmounting - Add overlay status reporting in final optimization summary - Add test-overlay-detection.sh for testing detection logic - Simplify codebase by removing complex unused features - Focus on proven desktop optimizations (tmpfs, zram, kernel)
41 lines
1.6 KiB
Plaintext
41 lines
1.6 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
|
|
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 |