Re: ClamAV and SWAP
Andrew C Aitchison via clamav-users <[email protected]> Thu, 11 Dec 2025 16:51:15 +0000 (GMT)
| Newsgroups | gmane.comp.security.virus.clamav.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 11 Dec 2025, Jonathan Lee via clamav-users wrote:
> does ClamAV include any mechanisms or optimizations to manage or
> minimize swap usage? For example, when using ClamAV together with
> Squid, could signature updates or scanning tasks cause the system to
> spill into swap space?
I am not aware of an option to pin the signature database into RAM.
Signature updates require two copies of this unless you use
ConcurrentDatabaseReload=no
(that will disable scanning while the database is rebuilt).
If you set up a separate machine to do the actual scan then Squid and
ClamAV cannot fight for RAM, but there may be a network overhead and
you wont be able to share an already open file handle with --fdpass.
Perhaps using a VM or similar container would allow you
to pin the Clam container into RAM ?
--
Andrew C. Aitchison Kendal, UK
[email protected]
_______________________________________________
Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation
https://docs.clamav.net/#mailing-lists-and-chat