[Clamav-devel] Best way to introduce feature to reduce memory footprint?
Markus Kolb
markus.kolb+clamav at tower-net.de
Mon Sep 9 03:26:15 EDT 2019
Am 08.09.2019 19:28, schrieb Per Jessen:
> This was discussed quite intensively on the openSUSE list just
> recently:
>
> Create /etc/systemd/system/clamd.service.d/memlimit.conf and add:
>
> MemoryLimit=500M (for instance)
> TimeoutSec=300s
I've also cheered too soon.
This doesn't always work as expected. ;-(
On forking the source process doesn't get/need cpu time any longer and
always times out.
It breaks down from 100% to 0-2% and mostly dead process. So it times
out.
The exact limit (300M,400M,700M,800M) doesn't matter.
The system is over 70% idle and real memory is enough free.
Looks like some bug (systemd/kernel) in openSUSE 15.0.
Or maybe because it is a KVM vhost? Don't know.
On a bare metal host with openSUSE 15.1 it works.
More information about the clamav-devel
mailing list