SCHEDULE and high load situations
Martin Blapp
mb at imp.ch
Thu Aug 12 05:35:10 PDT 2004
Hi,
> Hi martin. This is a great test. Can you try it with my most recent
> change to sched_ule.c? Your version should be 1.21. I found some serious
> issues that have been addressed.
>
> Secondly, what kind of machine is this? Is this test simple to setup so
> that I may reproduce it here?
This is a IBM X-Series i345 SMP 2CPU 3.1 GHz Xeon Server with 2GB mem each.
I used this small script here to load it. I've prepared a shell script which
calls this 200 times. The mails are then rotating from sendmail to milter in
a 26 times loop which takes almost forever ;-).
#!/usr/bin/perl
use Net::SMTP;
$target_smtp_host = $ARGV[0];
$target_user1 = $ARGV[1];
$target_user2 = $ARGV[2];
while (<STDIN>) {
$mailmessage .= $_;
}
$smtp = Net::SMTP->new($target_smtp_host,
Hello => 'myhost',
Timeout => 10,
Debug => 0,
);
$smtp->mail('testuser at imp.ch');
$smtp->to($target_user1, $target_user2);
$smtp->data();
$smtp->datasend("To: postmaster\n");
$smtp->datasend($mailmessage);
$success = $smtp->dataend();
$smtp->quit;
if ($success) {
print "OK\n";
exit(0);
} else {
print "NO\n";
exit(1);
}
More information about the freebsd-current
mailing list