On 06/16/2010 07:47 PM, Vivien Raoul wrote: > I retried to apply the patch. As I thought, I didn't apply it well and there > were no free() at all. So, it was fast, but after several reload, my memory > was down. I applied it correctly and unhappily, it doesn't really change the > time taken for a reload.
What if you put the #endif just before this: #ifdef USE_MPOOL if(engine->mempool) mpool_destroy(engine->mempool); Does it become any faster? If yes try moving the #endif up one line a time until you find the line that shows the slow reload behaviour. > Maybe the solution would be in memory usage : how > could I do to make clamd use more RAM than it does now ? I assume you mean less RAM, since more RAM would just mean you run out sooner and swap even more. There are some plans for 0.96.2 to reduce RAM usage (see #2057), but I can't tell right now how much that would reduce RAM usage. Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
