Jump to content

Apcu Extension For Php 7


fwfxf8uv

Recommended Posts

Hi.

 

After testing my Mediawiki installed on Tommy with Pingdom, I found that nearly all of the load time is waiting for PHP 7.1.6.

 

Probably the APCu extension would help in this case. Can you guys install that for us?

 

Thank you.

Edited by isobar
Link to comment
Share on other sites

Thank you very much. Right now the website takes 2.5-3 seconds to load.

 

I want to get the loading time to about 1 seconds. But I don't quite know what takes a long time to load.

 

Can you gusy install the tideway for PHP 7 for us? I am trying to follow the profiling guide at https://www.mediawiki.org/wiki/Manual:Profiling

 

I don't have much experience in managing a website. How to tell if opcache is enabled for PHP 7?

I get how the phpinfo would look like for PHP 5.5 from stackoverflow. But I don't see something like that for the phpinfo page for PHP 7.

 

Thanks again.

Link to comment
Share on other sites

Didn't notice that.

Hmm.

 

Is it ok to install that for PHP 7.0 at HelioHost?

 

If that is not a good idea, how about XHProf for PHP 5.6?

 

Thanks a lot for setting up the Opcache. Let me use pingdom to check my site again.

Edited by isobar
Link to comment
Share on other sites

If you're going for speed, and your software supports it, stick with 7.1. It beats 5.x by a ton, and edges out 7.0 by a little across the board too https://symfony.fi/entry/php-7-1-vs-7-0-benchmarks-symfony

 

Correct me if I'm wrong, but tideways appears to be a paid service that starts at 39 euros per month, and requires being compiled from source. No one is going to pay 39 euros per month to test their php speed on a free host, and compiling things from source has a really high likelihood of breaking everything else on a production server like Tommy.

Link to comment
Share on other sites

Summary:

I am sorry. I mean the tideway module for PHP, which is free. The ui indeed is not free.

It has pre-compiled binaries for various platform ... I have no experience in managing a server for a lot of people, and don't know if that is safe enough.

If tideways is not good, I was thinking about XHProf on PHP 5.6. So that I can profile on PHP5.6, and then switch to PHP 7.1 for production. The result may not be accurate, but that might still give some ideas. It is a pity that Facebook stopped developing XHProf when they switch from Apache to developing HHVM for running PHP a while ago. Wikipedia also runs on HHVM now ...

 

Mediawiki's help for profiling says the extension is free but the ui is not. (mediawiki.org)

"Starting with MediaWiki 1.29, you can also use tideways, which additionally supports PHP 7. Tideways also advertises a seemingly proprietary UI to visualize results, but if you follow the instructions for without the UI, it should be fine. Installing the php-tideways Debian/Ubuntu package also just includes the PHP extension."

 

The tideway ui currently still costs money but the php extension is free (tideways.io)

UI is not free:

"Try Tideways Profiler UI for free ... start free 30 days trial."

Don't need account to install extension:

"You can install Tideways PHP Extension in various ways, it is not necessary to have an account for the Tideways product."

The github repository is definitely free:

"We recommend to use our pre-compiled packages ...If you want to compile ... head over to github"

Precompiled binaries (https://tideways.io/profiler/downloads)

The tideways module for php can be installed for free at least a year ago (stackoverflow)
"echo 'deb http://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages debian main' > /etc/apt/sources.list.d/tideways.list

wget -qO - https://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages/EEB5E8F4.gpg | sudo apt-key add -
sudo apt-get update
sudo apt
-get install tideways-php tideways-daemon"

 

Those installation commands seems up to date (tideway installation manual)

echo 'deb http://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages debian main' > /etc/apt/sources.list.d/tideways.list
sudo apt-get update
sudo apt-get install tideways-php tideways-daemon
Mediawiki has a script that display profiling information, and it can use tideway without the ui (mediawiki.org)
"... provides an Xhprof-backed profiler that captures profiling data for all functions as well as sub-functional units ... Even if you are using Tideways, still specify the ProfilerXhprof class."
Edited by isobar
Link to comment
Share on other sites

Why not just install CentOS (or any linux distro) at home, and try to replicate your mediawiki install as accurately as possible? If you have any questions about how things are set up on Tommy I can help you out with that.

 

I'm not going to install random stuff that isn't going to benefit a large number of people. There are over 1000 other accounts on Tommy of which maybe single digits would actually use tideways, and installing anything like that is just that much more cpu time used. So, it would actually decrease performance for 99% of people on Tommy.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...