Carlos E. R. wrote:
On 01/09/2019 09.38, Per Jessen wrote:
Carlos E. R. wrote:
Photo using top, sort by memory, this instant:
PID USER PR NI VIRT RES SHR SWAP S %CPU %MEM TIME+ COMMAND 21395 cer 20 0 3402620 782716 85432 166280 S 69,35 9,591 61:58.83 Web Content 1096 cer 20 0 3688736 767644 104104 0 S 2,976 9,406 19:05.04 thunderbird-bin 3938 vscan 20 0 999648 725460 2628 17856 S 0,000 8,889 8:09.22 clamd .................................*******
0.7 GB of RAM! I will have to uninstall it. Las time I looked, it was half a gigabyte.
And it is set with swapiness of 100...
A couple of comments
- increasing swappiness will only create more work for your system and increase latency in processing.
Which is totally acceptable. It is already set to 100 for that process, and still it does not swap out on its own :-(
In principle, the memory could be pinned, but I see no mlock* calls in libclamav. I don't know if there are other ways though. maybe clamd does a regular traverse across the signature database, dunno.
Current status, after coming from hibernation this morning:
PID USER PR NI VIRT RES SHR SWAP S %CPU %MEM TIME+ COMMAND
3938 vscan 20 0 999648 28740 2924 715764 S 0,000 0,352 8:09.72 clamd
Does hibernation somehow force processes to swap out?
As you can see, now is almost totally swaped out. No issues. It just increased the used time some centiseconds. I will now send an email to myself on another computer, and check. [snip]>
As you can see, no impact at all.
PID USER PR NI VIRT RES SHR SWAP S %CPU %MEM TIME+ COMMAND
3938 vscan 20 0 999648 28892 2924 715596 S 0,000 0,354 8:09.73 clamd
Same thing. One centisecond more, almost same swap amount.
Your email was not scanned ?
Maybe clamd is only used on mail receive, and that is a manual operation when I call fetchmail. Maybe the clamd daemon is awakened periodically when the database is freshened.
Definitely the latter - the database is often updated a few times a day. I guess you are running freshclam?
I do not understand why with a swapiness of 100 for that process, it doesn't swap out when it is not being used for hours. :-(
If nothing needs to use that memory?
- run clamd on a another machine
I failed at doing this. No idea how to do it, unless I move the entire amavis. The other machine has free memory but the CPU is way less powerful.
My old test system cluster ran on Pentium II 450MHz, it did just fine. clamd can be configured to listen for external connections, now you just need to make amavis talk to an external clamd. -- Per Jessen, Zürich (21.8°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