Gordan Bobic wrote: > Hi, > > Can anyone explain why clamd 0.95.3 might use 190MB of RAM after 5 days
The figure is "normal". In those 190MB there are likely ~110MB of database and ~80MB of unused memory which is retained (by either libc or the kernel) inside the process. Unfortunately it's not very easy to determine the exact amount of *really* used memory: you should subtract all unused maps (i.e. /proc/<PID>/maps) and libc non-returned heaps from the above figure. You may be able to see a more ram usage figure via clamdtop. > The database files under /var/lib/clamav use about 70MB. > So, even assuming this is kept in memory at all times, where does the > other 120MB come from? Database files are not stored in ram as they are on disk. In fact, for performance reasons, signatures are mostly arranged in tries. This involves lots of pointers, structure alignment and other nasty things. 70MB are roughly equivalent to 90-100MB on 32 bit systems and 110-10MB on a 64bit system. -acab _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml