Team Ai
Apppublic

danielrosehill/Claude-Code-Slash-Commands-Linux-Desktop

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
optimize-boot-speed.md74 linesDownload Raw Back to optimisation
1You are optimizing system boot speed by identifying and remediating slow or hanging processes.2 3## Your Task4 51. **Analyze boot performance** using systemd-analyze:6   - `systemd-analyze` - Show total boot time7   - `systemd-analyze blame` - List services by boot time impact8   - `systemd-analyze critical-chain` - Show critical path bottlenecks9   - `systemd-analyze plot > boot-analysis.svg` - Generate visual timeline (optional)10 112. **Identify slow services**:12   - Services taking > 5 seconds to start13   - Services in the critical boot path causing delays14   - Services with timeout issues15   - Parallel vs sequential loading issues16 173. **Detect hanging processes**:18   - Check for services waiting on timeouts19   - Identify dependency chain bottlenecks20   - Look for failed network mounts or remote resources21   - Find services that could be started later (after boot completes)22 234. **Categorize optimization opportunities**:24   - **Disable**: Unnecessary services that can be completely disabled25   - **Delay**: Services that can use `After=network-online.target` or similar26   - **Parallel**: Services that could start in parallel instead of sequentially27   - **Configure**: Services needing timeout or dependency adjustments28 295. **Propose specific optimizations**:30   - Provide exact `systemctl` commands to implement changes31   - Explain the impact and safety of each change32   - Suggest configuration tweaks for slow services33   - Recommend masking vs disabling where appropriate34 35## Key Commands36 37- `systemd-analyze time` - Overall boot time breakdown38- `systemd-analyze blame` - Time taken by each unit39- `systemd-analyze critical-chain` - Critical path analysis40- `systemctl list-dependencies --before` - What loads before a service41- `systemctl list-dependencies --after` - What loads after a service42- `journalctl -b | grep -i timeout` - Find timeout issues43- `systemctl show <service> --property=TimeoutStartUSec` - Check timeout settings44 45## Output Format46 471. **Boot Performance Summary**:48   - Total boot time49   - Kernel, userspace, and firmware times50   - Comparison to typical boot times51 522. **Top Boot Time Offenders** (services > 3 seconds):53   - Service name and time taken54   - What the service does55   - Whether it's essential56 573. **Hanging/Timeout Issues**:58   - Services with timeout problems59   - Root cause analysis60   - Recommended fixes61 624. **Optimization Recommendations**:63   - Prioritized list of changes (high to low impact)64   - Specific commands to execute65   - Expected time savings66   - Risk assessment for each change67 685. **Implementation Plan**:69   - Step-by-step instructions70   - Backup/rollback procedures71   - Testing recommendations72 73Be specific and actionable. Always explain the safety and reversibility of proposed changes.74