Carlos E. R. wrote:
On 2016-06-23 08:37, Per Jessen wrote:
Carlos E. R. wrote:
Seriously, I think that clamd should free that ram when iddling or waiting, and request it when really needed.
It would be a waste of IO and really slow thjings down. clamd keeps the signature database in core to be able to produce fast responses.
Not really... when the daemon detects that it has no requests for some time (say, five minutes, one hour), free memory. Reload on the first request, for another interval.
Nope, I disagree. That's what the virtual memory manager is there to do. If nothing is being scanned, pages will be reclaimed as and when needed. When clamd needs to do a scan, they can be paged in. The application should not need to worry about that.
In my case, it is used a few times a day, or perhaps none. I could do a script to run fetchmail and previously load it.
Well, maybe for that situation it is an abuse of resources, but why bother with a daemon at all when your usage pattern is on-demand and infrequent? Just scan your mails straight from procmail, in particular if you're worried about resource usage. -- Per Jessen, Zürich (28.6°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org