On Sat, Jul 28, 2001 at 10:29:31AM -0400, Philip Mak wrote:
[snip]
> Upon activating this system, the load average of the machine has increased
> from 1-2 to 10! I suspect most of the time is being spent compiling the
> perl script and connecting to the MySQL database, though. If I switch to
> fastforward (or if I rewrite the script in C, and use a persistent
> database connection handle somehow, maybe by storing it in an flock'd
> file) maybe the load average will drop back down to normal.

You can't store persistent database connection handles in flock'd
files.

There are two ways to persistent database connections:
- do your stuff from within qmail (probably not the right spot)
- have your perl/C program connect to a daemon that has a couple of
  persistent connections

But I don't think this will help anything - most of your time is
probably spent compiling perl.

My recommendation is to use fastforward.

Greetz, Peter
-- 
Against Free Sex!   http://www.dataloss.nl/Megahard_en.html

Reply via email to