Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I am the wandering glitch -- catch me if you can.


computers / comp.mail.sendmail / Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI

SubjectAuthor
* odd queue printing delay when sendmail binary compiled with -DUSE_EAIAndreas S. Kerber
+* Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAIClaus Aßmann
|`- Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAIAndreas S. Kerber
`* Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAIClaus Aßmann
 `- Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAIAndreas S. Kerber

1
odd queue printing delay when sendmail binary compiled with -DUSE_EAI

<s9t7tc$u2i$1@bastet.speedkom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=210&group=comp.mail.sendmail#210

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.dns-netz.com!news.freedyn.net!speedkom.net!not-for-mail
From: ask...@eb6.srv.ke3.speedkom.net (Andreas S. Kerber)
Newsgroups: comp.mail.sendmail
Subject: odd queue printing delay when sendmail binary compiled with -DUSE_EAI
Date: Thu, 10 Jun 2021 14:34:20 +0000 (UTC)
Organization: IDKOM Networks GmbH
Lines: 45
Message-ID: <s9t7tc$u2i$1@bastet.speedkom.net>
NNTP-Posting-Host: eb6.srv.ke3.speedkom.net
X-Trace: bastet.speedkom.net 1623335660 30802 2001:14e0::31 (10 Jun 2021 14:34:20 GMT)
X-Complaints-To: abuse@speedkom.net
NNTP-Posting-Date: Thu, 10 Jun 2021 14:34:20 +0000 (UTC)
 by: Andreas S. Kerber - Thu, 10 Jun 2021 14:34 UTC

I'm seeing an odd delay in printing the queue, when the
sendmail binary is compiled with -DUSE_EAI. I wonder whether
this is to be expected or a possible issue.

If of interest I can provide a strace or kind of additional
information.

Here's a comparision between sendmail binaries with and without -DUSE_EAI
showing 1,3sec vs. 0,016sec when printing the empty queue with -bp

1. with -DUSE_EAI
[root@frontend1 sendmail-8.17.0.2]# time /usr/sbin/sendmail -bp -C /etc/mail/serverc/sendmail-mx2c.cf
/var/spool/mqueue-serverc/mx2/df is empty
Total requests: 0

real 0m1.349s
user 0m1.281s
sys 0m0.022s

[root@frontend1 sendmail-8.17.0.2]# /usr/sbin/sendmail -d0.1
Version 8.17.0.2
Compiled with: ALLOW_255 DNSMAP IPV6_FULL LOG MAP_REGEX MATCHGECOS
MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX
NEWDB=5.3 PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TLS_VRFY_PER_CTX USERDB USE_EAI XDEBUG

2. without -DUSE_EAI
[root@frontend1 sendmail-8.17.0.2]# time /usr/sbin/sendmail -bp -C /etc/mail/serverc/sendmail-mx2c.cf
/var/spool/mqueue-serverc/mx2/df is empty
Total requests: 0

real 0m0.016s
user 0m0.011s
sys 0m0.004s

[root@frontend1 sendmail-8.17.0.2]# /usr/sbin/sendmail -d0.1
Version 8.17.0.2
Compiled with: DNSMAP IPV6_FULL LOG MAP_REGEX MATCHGECOS MILTER
MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB=5.3
PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS TLS_VRFY_PER_CTX
USERDB XDEBUG

Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI

<s9tlt4$uvp$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=217&group=comp.mail.sendmail#217

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-vm.kithrup.com!news.misty.com!.POSTED!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI
Date: Thu, 10 Jun 2021 18:33:08 +0000 (UTC)
Organization: MGT Consulting
Lines: 21
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s9tlt4$uvp$1@news.misty.com>
References: <s9t7tc$u2i$1@bastet.speedkom.net>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1623349988 31737 195.244.235.220 (10 Jun 2021 18:33:08 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Thu, 10 Jun 2021 18:33:08 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Thu, 10 Jun 2021 18:33 UTC

Andreas S. Kerber wrote:
> I'm seeing an odd delay in printing the queue, when the
> sendmail binary is compiled with -DUSE_EAI. I wonder whether
> this is to be expected or a possible issue.

It's not expected and it doesn't happen on systems where I tried it.

Try the USE_EAI version with SMTPUTF8=false, e.g.,
time /usr/sbin/sendmail -bp -C /etc/mail/serverc/sendmail-mx2c.cf -O SMTPUTF8=false
Does that change anything?

> If of interest I can provide a strace or kind of additional
> information.

Anything that shows where the delay happens would be very useful.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI

<s9tssc$lsi$1@bastet.speedkom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=220&group=comp.mail.sendmail#220

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!speedkom.net!not-for-mail
From: ask...@eb6.srv.ke3.speedkom.net (Andreas S. Kerber)
Newsgroups: comp.mail.sendmail
Subject: Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI
Date: Thu, 10 Jun 2021 20:32:12 +0000 (UTC)
Organization: IDKOM Networks GmbH
Lines: 19
Message-ID: <s9tssc$lsi$1@bastet.speedkom.net>
References: <s9t7tc$u2i$1@bastet.speedkom.net> <s9tlt4$uvp$1@news.misty.com>
NNTP-Posting-Host: eb6.srv.ke3.speedkom.net
X-Trace: bastet.speedkom.net 1623357132 22418 2001:14e0::31 (10 Jun 2021 20:32:12 GMT)
X-Complaints-To: abuse@speedkom.net
NNTP-Posting-Date: Thu, 10 Jun 2021 20:32:12 +0000 (UTC)
 by: Andreas S. Kerber - Thu, 10 Jun 2021 20:32 UTC

Claus Assmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> wrote:
> Try the USE_EAI version with SMTPUTF8=false, e.g.,
> time /usr/sbin/sendmail -bp -C /etc/mail/serverc/sendmail-mx2c.cf -O SMTPUTF8=false
> Does that change anything?

Setting SMTPUTF8 doesn't change the delay. I think I could narrow it down to
an F class macro used in sendmail.cf though.

F{test}/etc/mail/some-test-file

I can reproduce it just by filling /etc/mail/some-test-file file with a couple
of thousand (unique) values.
Usually there are about 10k lines in that file. That is causing a delay of about 1s.
Cutting it down below 2k makes the delay nearly unnoticeable. Going beyond 10 or 20k
the delay grows quite drastic.

A sendmail binary without -DUSE_EAI doesn't seem care about how large the
file is - simply no delay at all :-) Hope this helps to find the culprit.
It seems important that the lines are unique in order to reproduce the delay.

Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI

<s9uuud$fbj$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=223&group=comp.mail.sendmail#223

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-vm.kithrup.com!news.misty.com!.POSTED!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI
Date: Fri, 11 Jun 2021 06:13:33 +0000 (UTC)
Organization: MGT Consulting
Lines: 34
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <s9uuud$fbj$1@news.misty.com>
References: <s9t7tc$u2i$1@bastet.speedkom.net>
NNTP-Posting-Host: kiel.esmtp.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.misty.com 1623392013 15731 195.244.235.220 (11 Jun 2021 06:13:33 GMT)
X-Complaints-To: abuse@misty.com
NNTP-Posting-Date: Fri, 11 Jun 2021 06:13:33 +0000 (UTC)
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Fri, 11 Jun 2021 06:13 UTC

Andreas S. Kerber wrote:
> I'm seeing an odd delay in printing the queue, when the
> sendmail binary is compiled with -DUSE_EAI. I wonder whether
> this is to be expected or a possible issue.

Please try this patch:

diff --git a/sendmail/stab.c b/sendmail/stab.c
index cf7812ecc..f41320bf4 100644
--- a/sendmail/stab.c
+++ b/sendmail/stab.c
@@ -55,9 +55,7 @@ stab(name, type, op)
register STAB *s;
register STAB **ps;
register int hfunc;
-#if !USE_EAI
register char *p;
-#endif
int len;
if (tTd(36, 5))
@@ -78,10 +76,9 @@ stab(name, type, op)
hfunc = ((hfunc << 1) ^ ((*cstr) & 0377)) % STABSIZE;
}
else
-#else
+#endif
for (p = name; *p != '\0'; p++)
hfunc = ((hfunc << 1) ^ (SM_LOWER(*p) & 0377)) % STABSIZE;
-#endif
if (tTd(36, 9))
sm_dprintf("(hfunc=%d) ", hfunc);

Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI

<s9v2mi$u5a$1@bastet.speedkom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=225&group=comp.mail.sendmail#225

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.dns-netz.com!news.freedyn.net!speedkom.net!not-for-mail
From: ask...@eb6.srv.ke3.speedkom.net (Andreas S. Kerber)
Newsgroups: comp.mail.sendmail
Subject: Re: odd queue printing delay when sendmail binary compiled with -DUSE_EAI
Date: Fri, 11 Jun 2021 07:17:38 +0000 (UTC)
Organization: IDKOM Networks GmbH
Lines: 8
Message-ID: <s9v2mi$u5a$1@bastet.speedkom.net>
References: <s9t7tc$u2i$1@bastet.speedkom.net> <s9uuud$fbj$1@news.misty.com>
NNTP-Posting-Host: eb6.srv.ke3.speedkom.net
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: bastet.speedkom.net 1623395858 30890 2001:14e0::31 (11 Jun 2021 07:17:38 GMT)
X-Complaints-To: abuse@speedkom.net
NNTP-Posting-Date: Fri, 11 Jun 2021 07:17:38 +0000 (UTC)
 by: Andreas S. Kerber - Fri, 11 Jun 2021 07:17 UTC

Claus Aßmann <INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org> wrote:
> > I'm seeing an odd delay in printing the queue, when the
> > sendmail binary is compiled with -DUSE_EAI. I wonder whether
>
> Please try this patch:

That fixed it, thanks!

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor