Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Perl and sendmail volume limit?

7 views
Skip to first unread message

Kropotkin_reborn

unread,
Oct 13, 2009, 7:34:14 AM10/13/09
to

Hi

I have some code which essentially does this:

open my $fh, "|path/to/sendmail -t -oi -oem";
print $fh, "some text";
close $fh;

It is being called in a mod_perl context.

I've been advised that we may receive up to 13,000 requests per second for
this piece of code - peak.

What limits do I need to worry about?

Thanks

Justin


--
View this message in context: http://www.nabble.com/Perl-and-sendmail-volume-limit--tp25871223p25871223.html
Sent from the Perl - Comp.Lang.Perl.Moderated mailing list archive at Nabble.com.

Andrzej Adam Filip

unread,
Oct 13, 2009, 4:09:02 PM10/13/09
to
Kropotkin_reborn <Justin...@Sophos.com> wrote:
> I have some code which essentially does this:
>
> open my $fh, "|path/to/sendmail -t -oi -oem";
> print $fh, "some text";
> close $fh;
>
> It is being called in a mod_perl context.
>
> I've been advised that we may receive up to 13,000 requests per second for
> this piece of code - peak.
>
> What limits do I need to worry about?

With 13_000 requests per second I would suggest you to consider using
cached SMTP connection and Net::SMTP perl module.
[send "NOOP" smtp command to check if cached smtp connection is "alive"]

*OR*

*IF* you prefer simplicity and "horse power" is not a big problem *THEN*
add -odd flag to sendmail invocation (queue message without DNS check)
ad make sendmail do more frequent client queue runs

Anyway: Ask for details at news:comp.mail.sendmail - it is more
sendmail/MTA tuning then perl tuning.

--
[pl>en Andrew] Andrzej Adam Filip : an...@onet.eu : Andrze...@gmail.com
There is hopeful symbolism in the fact that flags do not wave in a vacuum.
-- Arthur C. Clarke

0 new messages