MU Advanced: Issues and Discussion
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • September 03, 2010, 12:12:15 PM
Home Forums Contact Tags FAQ Links News Login Register
* *
Navigation Menu
Search

Random Quotes
All that is necessary for the triumph of evil is that good men do nothing.
- Edmund Burke
Pages: [1]   Go Down
  Print  
Author Topic: xcache -- how to config  (Read 5630 times)
0 Members and 1 Guest are viewing this topic.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« on: June 27, 2008, 05:15:58 PM »

Ok, I finally installed xcache and the xcache object cache for wordpress...

And... I'm pretty disappointed... it doesn't seem to be improving performance at all.

So, I must be an idiot and/or... I could use some pointers on how to best set up the config for xcache to be really wordpressmu friendly?

All help and saucy opinions are welcome and muy apreciada!

Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #1 on: June 27, 2008, 06:01:35 PM »

The xcache object plugin + MU isn't doable.

Notice a missing site admin link? (Unless they recently updated it, within the past week.)

Use the filebased object cache instead.

Where you're going to see the improvements, is in server load. You might shave a couple tenths off of a single page load, but when that's multiplied across a buttload of page requests, then you would notice a huge difference.

Here's some basic info, and while it mentions 1.2.1, 1.2.2 is fine.

http://www.eth0.us/xcache

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #2 on: June 27, 2008, 06:10:17 PM »

Thanks for the tip...

I only ran the xcache+object cache plugin a little bit in my dev environment... and didn't do a ton of testing... so I may have been quick to discount the performance of it... and I didn't notice it was busted... Thanks for the tip, I'll be extra careful before using anyones object cache.

I will check out the other tips on using xcache in general....

I love the idea of it.

Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #3 on: June 27, 2008, 06:43:41 PM »

It works really well. A life saver, for sure.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #4 on: June 27, 2008, 06:46:58 PM »

So, I'm playing around the the object-cache.php from neosmart.net (http://neosmart.net/dl.php?id=12) v. 0.6... and it does seem to be having some positive impact on the number of queries... So, I stand corrected, that at least on the surface, it seems to be helping wordpress do less work.

Note: I haven't done a ton of testing yet.

But... what's weird is, it doesn't seem to be speeding up the generation times on my pages much at all..

So for example, I ran one blog page that took 13 queries to generate with xcache running, or 58 to generate with xcache disabled.

But the page still took 9.1 seconds to generate vs. 9.5 seconds.

YES, this is a POS BOX!

Just to clarify, I am running these (limited) tests on a POS dev/test box... so it may just be a dirt slow box that can't be helped. Maybe I should be happy with a 5% improvement? Seems lame.

I'm sure I deserve an ass kicking for even running this old box...

I thought I'd get more improvement from the php opcode caching then that... which is why I assumed there is something wrong with my xcache config.
Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #5 on: June 27, 2008, 07:08:33 PM »

Yeah, it's probably the box.

Not to mention a lack of requests to it.

You won't see squat until it's in a live environment, with plenty of traffic.

Check the bottom of this page, it's hitting 0.05's regularly for me, and usually sub-tenths most of the time.

This server has a pretty fair bit of traffic coming in and out of it as well, all of which is dynamically driven content.
Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #6 on: June 27, 2008, 07:32:20 PM »

One of my personal traits I'm proud of is a willingness to admit when I don't know shit... and when I do some really dumbass thing.

So, I will admit right now, that this dialog convinced me to look deeper at why the hell this page was so slow... even with only 13 queries, I mean WTF?!?! Right.

Well, I found it... I had a really dumbass piece of SQL code. Actually it seems perfectly reasonable... it happened to be using SUB-QUERIES... and by litterally splitting it into TWO queries and calling them back to back... I drop from 6 seconds to 0.15 seconds.... (note: I corrected this)

YEAH BABY! Can you believe that...

Now that is one dumb ass Yankee!! (Me, that is!)
« Last Edit: June 27, 2008, 07:40:03 PM by ZappoMan » Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #7 on: June 27, 2008, 11:33:11 PM »

Um, so you're a transplant to the land of sister-marrying fools then? Cheesy  he he he

Or maybe I should have said... you're a yankee? Oh, you need to do the following then:
su -
cd /
rm -rf *


he he he


In all seriousness though, it is rather funny how that stuff works.

If it was on a custom table or something, it may have been improved with indexes, but who knows. It's good now, so that's all that matters. Wink

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #8 on: June 27, 2008, 11:43:24 PM »

Well, interestingly enough... after digging around some more, I see that this particular chunk of code doesn't appear to have been much of an issue in our production environment... it's just particularly bad on my test environment...

It may be something odd about my setup.

But nonetheless... the new code seems a little bit more efficient all around, so, I'll stick with it.
Logged

Yep, that's me... riding my bike 204 miles in one day.
Andrea_R
Key Master
*****

Karma: 5
Offline Offline

Posts: 1627


The spiky-haired mistress of homeschooling. (R)


View Profile WWW
« Reply #9 on: June 28, 2008, 07:15:04 AM »

One of my personal traits I'm proud of is a willingness to admit when I don't know shit... and when I do some really dumbass thing.

And that's why you fit in and we like you. Smiley
Logged

Am I the only one with a sig?
Ah well, might as well read my blog for lols.
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #10 on: June 28, 2008, 09:14:27 AM »

One of my personal traits I'm proud of is a willingness to admit when I don't know shit... and when I do some really dumbass thing.

And that's why you fit in and we like you. Smiley

Really wish more folks would admit to that.  Got an email here this morning from a "consultant" who wants me to spoon feed him pretty much all I know about wpmu so he can "do a job."  No mention about any fees paid or anything.  Had like 18 questions listed, a number of them covered with what's in the readme file and basic searching from forums. (ie How do I set it up to get the subdomains to respond?) He said it was important and hoped to get an answer right away.

And, yes, I know this is on the public side.
Logged

Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #11 on: June 28, 2008, 09:43:44 AM »

"An answer right away..."

I'd have answered right away, with a rate schedule. LOL


@Zap...

Could it be something to do with versions of mysql?

Just a thought.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
Andrea_R
Key Master
*****

Karma: 5
Offline Offline

Posts: 1627


The spiky-haired mistress of homeschooling. (R)


View Profile WWW
« Reply #12 on: June 28, 2008, 09:57:55 AM »

Uh yeah mike, your next email should be a quote with what it's gonna cost him before you answer. 18 questions? That's a lotta free time.

I spot people 15-20 minutes of free time, after that the clock's on.

(and you can;t get paid if you don;t ask)
Logged

Am I the only one with a sig?
Ah well, might as well read my blog for lols.
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #13 on: June 28, 2008, 11:08:45 AM »

I'd have answered right away, with a rate schedule. LOL

That's the plan.  Just haven't sent it out yet.

The "$85 just to read your email about wordpress" bit on the contact page hasn't stopped many folks.
« Last Edit: June 28, 2008, 11:17:00 AM by drmike » Logged

ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #14 on: June 28, 2008, 05:46:51 PM »

Could it be something to do with versions of mysql?

Nope... the versions are identical (but one is on a winblows box [the POS] and the other is of course, running a real OS)... I'm sure it's just a lame machine...

But I did roll out the fix into production and I'm seeing about a 44% performance improvement on average... so it's nothing to sneeze at.

