Complete Linux system optimization suite with tmpfs, zram, and German locale support
- Fixed missing setup_tmpfs() function that was causing silent failures - Added comprehensive system scanning for browsers, IDEs, gaming caches - Implemented detailed optimization information display for transparency - Added German locale compatibility for 'free' command (Speicher: vs Mem:) - Fixed division by zero errors in RAM calculations - Created tmpfs-info.sh helper script for detailed status reporting - Enhanced scanning to work on already-optimized systems - Added comprehensive optimization breakdowns with purpose explanations
This commit is contained in:
81
profiles/desktop.json
Normal file
81
profiles/desktop.json
Normal file
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"_comment": "Desktop/Workstation Optimization Profile - Optimized for general desktop use with focus on responsiveness",
|
||||
"profile_name": "desktop",
|
||||
"description": "General desktop optimization for workstations",
|
||||
"target_systems": [
|
||||
"Desktop computers",
|
||||
"Workstations",
|
||||
"General purpose laptops"
|
||||
],
|
||||
"requirements": {
|
||||
"min_ram_gb": 4,
|
||||
"recommended_ram_gb": 8
|
||||
},
|
||||
"optimizations": {
|
||||
"zram": {
|
||||
"enabled": true,
|
||||
"size_formula": "min(ram_gb * 0.75, 12)G",
|
||||
"compression_algorithm": "lz4"
|
||||
},
|
||||
"tmpfs": {
|
||||
"browser_cache": {
|
||||
"enabled": true,
|
||||
"size": "auto",
|
||||
"paths": [
|
||||
"/tmp/tmpfs-cache/browser"
|
||||
]
|
||||
},
|
||||
"ide_cache": {
|
||||
"enabled": true,
|
||||
"size": "1G",
|
||||
"paths": [
|
||||
"/tmp/tmpfs-cache/vscode",
|
||||
"/tmp/tmpfs-cache/jetbrains"
|
||||
]
|
||||
},
|
||||
"package_cache": {
|
||||
"enabled": true,
|
||||
"size": "2G",
|
||||
"bind_mounts": [
|
||||
"/var/cache/apt",
|
||||
"/var/cache/pacman/pkg"
|
||||
]
|
||||
},
|
||||
"thumbnails": {
|
||||
"enabled": true,
|
||||
"size": "256M",
|
||||
"paths": [
|
||||
"/tmp/tmpfs-cache/thumbnails"
|
||||
]
|
||||
}
|
||||
},
|
||||
"kernel_parameters": {
|
||||
"vm.swappiness": 5,
|
||||
"vm.dirty_ratio": 5,
|
||||
"vm.dirty_background_ratio": 2,
|
||||
"vm.vfs_cache_pressure": 50,
|
||||
"vm.page-cluster": 0,
|
||||
"net.core.netdev_max_backlog": 5000,
|
||||
"net.core.rmem_max": 16777216,
|
||||
"net.core.wmem_max": 16777216
|
||||
},
|
||||
"overlayfs": {
|
||||
"enabled": false,
|
||||
"protect_configs": false
|
||||
}
|
||||
},
|
||||
"sizing_rules": {
|
||||
"browser_cache": {
|
||||
"ram_4gb": "512M",
|
||||
"ram_8gb": "1G",
|
||||
"ram_16gb": "2G",
|
||||
"ram_32gb": "4G"
|
||||
},
|
||||
"zram_size": {
|
||||
"ram_4gb": "3G",
|
||||
"ram_8gb": "6G",
|
||||
"ram_16gb": "12G",
|
||||
"ram_32gb": "16G"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user