fwfxf8uv Posted July 6, 2017 Posted July 6, 2017 (edited) 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 July 6, 2017 by isobar
Krydos Posted July 6, 2017 Posted July 6, 2017 There you go http://krydos.heliohost.org/71/phpinfo.php
fwfxf8uv Posted July 7, 2017 Author Posted July 7, 2017 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.
Krydos Posted July 7, 2017 Posted July 7, 2017 Requirements PHP 5.3, 5.4, 5.5, 5.6 or 7.0Source: https://github.com/tideways/php-profiler-extension Opcache has been enabled for php 7.1 http://krydos.heliohost.org/71/phpinfo.php
fwfxf8uv Posted July 7, 2017 Author Posted July 7, 2017 (edited) 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 July 7, 2017 by isobar
Krydos Posted July 7, 2017 Posted July 7, 2017 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.
fwfxf8uv Posted July 7, 2017 Author Posted July 7, 2017 (edited) 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.listwget -qO - https://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages/EEB5E8F4.gpg | sudo apt-key add -sudo apt-get updatesudo 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.listwget -qO - https://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages/EEB5E8F4.gpg | sudo apt-key add -sudo apt-get updatesudo 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 July 7, 2017 by isobar
Krydos Posted July 7, 2017 Posted July 7, 2017 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.
fwfxf8uv Posted July 8, 2017 Author Posted July 8, 2017 That makes sense. In this case, I will just test on my computer at home. Thanks again for setting up APCu, and OpCache.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now