I've been looking at the memory usage of qpsmtpd. When you are running a 100 copies, it starts to add up. I wrote a small test program to track the memory requirements (VmSize) of some of the perl libraries used by qpsmtpd.
Here is what I found:
cd /home/smtpd
./test.pl 100
use Qpsmtpd::Connection consumed: 24 KB bytes
use Qpsmtpd::Transaction consumed: 956 KB bytes
use Qpsmtpd::Plugin consumed: 16 KB bytes
use Qpsmtpd::Constants consumed: 0 KB bytes
use Mail::Address () consumed: 116 KB bytes
use Mail::Header () consumed: 216 KB bytes
use IPC::Open2 consumed: 92 KB bytes
use Data::Dumper consumed: 328 KB bytes
use POSIX qw(strftime) consumed: 340 KB bytes
use Net::DNS consumed: 1764 KB bytes
$MAIN::x = ("a" x 1024) x $ARGV[0] consumed: 232 KB bytes
*** Done ***
On a slow machine, there is a noticable pause as the larger libraries load.
The source for the test program is attached.
Jim
James H. Thompson
[EMAIL PROTECTED]
test.pl
Description: Binary data
