turnkeylinux / tracker

TurnKey Linux Tracker
https://www.turnkeylinux.org
70 stars 16 forks source link

v13.1 Moodle appliance will need opcache (not xcache) #250

Closed JedMeister closed 9 years ago

JedMeister commented 10 years ago

Assuming that TKL v13.1 will include an updated version of Moodle, the default LAMP stack will need to be modified to include opcache, rather than xcache (for webserver caching).

It seems that xcache can even be an issue with older versions of Moodle (see this forum thread).

I have documented how to install optcache in this post (about 1/3 of the way down, with the paragraph that starts "It all appeared to go well But after I did that Apache kept segfaulting (Chrome was reporting "No data recieved")... ").

lirazsiri commented 10 years ago

Thanks for putting it all in one place. Would you recommend replacing xcache with optcache on all apps or just Moodle?

On 25/07/14 03:28, Jeremy Davis wrote:

Assuming that TKL v13.1 will include an updated version of Moodle, the default LAMP stack will need to be modified to include optcache, rather than xcache (for webserver caching).

It seems that xcache can even be an issue with older versions of Moodle (see this forum thread).

I have documented how to install optcache in this post (about 1/3 of the way down, with the paragraph that starts "It all appeared to go well But after I did that Apache kept segfaulting (Chrome was reporting "No data recieved")... ").


Reply to this email directly or view it on GitHub: https://github.com/turnkeylinux/tracker/issues/250

JedMeister commented 10 years ago

That is a really good question. So I just did some research.

Conclusion: For v13.1, I think that we should just use opcache with Moodle and leave xcache as the LAMP (and derivatives) default until we rebase on Debian Jessie .

OTOH if we find some other PHP based apps reacting strangely then perhaps we should rethink this...?!

Also I found the git repo for Zend opcache: https://github.com/zendtech/ZendOptimizerPlus

PS I also marked this as a bug...

lirazsiri commented 10 years ago

Good summary. So it looks like post-Wheezy we will eventually be able to phase out xcache because PHP is getting it's own standard op cacher. That will be great because if PHP has its own built in opcacher then presumably all PHP projects will be well tested against it and we don't have to read into the type of issue we're seeing with Moodle. In the meantime we should fix Moodle by swapping out xcache for opcache.

On 27/07/14 00:56, Jeremy Davis wrote:

That is a really good question. So I just did some research.

  • opcache is bundled with PHP >= 5.5; it is not available from Debian repo until Jessie (which includes PHP5.6 - opcache appears to be bundled in Jessie's php5-common package)
  • general consensus seems to be that opcache provides better performance over most other PHP caching tools; but I could only find results for opcache with PHP>=5.5
  • I found one source that compared PHP5.3 with APC VS PHP5.5 with opcache and the improvements were negligible.

Conclusion: For v13.1, I think that we should just use opcache with Moodle and leave xcache as the LAMP (and derivatives) default until we rebase on Debian Jessie .

OTOH if we find some other PHP based apps reacting strangely then perhaps we should rethink this...?!

Also I found the git repo for Zend opcache: https://github.com/zendtech/ZendOptimizerPlus


Reply to this email directly or view it on GitHub: https://github.com/turnkeylinux/tracker/issues/250#issuecomment-50249770

JedMeister commented 9 years ago

I have re-targeted this bug to the v14.0 release. It is likely that on Jessie it will need very little tweaking but I won't close it until we can confirm that it isn't an issue.

JedMeister commented 9 years ago

no longer appears to be an issue with Jessie base (v14.0)

JedMeister commented 8 years ago

Even though no one reported this as an issue for v14.0 I have removed php5-xcache for v14.1. FWIW Jessie's version of PHP5 has a built-in opcacher anyway...