cd /news/developer-tools/slop-function · home topics developer-tools article
[ARTICLE · art-115918] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

slop function

A developer shared a systemd-based tool called 'slop' that caps memory usage for resource-hungry applications like VS Code and Claude. The tool uses a systemd slice with memory limits and a shell function to launch apps within that slice, preventing them from consuming excessive RAM.

read1 min views16 publishedAug 28, 2026

Place this into ~/.config/systemd/user/slop.slice

. Adjust the values for your machine.

[Slice]
MemoryHigh=50G
MemoryMax=56G
MemorySwapMax=0
TasksMax=4000

And this on .bashrc

slop () {
  systemd-run --user --scope --slice=slop.slice --quiet -- "$@"
}

Then you can run slop code

(vscode) or slop claude

and they'll not run rampant on your RAM.

Place this into ~/.config/systemd/user/slop.slice

. Adjust the values for your machine.

␃WPNCODE0␃

And this on .bashrc

␃WPNCODE1␃

Then you can run slop code

(vscode) or slop claude

and they'll not run rampant on your RAM.

── more in #developer-tools 4 stories · sorted by recency
── more on @systemd 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/slop-function] indexed:0 read:1min 2026-08-28 ·