meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:clamav [2022/05/11 07:21] niziaklinux:clamav [2022/05/11 07:27] (current) niziak
Line 5: Line 5:
 Nowadays database requires about 1GB of RAM. Nowadays database requires about 1GB of RAM.
  
 +==== disable non-blocking database reload ====
 +
 +<file conf /etc/clamav/clamd.conf>
 +# Enable non-blocking (multi-threaded/concurrent) database reloads.
 +# This feature will temporarily load a second scanning engine while scanning
 +# continues using the first engine. Once loaded, the new engine takes over.
 +# The old engine is removed as soon as all scans using the old engine have
 +# completed.
 +# This feature requires more RAM, so this option is provided in case users are
 +# willing to block scans during reload in exchange for lower RAM requirements.
 +# Default: yes
 +ConcurrentDatabaseReload no
 +</conf>
  
 ==== limit systemd service ==== ==== limit systemd service ====
 +
 +Limit RAM to 1GB. Rest will be swapped out.
  
 <code bash> <code bash>
Line 14: Line 29:
 <file conf  /etc/systemd/system/clamav-daemon.service.d/override.conf> <file conf  /etc/systemd/system/clamav-daemon.service.d/override.conf>
 [Service] [Service]
-MemoryLimit=512M +MemoryLimit=1024M
-CPUQuota=50%+
 Nice=19 Nice=19
 Restart = on-failure Restart = on-failure