systemd-run

Community

Limit memory and CPU for tests with systemd-run.

Authorfasterthanlime
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Run commands with strict memory and CPU limits using systemd's cgroup integration to reproduce limits, prevent runaway tests, and simulate CI environments.

Core Features & Use Cases

  • Memory Limits: MemoryMax, MemorySwapMax to cap RAM and swap.
  • CPU Quotas: CPUQuota and related properties to throttle CPU usage.
  • Combined Limits: Apply multiple constraints for realistic test environments.
  • Wrapper Integration: Use with Nextest wrapper scripts for instrumentation.

Quick Start

MEMORY_LIMIT=512M cargo nextest run --profile limited

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: systemd-run
Download link: https://github.com/fasterthanlime/_claude/archive/main.zip#systemd-run

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository