On 2008.03.17, Dossy Shiobara <[EMAIL PROTECTED]> wrote:
> The old location of the wiki is still available, though:
>
> http://panoptic.com/wiki/aolserver
>
> Use that, if the dev.aolserver.com one is running slowly -- I'll look
> into the matter.
Okay, after much hand-tracing of the MediaWiki code, I found what I
consider a bug: the parser cache code always wants to try and use some
kind of Memcache, which isn't actually set up. What ends up happening
is a busy-wait loop in MessageCache::lock() because of this:
399 function lock() {
400 if ( !$this->mUseCache ) {
401 return true;
402 }
403
404 $lockKey = $this->mMemcKey . 'lock';
405 for ($i=0; $i < MSG_WAIT_TIMEOUT && !$this->mMemc->add(
$lockKey, 1, MSG_LOCK_TIMEOUT ); $i++ ) {
406 sleep(1);
407 }
408
409 return $i >= MSG_WAIT_TIMEOUT;
410 }
This is why page-load times were consistently longer than 20.0 seconds:
12 define( 'MSG_WAIT_TIMEOUT', 10);
I've fixed this now with a kludge:
31 ## N.B. This is busted. $mUseCache is being set to true, when it
32 ## shouldn't be. -- dossy 2008-03-17
33 ## $this->mUseCache = !is_null( $memCached );
34 $this->mUseCache = false;
So, the http://dev.aolserver.com/wiki/ should be a little faster now --
pages still seem to take ~7 seconds to load, but that's better than the
24-28 seconds it used to take.
-- Dossy
--
Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.