Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] memory consumption

2010-02-16 by Bob Friesenhahn

On Tue, 16 Feb 2010, Dietmar Rieder wrote:
>
> 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])

Under Solaris, is not even necessary to explicitly link to libumem in 
order to use it.  The malloc functions can be overloaded by setting 
this in the environment before starting the program:

   LD_PRELOAD=libumem.so

Regardless, if switching to libumem solves problems, there is surely a 
bug somewhere.  Libumem supports some built in debugging features 
which might help to discover the location of the problem.

For those who are interested, libumem is available for use on other 
systems such as Linux and FreeBSD.  I have used it under FreeBSD.

Bob
--
Bob Friesenhahn
bfriesen@..., http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

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.