mod_perl, or Make Bugzilla Fast!

Bradley Baetz bbaetz at
Sat Feb 15 13:45:41 UTC 2003

I decided to try to find out what mod_perl does for us ATM:

[bbaetz at mango src]$ time wget -o /dev/null -O /dev/null \

real    0m0.331s
user    0m0.002s
sys     0m0.004s

[bbaetz at mango src]$ time wget -o /dev/null -O /dev/null \

real    0m0.015s
user    0m0.006s
sys     0m0.000s

Yes, that is over 22 times as fast. The first number is stable, the
second varies from 0.14 to 0.30. (its a bit higher for the first run -
arround 0.080s. I'm obviously not preloading something which I should
be, or something).

Now, it doesn't actually _work_. At least not if you want to do anything
apart from look at the index page while not logged in. The logged in
part should be fixable once my Auth patch lands, hopefully tomorrow now
that justdave reminded me to use -N. FWIW, that also implies no db
login after my latest reorg, so that hasn't been mod_perl
tested yet.

And it does have some patches, mostly to deal with the fact that mp2
doesn't yet chdir into the current directory before running (doing so
isn't threadsafe, basically). So far I patched the config code, and the
template code, and little bits in other places, too. Then I hardcoded
my path into $Bugzilla::libdir. :) But it does reload params from the
file when they change (via stat).

So, we're getting there....


More information about the developers mailing list