Carlos E. R. wrote:
On 2017-08-07 08:33, Per Jessen wrote:
Cut down on the databases. Are you using any 3rd party databases (sanesecurity for instance) ?
I'm using defaults, I think. Yes, the config file is dated dec 27 2016, so it is the installation file. I do not find any "sane" string in the config.
It wouldn't be in the config, clamd will load everything in the database dir. If you haven't added sanesecurity yourself, they're not there. You would also need a regular refresh etc. So it's probably just the default install - I don't have any historical data, but I have had clamd running on physical machines with 768Mb for years, now recently virtualised with about 1Gb each.
Instead of the daemon, I could call it from amavis, one process per mail. But this impacts scan speed. Could the daemon be started "on demand", and be killed a minute after the last email goes through?
Perhaps, but you're looking to save 500Mb on a machine with 8Gb?
I notice those 500, believe me. The machine responds a bit better just after I killed clamd.
Perhaps, but there must other processes gobbling up the rest, that's what I meant. The 500Mb for clamd is normal.
Looking at your 'top' display, where does the rest of those 7Gb go?
Many things, it is just that clamav is the biggest chunk except for firefox and thunderbird.
KiB Mem: 8174408 total, 4992444 used, 3181964 free, 103452 buffers KiB Swap: 43744244 total, 3190824 used, 40553420 free. 1909944 cached Mem
8Gb physical, 5Gb used, 3Gb swap and 2Gb file system buffers. Firefox and Thunderbird are also the biggest consumers on my main desktop, following by Xorg, konqueror and soffice. The rest less than 50Mb resident per process. Total: Mem: 4054784k total, 2976472k used, 1078312k free, 16k buffers Swap: 3911736k total, 778436k used, 3133300k free, 1113848k cached
Notice that I have 3 G in swap. I would also benefit by using a very fast swap disk.
Just add more memory, but you said you can't. Unless we're talking video editing and gaming (or something else that gobbles of memory), 4Gb should be more than plenty. Well, it is on my main desktop - not running Leap though. -- Per Jessen, Zürich (20.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org