On 2008-12-06 13:59, shuttlebox wrote: > On Sat, Dec 6, 2008 at 12:39 PM, Tomi Hakala <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> clamd process on my Solaris 10 x86 box grows up to 2 GB just in few days, >> this seems a bit excessive for me. At first clamd was compiled in 32 bit >> mode with gcc but few days back I compiled it in 64 bit just to see if it >> had any effect, it did not. >> >> Anyone else seeing such behaviour? >> > > On my Solaris 10 Sparc machines clamd has run since the last upgrade > and before that since the last upgrade, never consuming more 100 MB. > On my RHEL machines on the other hand it eats memory like crazy. > > For another daemon I run on the same machines, milter-greylist, it's > the opposite. It leaks memory on Solaris but not on RHEL. > > All my Solaris packages are compiled with Sun Studio.
Is this virtual memory usage (VIRT on Linux), or the resident set (RES on Linux)? Does memory usage stay high when clamd is idle? Virtual memory usage may rise on Linux because libc is caching the mappings, but these cached pages are not backed by RAM/swap. The best way to know memory usage on Linux is to look in /proc/self/maps, /proc/self/smaps (or use pmap), and ignore the pages that have rights ---p, or have Rss 0, and Swap 0 (as these don't use neither physical RAM or swap). Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml