Re: tmda Pending Messages

Doug Hardie <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
In article <[email protected]>,
 [email protected] (Jason R. Mastaler) wrote:

> Doug Hardie <[email protected]> writes:
> 
> > The interesting thing is that a ktrace of the entire process
> > (including sendmail, dspam, and tmda) shows that 85% of the ktrace
> > output is python reading (and re-reading) its various library
> > modules.  dspam uses most of the remaining 15%.  However,
> > tmda-rfilter code is read at least 3 times.  In addition,
> > /etc/hosts, /etc/services, the password file etc. are read numerous
> > times.  Often several times in a row.  There is an unbeliveable
> > amount of overhead in this.
> 
> Weird. As I alluded to before, this isn't typical. Not sure what it is
> about your setup that's causing this though. You do have TMDA
> byte-compiled, right? All the .py should be byte-compiled into
> .pyc files which should help.

Yes, the .pyc files are all there.  My initial testing was with python 
2.5.  The real test system used python 2.4 and its a bit different.  In 
addition to all the items above it also tries to delete every file with 
a .so extension each time it runs.  Obviously that won't happen as 
python is running as a user id and the python files are owned by root.  
However, there are no .so files to begin with.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.