Skip to content

Instantly share code, notes, and snippets.

@bouroo
Created July 11, 2025 14:58
Show Gist options
  • Select an option

  • Save bouroo/c449b573c5596976d80005fbe0105d2b to your computer and use it in GitHub Desktop.

Select an option

Save bouroo/c449b573c5596976d80005fbe0105d2b to your computer and use it in GitHub Desktop.
Reduce clamd scan resources usage

Use systemd resource limits

sudo systemctl edit clamd@scan.service

Edit value

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

Reload systemd and restart the service:

sudo systemctl daemon-reload
sudo systemctl restart clamd@scan.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment