LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > XCache vs eAcc?

Reply
 
Thread Tools Display Modes
  #11  
Old 07-28-2009, 01:39 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
If you are using Enterprise version and binded listeners on more than one core, then the same issue with suExec which George described in 2nd post would be happened to xCache memory storage

It will spawn multi proccess which leads to multi shared memory storages, which will recude performances using xCache

So if you want to use xCache its better to bind listeners to one core only

BTW im using xCache without suExec and one core binded to listener
Ofcourse RAM I/O is very faster than HDD, so using RAM as cache storage will boost PHP scripts more than HDD

Seems a trade off between RAM and HDD I/O performances and security to me
Reply With Quote
  #12  
Old 07-28-2009, 02:28 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We recommend eAcc + /dev/shm , theoretically, it is in a HDD, but actually is in memory.
Right now, PHP suEXEC starts standalone PHP process individually, so the in memory cache cannot be shared at all.
Reply With Quote
  #13  
Old 07-29-2009, 11:15 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
EA has released an svn version that is supposed to be compatible with PHP 5.3. We tried testing it the other day, and it seemed to work great on our main sites. But then, one of our clients notified us that their site wasn't accessible, he was getting 503 errors. So we checked, and every site that we added using the PHP_suexec VH template wasn't working. We checked the logs and LSWS wasn't creating the php .sock files in the /tmp directory for each VH. So that tells me that PHP won't load with eA module enabled, but just for those particular sites.

It's weird because it works for the two main sites that use their own external app configurations.

So we had to remove eA and put back XCache and things are running smoothly again.

Not sure why eA won't start and causes PHP not to load on the other VH's. Any ideas?
Reply With Quote
  #14  
Old 07-29-2009, 03:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Maybe a permission issue?
try start lsphp process with "sudo -u <user_name> ./lsphp5 -i" see if you get any error.
Reply With Quote
  #15  
Old 07-29-2009, 03:45 PM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
I just changed all of the VH's to use the main server LSAPI and everything works now. Not sure if it faster than Xcache or not yet, still analyzing.
Reply With Quote
  #16  
Old 07-29-2009, 06:07 PM
Bono Bono is offline
Senior Member
 
Join Date: Jan 2009
Posts: 75
@robfrew you are running Xcache with PHP suEXEC enabled?
Reply With Quote
  #17  
Old 07-30-2009, 08:05 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Quote:
Originally Posted by Bono View Post
@robfrew you are running Xcache with PHP suEXEC enabled?
No, we have full control of our server so we do not need to run suExec. Not sure if you can run Xcache with it according to mistwang.

As a note to anyone trying to run the latest svn of eAcc with PHP 5.3, we tested it out and after about 4 hours of running, our load averages were hitting 200.00. After review, our lsphp processes looked like they were hanging with about 6% cpu usage and new ones were being created. Not sure why this was happening but we had to remove eAccelerator to make it stop. We have not had any problems with XCache and PHP 5.3 so far.
Reply With Quote
  #18  
Old 07-30-2009, 08:11 AM
Bono Bono is offline
Senior Member
 
Join Date: Jan 2009
Posts: 75
Quote:
Originally Posted by robfrew View Post
No, we have full control of our server so we do not need to run suExec. Not sure if you can run Xcache with it according to mistwang.

As a note to anyone trying to run the latest svn of eAcc with PHP 5.3, we tested it out and after about 4 hours of running, our load averages were hitting 200.00. After review, our lsphp processes looked like they were hanging with about 6% cpu usage and new ones were being created. Not sure why this was happening but we had to remove eAccelerator to make it stop. We have not had any problems with XCache and PHP 5.3 so far.
Yea you can't run it with suExec, but i'm checking maybe you have figure something out. I will wait for final XCache 1.3 version, so far 1.2.2 works very nice.
Reply With Quote
  #19  
Old 07-30-2009, 10:05 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
Quote:
Originally Posted by robfrew View Post
As a note to anyone trying to run the latest svn of eAcc with PHP 5.3, we tested it out and after about 4 hours of running, our load averages were hitting 200.00. After review, our lsphp processes looked like they were hanging with about 6% cpu usage and new ones were being created. Not sure why this was happening but we had to remove eAccelerator to make it stop. We have not had any problems with XCache and PHP 5.3 so far.
Guess maybe cross-process lock problem?
From one of APC developer's blog:
http://t3.dotgnu.info/blog/tags/apc/
Quote:
The really hard part of APC is the internal locking code it has - it's not that hard to do, just hard to figure out if you've done it wrong. And I'm just about to really mess around with the assembly spin locks and pthread mutex locks to make them cross-process locks which live in shared memory (remember that "volatile" keyword in C?). The other couple of lock modes are already cross-process and slow (because of the syscall). If these work right, I won't really have to cripple the fast part of the code to implement the features I have in mind.
Another APC developer @facebook has demo to compare several lock method's performance.
Here's his blog:http://tekrat.com/
the detail is in the excellent slides:http://prezi.com/135715/ (as mentioned in Jul 24,2009 blog)
Reply With Quote
  #20  
Old 08-15-2009, 02:19 AM
annoumure
Guest
 
Posts: n/a
Default XCache vs eAcc

Well first of all its
Codehpizeand not phpsize.

I am curious why do you need X-Cache? Are you sure thats the thing you need for your hosting?

About Apache issues, you are trying to install them from yum. You need to install xcache from source, otherwise you will make a mess in your system.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:16 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.