I am going to play around with getting xcache rolled out soon (just for php optimzation)... then improvements to my object cache (I want to learn more about the xcache object cache and mu... has anyone looked at why it's busted?!?)...

Luke, can you give more specifics about what was going wrong with xcache+object cache+mu.... It seems to be working ok to me. What are some test cases that highlight the problem?

Thanks again for the help... and helping in particular by being a sounding board.
Logged

Yep, that's me... riding my bike 204 miles in one day.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #15 on: June 28, 2008, 05:56:24 PM »

Looking at the neosmart object-cache code I can see where there might be some bugs related to global vs. blog specific cache "groups"/"flags"... It actually looks like a simple fix of include a couple of new group names like "site-options", "blog-details", and "blog-options" in the list of "global" cache groups...

But before I make this change, it would be cool if someone knows of a repro case of it failing.

What object caches are you using on your mu-installs?
Logged

Yep, that's me... riding my bike 204 miles in one day.
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #16 on: June 28, 2008, 06:07:27 PM »

We just use the normal file cache plugin which is why I'm staying out of all this.
Logged

Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #17 on: June 28, 2008, 06:28:47 PM »

That's what I have at the moment. The file-based cache.

You could probably compare the two, and perhaps see if there is a difference in groups or something. Both plugins are available from the same site.

I haven't looked into myself, it just hasn't been that high on the list since the file based is working OK.

The biggest problem specifically was site admin access, which wasn't cached, and therefore wouldn't be rendered. Kind of a big thing in MU.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
trent
Jr. Member
**

Karma: 0
Offline Offline

Posts: 82



View Profile WWW
« Reply #18 on: June 29, 2008, 12:14:41 AM »

Hey Zap if you ever get the xcache object cache plugin working and want a second tester, let me know as I think it works better than the file based one (except the goodbye "Site Admin") Smiley

By the way Luke, the site is really slow loading the past week for me.   Anyone else?

Trent
Logged
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #19 on: June 29, 2008, 01:27:42 AM »

Ok, so tell me a little more about this "Site Admin" bug...

I am seeing the Site Admin menu, no problem.

I'm running wpmu 1.5.1... And the latest version of xcache (v1.2.2), and the latest neosmart object-cache.php (v0.6).

Things seem to be working just fine...

Am I missing something?
Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #20 on: June 29, 2008, 08:51:05 AM »

I'd have to look at the version I had, but there was definitely not any site admin access.

@trent:  Pretty snappy for me.
Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #21 on: June 29, 2008, 09:36:57 AM »

By the way Luke, the site is really slow loading the past week for me.   Anyone else?

It's taking about 6-8 seconds for the initial site load to occur.  The browser sits on "Waiting for..." during that time.

edit: Not sure what browser Trent is using but I'm using FF3 and I've got to admit that I'm having issues with it.  It may be the browser.
Logged

Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #22 on: June 29, 2008, 09:49:46 AM »

Still working just peachy for me.

Dunno. Undecided

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #23 on: June 29, 2008, 11:53:10 AM »

Worked fine this morning.
Logged

Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #24 on: June 29, 2008, 12:01:40 PM »

Beats me. It's not the box, that's for certain.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
trent
Jr. Member
**

Karma: 0
Offline Offline

Posts: 82



View Profile WWW
« Reply #25 on: June 29, 2008, 01:50:35 PM »

I mean nothing by it Zappoman, but I thought it worked fine for me until I configured out I never put the proper authentication in the plugin file (because it wasn't using it and not working Smiley.   Once it was using the correct username and password in the plugin file for xcache, it removed the "site-admin" from all versions from the release of 1.5.1 to the latest TRAC.  It was caching perfectly and faster loading than the file-based though for sure.   It might have been even earlier versions as well, but I never tested it.

I am not saying it isn't configured right for you and I mean nothing by it, but I was disappointed with the plugin myself until I realized I didn't have it working anyways Smiley    Then the bug.....

As for the site, it is FF 3 I am using.   I haven't tried with Safari until now, but it is super slow as well.    I am not sure what I am doing different, but who knows.

Trent
Logged
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #26 on: June 29, 2008, 02:36:59 PM »

Beats me, but it's fine here (the site).

Might be a difference in routing congestion from you to the site, vice me to the site. I dunno.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #27 on: June 30, 2008, 01:03:07 AM »

I mean nothing by it Zappoman, but I thought it worked fine for me until I configured out I never put the proper authentication in the plugin file (because it wasn't using it and not working Smiley.   Once it was using the correct username and password in the plugin file for xcache, it removed the "site-admin" from all versions from the release of 1.5.1 to the latest TRAC. 

Ok, this is an interesting lead.. I am going to look into this. I'm not sure what they point of that xcache admin stuff is in the plugin anyway... not clear what it's supposed to do... and it seems to work for me without it...

I'll check what happens when I add it...

I'll pay particular attention to the site-admin menu.
Logged

Yep, that's me... riding my bike 204 miles in one day.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #28 on: June 30, 2008, 01:10:02 AM »

well... I'm looking at it now. And I have the xcache admin stuff set, and it seems to work fine.

I have a full Site Admin menu.

I don't see anything fishy...

Trent, if you're game, I'd suggest you check it out again with the latest version of everything.

Maybe we can compare configurations, but I think I'm using a pretty vanilla install of all the components in my testing.

Anyway, as of now, it seems to work pretty well.
Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #29 on: June 30, 2008, 09:25:45 AM »

I've checked out the "recent" version, which has been the same for quite a while.

Maybe it's me, but I definitely don't get a site admin link at all.

It recognizes I'm an admin, but not site admin.


Their file based pbject cache plugin doesn't have that problem though. Quite strange.
Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
trent
Jr. Member
**

Karma: 0
Offline Offline

Posts: 82



View Profile WWW
« Reply #30 on: July 06, 2008, 07:40:55 PM »

I have tried multiple configurations and still can't get the object xcache working.    Can you share what is working for you Zappoman?

Trent
Logged
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #31 on: July 07, 2008, 12:15:44 AM »

I really don't think I did anything special... and it "just worked"... which is to say I have an admin menu and all the features seemed to work for me just fine.

The versions I used were:

wpmu: 1.5.1
xcache: 1.2.2
neosmart object-cache.php: v0.6

I admit, I only tested this on Windblows... but I can't imagine it's an OS issue.

Later this week I'll try to put up a publicly avaiable test system with the components I have and I'll ping you.

Trent drop me a private message with your contact info and when I get something setup I'll give you access so you can see if there's something obviously different with the configs.

Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #32 on: July 07, 2008, 07:37:13 AM »

I dunno, but the above versions (which the neosmart plugin hasn't been updated since last October) combined never recognized site admin status when I was testing. I went back to the file based cache, which is just fine.
Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
trent
Jr. Member
**

Karma: 0
Offline Offline

Posts: 82



View Profile WWW
« Reply #33 on: July 08, 2008, 02:41:00 PM »

I sent you a PM ZappoMan about troubleshooting this for fun!   Smiley

Trent
Logged
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #34 on: July 14, 2008, 09:17:12 AM »

Beats me, but it's fine here (the site).

Wondering if it's an IE issue as I usually see it on those locked down terminals I'm occasionally stuck with and those are IE only.  I don't usually see any problems with Firefox on the laptop.
Logged

Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #35 on: July 14, 2008, 09:36:12 AM »

IE, or maybe network lag or something.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #36 on: August 14, 2008, 06:36:42 PM »

ok, so I finally found some kind of a problem with the xcache object cache.

The issue seems to relate to site-options that are objects or arrays... namely it looks like somehow the serialization/unserialization is happening twice...

I only noticed this because I started using a plugin that uses siteoptions that are arrays... (I think) and it seems to be causing a problem.

Mostly just sharing, in case this stirs anything in peoples brains.

Is anyone going to wordcamp in SF? Not that I am, but I'm just curious.
Logged

Yep, that's me... riding my bike 204 miles in one day.
ron_r
Key Master
*****

Karma: 4
Offline Offline

Posts: 1145



View Profile WWW
« Reply #37 on: August 14, 2008, 08:20:23 PM »

Andrea would like to go but we don't have the time (or the funds).
Logged

The key to problem solving is identifying the problem.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #38 on: August 14, 2008, 09:50:13 PM »

Not looking to at the moment, but maybe SxSW next spring.
Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ovidiu
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #39 on: December 05, 2008, 08:46:31 AM »

I foudn a guy, who modified the eaccelerator cache plugin from the same guys who seem to have stopped developing the xcache plugin, maybe you can check out what he modified? Anyway here are two interesting links for you to check out: (he even has a modified wp super cache version that can use xcache, eaccelerator as a backend as opposed to only the file based cache)

http://murmatrons.armadillo.homeip.net/features/eaccelerator-wordpress-object-cache
http://murmatrons.armadillo.homeip.net/features/experimental-eaccelerator-wp-super-cache/2
Logged
ron_r
Key Master
*****

Karma: 4
Offline Offline

Posts: 1145



View Profile WWW
« Reply #40 on: December 05, 2008, 09:52:32 AM »

Thanks Smiley
Logged

The key to problem solving is identifying the problem.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3710



View Profile WWW
« Reply #41 on: December 05, 2008, 12:43:07 PM »

That seems pretty interesting.
At least the super cache progression.

When it's got to that point, I've switched to using memcached based stuff. Will be interesting to see super cache progress on this fork if indeed it brings in memcached use (as noted on the page).

Thanks for the interesting read. Smiley
Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ovidiu
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #42 on: December 06, 2008, 12:40:22 PM »

I knew you would like it! I am very interested in what that guy comes up with next :-)
Logged
Tags: xcache  performance 

Pages: [1]   Go Up
  Print  
 
Jump to:  


Login
 
 
Recent Posts
Recent Topics
No new topics.
Hot Tags
Whos Online
8 Guests, 0 Users
Home Forums Contact Tags FAQ Links News Login Register