Kernel params, swap config, I/O scheduler, GPU memory split
Ships in home-lab-developer-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guide the user through optimizing their Raspberry Pi's performance for home lab workloads, covering kernel parameters, swap configuration, I/O scheduling, GPU memory allocation, and resource monitoring.
homelab_sshTest)Optional:
homelab_piStatus to check CPU temp, memory usage, and throttle state.homelab_kernelInfo to see current kernel version and boot parameters.zram or dphys-swapfile in boot params and loaded modules./boot/firmware/config.txt: gpu_mem=16vm.swappiness=10 in /etc/sysctl.d/99-tuning.confvm.swappiness=1 (minimize writes)sudo apt install zram-tools
echo 'ALGO=zstd' | sudo tee /etc/default/zramswap
echo 'PERCENT=50' | sudo tee -a /etc/default/zramswap
sudo systemctl restart zramswap
cat /sys/block/mmcblk0/queue/scheduler (or sda for USB)mq-deadline is optimalnone (noop) is optimalecho 'ACTION=="add|change", KERNEL=="mmcblk*", ATTR{queue/scheduler}="mq-deadline"' | \
sudo tee /etc/udev/rules.d/60-scheduler.rules
Storage=volatile in /etc/systemd/journald.confcat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governorperformance governor (at cost of more heat)schedutil (default, scales with load)homelab_piStatus -- if yes, improve cooling before overclockingfs.inotify.max_user_watches=524288 in sysctlfs.inotify.max_user_instances=512net.ipv4.neigh.default.gc_thresh3=4096overlay2 is optimalhomelab_systemdServices with unit: "docker.service" to verify Docker health/boot/firmware/config.txt for boot-time hardware config/etc/sysctl.d/ for kernel runtime parametersvcgencmd commands for Pi-specific hardware infoUser: My Pi feels sluggish when running all 13 containers. How can I optimize it?
Assistant:
Let me check the current system state.
Calls homelab_piStatus
CPU temp is 62C (fine), memory is 7.2GB/8GB used (very high), no throttling. Memory pressure is the bottleneck.
Let me check the kernel config.
Calls homelab_kernelInfo
GPU memory is set to 76MB (default). Boot params show dphys-swapfile active with 200MB swap. Let me check systemd for zram.
Let me check swap and Docker status.
Calls homelab_systemdServices with unit "zramswap.service"
zram is not installed. Here's what I recommend:
/boot/firmware/config.txtvm.swappiness=10 to keep more data in RAMfs.inotify.max_user_watches=524288homelab_kernelInfo -- check kernel version, boot params, and loaded modules to identify tuning opportunitieshomelab_piStatus -- monitor CPU temp, memory, disk, and throttle state to find bottleneckshomelab_systemdServices -- check service status (Docker, zram, swap) and timer configurationsgpu_mem=16 breaks any GUI/display output -- only do this on headless serversconfig.txt only apply after a rebootpi-system-management skill for hardware monitoring and reboot managementos-update-management skill for kernel updates that may improve performancedocker-compose-stacks skill for managing container resource allocationstorage-management skill for disk I/O and volume managementWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/home-lab-developer-tools:performance-tuningfrom home-lab-developer-tools
home-lab-developer-tools@nicu-ai-tools is listed by mascatunike/nicu-ai-tools — review the source before installing
npx claudepluginhub mascatunike/nicu-ai-tools --plugin home-lab-developer-tools22 skills in this plugin
/alerting-rulesWrite Prometheus alerting rules and configure Alertmanager routing for home lab notifications./ansible-workflowsWrite and run Ansible playbooks for multi-node home lab provisioning and configuration management./backup-recoveryConfigure and manage restic backups including scheduling, verification, and disaster recovery./certificate-managementLet's Encrypt, self-signed certs, renewal automation, NPM cert integration/disaster-recoveryFull Pi disaster recovery -- backup verification, restore workflows, SD card imaging, and migration checklists/dns-managementManage AdGuard Home DNS filtering, blocklists, local DNS records, and query log analysis.