News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

What is eAccelerator?

Started by [Unknown], September 19, 2005, 01:35:51 AM

Previous topic - Next topic

Compuart

oh, in the same release notes: "This version DOESN'T support php 5.1"
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Webrunner

There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

Compuart

I guess you're bound to use APC then :P (that is, if that one is compatible...)
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

bluemuse

is it ok now:

./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
checking for PHP extension directory... /usr/lib/php4
checking for re2c... exit 0;
checking for gawk... gawk
checking whether to enable eaccelerator support... yes, shared
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking mandatory system headers... yes
checking whether union semun is defined in sys/sem.h... no
checking for sysvipc shared memory support... no
checking for mmap shared memory support... no
checking for mmap on /dev/zero shared memory support... no
checking for anonymous mmap shared memory support... no
checking for posix mmap shared memory support... no
checking for best shared memory type... no
configure: WARNING: eaccelerator cannot detect shared memory type, which is required
checking for spinlock semaphores support... no
checking for pthread semaphores support... no
checking for posix semaphores support... no
checking for sysvipc semaphores support... no
checking for fcntl semaphores support... no
checking for flock semaphores support... no
checking for best semaphores type... no
configure: WARNING: eaccelerator cannot semaphores type, which is required
checking for sched_yield... yes
checking for mprotect... yes
checking for ext/session/php_session.h... yes
checking for a sed that does not truncate output... //bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h


Compuart

Download a DLL from this page, move it to the extension folder, include the extension in php.ini as well as the other php.ini settings as documented in the eaccelerator manual and restart PHP.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

ArkServer

Quote from: Compuart on February 27, 2006, 06:40:16 PM
Download a DLL from this page, move it to the extension folder, include the extension in php.ini as well as the other php.ini settings as documented in the eaccelerator manual and restart PHP.

Done and added this:

extension="eaccelerator.dll"
eaccelerator.shm_size = "64"
eaccelerator.cache_dir = "/tmp/eaccelerator"
eaccelerator.enable = "1"
eaccelerator.optimizer = "1"
eaccelerator.debug = "0"
eaccelerator.filter = ""
eaccelerator.shm_max = "0"
eaccelerator.shm_ttl = "0"
eaccelerator.shm_prune_period = "0"
eaccelerator.shm_only = "0"
eaccelerator.compress = "1"
eaccelerator.compress_level = "9"
eaccelerator.keys = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content = "shm_and_disk"


but the page generation time is still around 0.3xx / 1+ seconds

burthold

Do not, and I repeat DO NOT run eaccelerator or APC if you are using sapi module for IIS on windows. Thread aborts, IIS crashes, pages don't render fun stuff. If you want to use them you must be running cgi\fastcgi mode!!!!

I spent days trying to figure out what the hell was wrong.

Wes

qtime

Can someone explain the levels of caching in SMF?
I did a search, but not a good answer found.

I use eAccelerator and it is more than 10 times faster now, a lot of cpu resources are used by php.

Compuart

There are several places within SMF that use caching. Most uses of caching are level 1, but some places it's either requiring a lot of cache memory or experimental (that is, it might not be updated frequently enough to show the most up to date information). In those cases only cache levels 2 and 3 will be using cache.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

crony

Hello,

The new version 0.9.5 is compressed into "tar.bz2" files...I get tis error

[root@ns1065 root]# wget http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.tar.bz2
--15:57:01--  http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.tar.bz2
           => `eaccelerator-0.9.5.tar.bz2'
Résolution de bart.eaccelerator.net... 193.190.253.234
Connexion vers bart.eaccelerator.net[193.190.253.234]:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 121,791 [application/x-tar]

100%[====================================>] 121,791      263.03K/s

15:57:02 (262.89 KB/s) - `eaccelerator-0.9.5.tar.bz2' saved [121,791/121,791]

[root@ns1065 root]# tar xvzf eaccelerator-0.9.5.tar.bz2

gzip: stdin: not in gzip format
tar: Le processus enfant a retourné le statut 1
tar: Statut d'erreur reporté d'erreurs précédentes.



PHP 4.3.11 / MySQL 4.1.12

Thanx for your help! :)

crony

Ok, here's the good code line :

tar xvfj eaccelerator-0.9.5.tar.bz2

Then after that all steps successful, thanx for that topic !
:)

Jasa

Just feel myself so n00b again!  :D What do I put to the settings box, where example is "serve1, server2, server3:port, server4"? Is localhost the answer? or do I leave it empty? :)

Thanks! :)

Ben_S

Nothing unless you are using memcached
Liverpool FC Forum with 14 million+ posts.

Jasa

Thank you! When I wrote "localhost" there, the forum worked with no errors. But when somebody tried to register, the "Custom profile field" -mod said that you haven't filled one area that must be filled, and from admin panel you couldn't change that mods options. But now it's working! :)

Webrunner

I have the latest eaccelerator installed and it also shows up in phpinfo but SMF doesn't detect it.
Any ideas?
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

Compuart

The new eaccelerator by default disables cache I'm afraid. You'd need to explicitely configure it with the shared memory functions. Use

./configure --help

for details.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Webrunner

OK, i recompiled it with cache enabled and did a "make install" (i didn't remove the "old" one first).
No change, what am i doing wrong?

See here: http://www.vrouwenpower.nl/sys/php.php
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

madfiddler

I've been looking at this, and I think I've installed it correctly. However when I go to add the bit to php.ini I find there is already stuff there.... So, is this right?

Quote[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.10
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.10

zend_optimizer.version=2.5.10a
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

zend_extension=/root/downloads/eaccelerator-0.9.5/modules/eaccelerator.so

I added the last line. Thanks,

m

madfiddler


Advertisement: