procmail
[Top] [All Lists]

Re: limiting number of procmail processes running

2004-08-13 16:40:45
Dallman Ross wrote:

On Fri, Aug 13, 2004 at 08:05:05PM +0200, Ruud H.G. van Tol wrote:


from what I can tell, a practical limit of running processes is somewhere in the order of five to 10 processes at one time.

Suggestion: use a global lockfile named with the most volatile digit of the time.

:0 * ^From .*:..:.\/. { LOCKFILE = $HOME/pm$MATCH$LOCKEXT }



Interesting.  We can hard-anchor the condition on the left:

* ^^From .*:..:.\/.

if you are going to use the brute force / bloody ignorance solution (my favorite), I actually need to lock on the recipient of the message. To clarify, I really only want at most two filters running per user because I do the resource locking for the contentious components (i.e. datafile writes) and there is some opportunity for parallelism but precious little. at the same time, I would like an overall limit to 10 or 15 simultaneous processes.

think we can do this with an array of global locks?

if it's only practical to do a single array of locks independent of the recipient, that's okay to. Because it will be better than what is there today now.

---eric

--
Speech recognition in use.  It makes mistakes, I correct most


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail