Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] memory consumption

2010-02-16 by Dietmar Rieder

On 02/16/2010 03:12 PM, Dietmar Rieder wrote:
>
>
> Hi,
>
> we are running milter-greylist-4.2.3 on Solaris 10 x86, it works great
> so far, but I'm a little concerned by its memory consumption. Right
> after starting the service it uses < 30Mb of RAM but after running it
> about 48h it uses already ~1Gb of RAM.
>
> Is this normal?
> Is there something that could be done to limit the memory consumption?

First of all, THANKS to all of you for your valuable input...

I think I found a solution that works cleanly an Solaris 10. Olivers 
hint to look more closely at malloc put me on the right track:

Solaris 10 provides several libraries with implementation of malloc 
different from the standard malloc shipped with libc. So if you link 
milter-greylist to libumem (or libbsdmalloc) the memory consumption 
stays at a normal level. (see: man libumem [man libbsdmalloc])

Here is basically what I'm using to build milter-greylist:

#!/bin/sh 
 

CC=gcc
LIBS="-lumem"
LDFLAGS="-L/usr/local/lib"
LDFLAGS="$LDFLAGS -R/usr/local/lib"
CFLAGS="-I/usr/local/include"
export LIBS
export LDFLAGS
export CC
export CFLAGS
./configure --enable-dnsrbl --sysconfdir=/etc/mail --with-user=smmsp
gmake


I hope this of help also to someone else,

Didi

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.