Skip to content

Instantly share code, notes, and snippets.

@bouroo
Created July 11, 2025 14:58
Show Gist options
  • Save bouroo/c449b573c5596976d80005fbe0105d2b to your computer and use it in GitHub Desktop.
Save bouroo/c449b573c5596976d80005fbe0105d2b to your computer and use it in GitHub Desktop.
Reduce clamd scan resources usage

Use systemd resource limits

sudo systemctl edit [email protected]

Edit value

[Service]
CPUQuota=50%
Nice=10
IOSchedulingClass=2
IOSchedulingPriority=7

Reload systemd and restart the service:

sudo systemctl daemon-reload
sudo systemctl restart [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment