shortlist / code /bin /capped
JagritGumber's picture
Add episodes, verdicts, census, fixes, code, training analysis and dataset card
a2b0c04 verified
Raw History Blame Contribute Delete
347 Bytes
#!/bin/sh
# Run a command inside the shortlist.slice cgroup: everything Shortlist runs shares one 3 GB memory cap,
# so the rest of the machine keeps its memory. Set with:
# systemctl --user set-property --runtime shortlist.slice MemoryMax=3G MemoryHigh=2800M MemorySwapMax=0
exec systemd-run --user --scope --slice=shortlist.slice --quiet "$@"