Steven Stern wrote:

> After 3 1/2 hours
>  2332 clamav    20   0  216m  83m 1636 S    0  4.1   0:21.52 clamd 
> It does seem to be growing

That's probably perfectly normal.  Clamd uses pthreads.  When it needs
to allocate space for a new thread's stack, it allocates memory.
When the thread exits, the memory is not returned to the operating
system but is recycled.  So you can expect clamd to grow, quickly at
first and then gradually, until it reaches some steady-state related to
the maximum number of threads that have ever run simultaneously.

It's also the reason that clamd will appear to use a LOT more memory on
a busy server than on a quiet one.

Now, as to whether pthreads vs. a traditional preforked UNIX server
was the right design decision... that's a whole other thread, so to
speak. :-)

Regards,

David.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to