zram-optimizerlisted
Install: claude install-skill mdnaimul22/human-skills
# zram-optimizer — High-Performance Swap Engine Skill
## When to Use
Activate this skill when:
- Setting up or replacing swap on a Linux system
- Optimizing zram for maximum responsiveness
- Benchmarking compression algorithms (`lz4`, `lzo-rle`, `zstd`)
- Tuning kernel VM parameters (`swappiness`, `page-cluster`)
- Replacing slow disk-based swap with in-memory compressed swap
- The user wants a "raw-RAM-like" or "near-RAM-speed" swap experience
## Overview
This skill provides a complete, **deterministic**, data-driven workflow for deploying a high-performance zram swap engine on any Linux system. It follows the **OpenEvolve pattern**: build an evaluator, test all combinations, and deploy the empirically proven winner.
### Key Principle: No Guesswork
Instead of using generic defaults, this skill:
1. **Detects** the system's hardware (RAM, CPU cores)
2. **Benchmarks** every relevant zram parameter combination
3. **Ranks** configurations by a deterministic fitness score
4. **Deploys** the objectively fastest profile
## Prerequisites
### Install `zram-config` from GitHub
```bash
# 1. Clone the repository
sudo git clone https://github.com/ecdye/zram-config /opt/zram-config
# 2. Install
cd /opt/zram-config
sudo ./install.bash
# 3. Verify installation
systemctl status zram-config
cat /etc/ztab
```
> [!IMPORTANT]
> The `/etc/ztab` file is the single source of truth for zram configuration. All changes are made here and applied by `systemctl restart zram-config`.
### Syste