- spamd starts and reads config until 20MB ram is allocated
- clears up and frees memory, leaving ~10MB in use (but 20MB allocated to the
process)
- forks children. each child gets a copy-on-write "copy" of that 20MB,
including 10MB of allocated memory and 10MB of "free" memory that hasn't been
returned to the OS
This may have a lot to do with the fact that Conf reads the whole file in. Just change it to do a line-by-line read (but abstracted so SQL config can feed it the equivalent of config "lines") might improve things.
Matt.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
