meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:clamav [2022/05/11 07:20] – created niziak | linux: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 / | ||
| + | # Enable non-blocking (multi-threaded/ | ||
| + | # 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 | ||
| + | </ | ||
| ==== 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 / | <file conf / | ||
| [Service] | [Service] | ||
| - | MemoryLimit=512M | + | MemoryLimit=1024M |
| - | CPUQuota=50% | + | |
| Nice=19 | Nice=19 | ||
| Restart = on-failure | Restart = on-failure | ||
| </ | </ | ||
| + | |||
| + | <code bash> | ||
| + | systemctl daemon-reload | ||
| + | systemctl restart clamav-daemon.service | ||
| + | </ | ||