News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

eAccelerator Not showing in SMF compile help!!

Started by oOo--STAR--oOo, August 27, 2010, 07:25:40 AM

Previous topic - Next topic

oOo--STAR--oOo

Hi.. I'm totally new to eAccelerator.
I have done a search and found many threads all talking about the fact I need to recompile the eAccelerator to work with SMF.

QuoteFor SMF to work with it, you must use the following configuration switches when compiling eAccelerator.

--with-eaccelerator-shared-memory
--with-eaccelerator-content-caching

I just don't understand a few things about his statement.
Do I have to uninstall eAccelerator and some how install it with these commands?
I dunno exactly what he means?

I am using webmin and virtualmin with PHP Version 5.2.11
Also I am using mod_fcgid 2.2-10.el5

Please could some one explain to me a little better of how I configure/compile this to work with SMF.??
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

CapadY

Cause this is an eAccelerator-problem I think you can better ask this at the eAccelerator support forum.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

flapjack

Quote from: capady on August 27, 2010, 07:33:31 AM
Cause this is an eAccelerator-problem I think you can better ask this at the eAccelerator support forum.
lol, another useless answer

OP: which version are you using? those options are enabled by default until 0.9.5. Keep in mind that when enabling those features on systems where you can't trust all users, like in shared hosting environments, this could really fill up the cache causing all scripts to only exist on disk which isn't good for performance. AFAIK the upcoming PHP6 has caching mechanisms built-in

oOo--STAR--oOo

#3
I'm actually using it to increase the performance of my PHP scripts thats what I need it to do..
Thats what it says it does lol... Since installing it. Its not effected the server 1 bit.
I aint putting a nail on it but I think even without it configured its improved something as my site feels faster.
I dunno it just feels faster.

Anyway My server specs are
Intel(R) Xeon(R) CPU E5620 @ 2.40GHz , 4 cores
4GB Memory

I am using about 400 - 600
with about 70 - 80 processes running.
I keep getting the ODD spikes in CPU which is caused by php-cgi on one of my domains.
I figured if I can cache this It would improve these numbers. It can take around 40% of my CPU just off one script.
I really need that reducing.

Right now my load averges just settle at CPU load averages 0.70 (1 min) 0.50 (5 mins) 1.15 (15 mins) 
But because of these php-cgi prosesses spiking the server they then rise to 7-8 takes about 10 mins for them to calm down again.

Also I am using •Release-0.9.6.1 for my eAccelerator.

Any help would be much appreciated.. I run a gallery that supports this and SMF. So I figured this could help on over all performace.

Also by shared you mean shared hosting right?? I am currently using a VPS..

EDIT: here is my PHP.info File Click Here

You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.


CapadY

Quote from: flapjack on August 27, 2010, 07:45:55 AM
Quote from: capady on August 27, 2010, 07:33:31 AM
Cause this is an eAccelerator-problem I think you can better ask this at the eAccelerator support forum.
lol, another useless answer

If you have problems with my answers I would like it when you tell me via an PM in stead of public.

I have absolutly no problem with stopping my support work, just tell me.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

oOo--STAR--oOo

#6
Don't use my thread to rant. Plus his statment is valid. I agree with flapjack...
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

flapjack

capady, any other wishes you may have, send it to Santa, will you? and if you don't have anything to say on a given subject, then I think staying out of it would be the best thing you could possibly do. I don't mind sending people to get help somewhere else, but as a last resort, not the first answer, just to be the first who answers the post in 7 mins.

flapjack

OP, seems to me eA works just fine, scroll down and see for yourself:
QuoteMemory Size    33,554,360 Bytes
Memory Available    10,508,408 Bytes
Memory Allocated    23,045,952 Bytes
do you have any other websites there, or just SMF? if it's just SMF this indicates that the scripts are being cached properly and there's nothing to worry about

oOo--STAR--oOo

