Z
Z
zizop2010-11-11 18:15:47
PHP
zizop, 2010-11-11 18:15:47

Why is there no gain after switching to php-fpm from regular php?

Actually did a test on ApacheBenchmark before and after. The difference is insignificant.
And there is also such a strange feeling that php-fpm does not keep the code of included files in memory, because. when changing the code of the file, the changed result is displayed, and in theory the old one (loaded earlier) should be displayed.
There is a /etc/init.d/php5-fpm reload command for reloading, but it is essentially not needed.
Or I forgot to specify some parameter in the configuration?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
F
fallen, 2010-11-11
@zizop

I recommend 5.3.4 from svn, build with -disable-all and include only the necessary modules, as needed. Don't forget apc - the latest version already works well with fpm. Well, and optimization of the assembly for your platform.

W
Wott, 2010-11-11
@Wott

RTFM php-fpm.org/wiki/FAQ

Does the PHP-FPM to speed processing of requests?


No, it doesn't really change anything. However, if you use some of the special features, the performance of certain queries can be accelerated.

O
Oleg Matrozov, 2010-11-11
@Mear

And also such a strange feeling that php-fpm does not keep the code of included files in memory

Hmm... at least standard php doesn't support them either. And php-fpm should?
My php began to cache opcode only when using any caching system like eAccelerator or WinCache. Then, according to speed measurements, inclusions began to be made noticeably faster, and changes in the source code are not immediately applied.

S
Sergey, 2010-11-11
@bondbig

You will not get any increase before mod_php. Just saving memory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question