GITv

Size gitv-web's memory limit for the 1 GB droplet

Browse files

MemoryMax=1G equalled the droplet's whole RAM, so it limited nothing. gitv-web now gets 512M soft and 640M hard, leaving room for sshd, Caddy and pushes; past the limit a runaway clone is ended rather than the machine thrashing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Author
Um9i vulgarmessiah@gmail.com
Date
22 Nov 2026, 16:29
Commit
9a916b273339
Parent
1e37b1f

1 file changed +6−4

@@ -35,10 +35,12 @@ SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
# No chown, setuid or the like: the browser and the git it runs only read.
SystemCallFilter=~@privileged
# Renders, transfers and the git commands they run share these. Raise MemoryMax on a large
# droplet serving big clones: git pack-objects does its work inside this limit.
MemoryHigh=768M
MemoryMax=1G
# Renders, transfers and the git commands they run share these. Sized for the 1 GB droplet,
# leaving room for sshd, Caddy and pushes: past MemoryMax the kernel ends a runaway clone
# (git pack-objects works inside this limit) rather than the whole machine thrashing. Raise
# both on a bigger droplet.
MemoryHigh=512M
MemoryMax=640M
TasksMax=512
[Install]