I have SMF and a gallery, thats it.
The problem is SMF is not detecting it :(

I get this error
SMF has not been able to detect a compatible accelerator on your server.
It is caching file though I have no idea where from. I went in my VPS to check and there is about 20 file in 2 of the folders.
It could be from the gallery or SMF where it is caching files.
I have a few subdomains but they just serve files no php scripts there.
No resources being used there either just on SMF and the gallery.

I dunno how to get SMF to detect it

SORRY EDIT: Missed things out
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

flapjack

well, just set caching level to 2 and see what happens.

one important thing: I don't know how (and IF) eA caches static files (such as images) as I think it's only good for caching php files and not the static content. AFAIK the better way to speed up the whole thing for you would be to install nginx to server only static content

or you could use eA + memcached for example (or switch to php6 when it comes out)

oOo--STAR--oOo

Hmm .. So I could install both of them and improve the server even more?

How would memcache benefit me.. What resources would that use?
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

flapjack

from eaccelerator.net:
"eAccelerator stores compiled PHP scripts in shared memory and executes code directly from it. It creates locks only for a short time, while searching for a compiled PHP script in the cache, so one script can be executed simultaneously by several engines. Files that can't fit in shared memory are cached on disk only. "

what I suspected

oOo--STAR--oOo

Ooo I mean memcache..

If I set the level to 2.. What would I be looking for?

Also.. just to note.. The reason i am doing this is because I have a server that needs tuning.. I have spent the best part of 3 whole days just working on this server.

Upgrading PHP version configuring it all to use the least resources because I dunno why it keeps bursting and thats it then the website is offline.
Well I think my 3 days have actually counted for something.. There seems to be a lot better performance..
I just wanna get suited up for when the numbers start pouring in.
We only been born for 4 - 5 months and have nearly 3,000 members already.

I just want a perfect setup..
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

feline

eAccelerator don't more support user (key) cache, so SMF can't detect it.
MemCached is not the best (my meaning), I use APC (3.1.4) on my system. Works perfect and fast (99,8% hits).

Fel

oOo--STAR--oOo

Hmmm so how do I know the eAccelerator is working lol...

Website seems fast and everything.. Only 1 problem.. Memory and processes have risen.
Memory is @ 1.35GB and processes are approaching 100

So i think it must be doing something..

Can you point me in the right direction for installing APC for Centos 5.5 with Virtualmin and Webmin?

If thats the best option then I will go with that.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

oOo--STAR--oOo

O.k. I had some trouble actually getting this installed..
I managed to do this using my own initiative.

I needed to install
yum install httpd-devel[/cpde]
But it wouldn't install because of missing dependencies.

So I installed
[code]yum install httpd-devel.x86_64


Then I installed
pecl install apc
echo "extension=apc.so" > /etc/php.d/apc.ini
/etc/init.d/httpd start

checked my info.php and also SMF detected it so thats great..

I have one question that and worry.
Because I have eaccelerator Unstalled aswell is this going to conflict and cause any problems.
Or will they both work along side each other doing there own business.
Because as I have read it seems they do different things.
Please can some one set me straight on this.
I'm gonna be worried till i know.

Thanks for all your help. I have recieved more help on getting my forum up and running properly from here than I have from my host.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

flapjack

you should stick to one of them, and if APC works fine, just get rid of eA
as for the memory and cpu usage rising - well, it's how it works - instead of putting pressure on your IO system, it uses memory and cpu to store the most popular content, so when some process wants to retrieve the information it doesn't have to use IO system

oOo--STAR--oOo

Even so.. I think the system is working good with both.. I dunno but its ALOT better than what it was..
Will these 2 conflict?

So I may just keep both.. I heard something about the IO causing load averages to be high.
There the lowest I have ever seen and consistant 2.

I have had problems from day one with this server.. I will keep that in mind for when there becomes a problem. So if there is no conflicts I will keep them both running..

1 more problem.. How do i set up the APC.php controle panel.. I have no idea where this file is?
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

flapjack

to be honest I never knew the bloody thing have a control panel in first place :D

however when googling I found this:
http://fplanque.com/dev/linux/install-apc-php-cache-debian-lenny

Advertisement: