Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Update MediaWiki from 1.24.0 to 1.26.2 #57

Closed
wants to merge 1 commit into from

Conversation

reedy
Copy link
Contributor

@reedy reedy commented Nov 26, 2015

  • Use pristine MediaWiki tarball, copy in LocalSettings.php.
  • Remove $wgDisableCounters = true;, code was removed from MW core.
  • Remove patch to include LCStoreStaticArray, in MW Core as of 1.26.
  • Don't live hack LocalisationCache.php to use $storeClass.
    = 'LCStoreStaticArray';, just set it in LocalSettings.php.
  • Update MySQL patch file.

Fixes #56

@reedy reedy changed the title Update mediawiki form 1.24.0 to 1.26.0 Update mediawiki from 1.24.0 to 1.26.0 Nov 26, 2015
@reedy reedy force-pushed the mw-rel126 branch 2 times, most recently from 7ad6004 to ce71ab3 Compare November 26, 2015 12:24
@reedy
Copy link
Contributor Author

reedy commented Nov 26, 2015

I will note straight off that is untested, unfortunately. The documentation is a little lacking; should I be able to get away with installing all the "requirements" (on any linux-y OS?), and then the script do the rest?

It looks like, to test it on Ubuntu I'd need 12.04 to get siege 2. Debian would need old-stable... Seem a bit old to be properly representative?

I'll have a look at popping a CentOS 6 vm, and see how far I get. Maybe getting a one liner install command for people at the same time

@reedy
Copy link
Contributor Author

reedy commented Nov 26, 2015

CentOS 6 installed at bigv.io
yum update
reboot
yum install wget
wget https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh ./epel-release-6-8.noarch.rpm
find it's siege 3.0.8
wget http://pkgs.repoforge.org/siege/siege-2.72-1.el6.rf.x86_64.rpm
yum install perl
rpm -Uvh ./siege-2.72-1.el6.rf.x86_64.rpm
yum install unzip mysql-server hhvm php php-mysqli
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

At this point I gave up, for now. Gotta then build hhvm, or use some random persons hhvm repo?

@reedy
Copy link
Contributor Author

reedy commented Nov 26, 2015

Ubuntu 12.04 instaleld at bigv.io
apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get install python-software-properties
reboot
add-apt-repository ppa:boost-latest/ppa
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
echo deb http://dl.hhvm.com/ubuntu precise main | tee /etc/apt/sources.list.d/hhvm.list
apt-get update
apt-get install libboost1.55-all-dev hhvm mysql-server unzip php5 php5-mysql siege

Nope, can't get any further

root@hhvm-oss-performance:~# apt-get install hhvm mysql-server unzip php5 php5-mysql siege
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 hhvm : Depends: libboost-filesystem1.49.0 but it is not installable
        Depends: libboost-program-options1.49.0 but it is not installable
        Depends: libboost-system1.49.0 but it is not installable
        Depends: libboost-regex1.49.0 but it is not installable
        Depends: libboost-thread1.49.0 but it is not installable
E: Unable to correct problems, you have held broken packages.
root@hhvm-oss-performance:~#

https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-on-Ubuntu-12.04 says to install boost 1.49
https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04#installing-boost-149 1.49 section doesn't exist, it's 1.55

So we'd need to look at the old version https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04/_compare/4b3d35bef1cb494408a4d5ef0eaeca44f5adf270...d8aeff00ca508eb8f5996bc565185e686b08615b

But those old libboost1.49 packages don't exist anymore

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

apt-get update
apt-get dist-upgrade -y
apt-get install python-software-properties -y
add-apt-repository ppa:mapnik/boost
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
echo deb http://dl.hhvm.com/ubuntu precise main | tee /etc/apt/sources.list.d/hhvm.list
apt-get update
apt-get install hhvm mysql-server unzip php5 php5-fpm php5-cgi php5-mysql siege nginx git -y
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
git clone https://github.com/hhvm/oss-performance.git
cd oss-performance
composer install
echo 1 | tee /proc/sys/net/ipv4/tcp_tw_reuse
service nginx start
chmod 777 /var/log/nginx/*
siege.config
hhvm perf.php --mediawiki --hhvm=`which hhvm`

It's annoying you can't just run it as root...

nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
nginx: [emerg] could not build the types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 32

root@hhvm-oss-performance:/home/reedy/oss-performance# grep -R types_hash /etc/nginx/*
/etc/nginx/nginx.conf:  types_hash_max_size 2048;

bump them further...

root@hhvm-oss-performance:/home/reedy/oss-performance# grep -R types_hash /etc/nginx/*
/etc/nginx/nginx.conf:  types_hash_max_size 4096;
/etc/nginx/nginx.conf:  types_hash_bucket_size 64;

Ah, it's in your nginx conf. PR made in #62

Now getting stuck at

running hphp took 0'04" (4235302 us) wall time

Fatal error: Uncaught exception 'HH\InvariantException' with message 'Failed to create static content cache' in :
Stack trace:
#0 /home/reedy/oss-performance/base/HHVMDaemon.php(216): HH\invariant_violation()
#1 /home/reedy/oss-performance/base/PerfRunner.php(83): HHVMDaemon->start()
#2 /home/reedy/oss-performance/base/PerfRunner.php(42): PerfRunner::RunWithOptionsAndEngine()
#3 /home/reedy/oss-performance/base/PerfRunner.php(17): PerfRunner::RunWithOptions()
#4 /home/reedy/oss-performance/perf.php(15): PerfRunner::RunWithArgv()
#5 /home/reedy/oss-performance/perf.php(19): perf_main()
#6 {main}
reedy@hhvm-oss-performance:/home/reedy/oss-performance$ 

https://github.com/hhvm/oss-performance/blob/master/base/HHVMDaemon.php#L213-L216

Both !$this->options->filecache and file_exists($staticContent) are false

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

diff --git a/base/HHVMDaemon.php b/base/HHVMDaemon.php
index 9b56aa3..a3cd664 100644
--- a/base/HHVMDaemon.php
+++ b/base/HHVMDaemon.php
@@ -206,7 +206,7 @@ final class HHVMDaemon extends PHPEngine {
         $args->add('--file-cache');
         $args->add($this->options->tempDir.'/static.content');
       }
-
+var_dump($this->options->filecache, $staticContent, $args);
       Utils::RunCommand($args);

       invariant(file_exists($bcRepo), 'Failed to create bytecode repo');
**************************
** 2015-11-29 01:01:27 UTC
** Starting PHP Engine
bool(true)
string(36) "/tmp/hhvm-nginxKrbFtH/static.content"
object(HH\Vector)#53 (50) {
  [0]=>
  string(13) "/usr/bin/hhvm"
  [1]=>
  string(6) "--hphp"
  [2]=>
  string(8) "--target"
  [3]=>
  string(4) "hhbc"
  [4]=>
  string(12) "--output-dir"
  [5]=>
  string(21) "/tmp/hhvm-nginxKrbFtH"
  [6]=>
  string(11) "--input-dir"
  [7]=>
  string(31) "/tmp/hhvm-nginxKrbFtH/mediawiki"
  [8]=>
  string(8) "--module"
  [9]=>
  string(1) "/"
  [10]=>
  string(9) "--cmodule"
  [11]=>
  string(1) "/"
  [12]=>
  string(3) "-l3"
  [13]=>
  string(3) "-k1"
  [14]=>
  string(28) "--ffile=StartProfiler.sample"
  [15]=>
  string(65) "--ffile=extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.txt"
  [16]=>
  string(47) "--ffile=extensions/SyntaxHighlight_GeSHi/README"
  [17]=>
  string(18) "--ffile=thumb.php5"
  [18]=>
  string(28) "--ffile=opensearch_desc.php5"
  [19]=>
  string(26) "--ffile=thumb_handler.php5"
  [20]=>
  string(21) "--ffile=img_auth.php5"
  [21]=>
  string(26) "--ffile=docs/magicword.txt"
  [22]=>
  string(28) "--ffile=docs/maintenance.txt"
  [23]=>
  string(40) "--ffile=docs/php-memcached/Documentation"
  [24]=>
  string(24) "--ffile=profileinfo.php5"
  [25]=>
  string(16) "--ffile=api.php5"
  [26]=>
  string(18) "--ffile=index.php5"
  [27]=>
  string(17) "--ffile=load.php5"
  [28]=>
  string(28) "--ffile=mw-config/index.php5"
  [29]=>
  string(28) "--ffile=maintenance/7zip.inc"
  [30]=>
  string(33) "--ffile=maintenance/userDupes.inc"
  [31]=>
  string(36) "--ffile=maintenance/importImages.inc"
  [32]=>
  string(35) "--ffile=maintenance/commandLine.inc"
  [33]=>
  string(47) "--ffile=maintenance/deleteArchivedRevisions.inc"
  [34]=>
  string(35) "--ffile=maintenance/userOptions.inc"
  [35]=>
  string(30) "--ffile=maintenance/sqlite.inc"
  [36]=>
  string(30) "--ffile=maintenance/backup.inc"
  [37]=>
  string(36) "--ffile=maintenance/cleanupTable.inc"
  [38]=>
  string(42) "--ffile=maintenance/language/languages.inc"
  [39]=>
  string(46) "--ffile=maintenance/language/checkLanguage.inc"
  [40]=>
  string(48) "--ffile=maintenance/language/zhtable/Makefile.py"
  [41]=>
  string(37) "--ffile=maintenance/hiphop/run-server"
  [42]=>
  string(43) "--ffile=maintenance/deleteArchivedFiles.inc"
  [43]=>
  string(38) "--ffile=maintenance/backupPrefetch.inc"
  [44]=>
  string(38) "--ffile=maintenance/backupTextPass.inc"
  [45]=>
  string(18) "--ffile=wiki.phtml"
  [46]=>
  string(42) "--ffile=includes/normal/UtfNormalDataK.inc"
  [47]=>
  string(41) "--ffile=includes/normal/UtfNormalData.inc"
  [48]=>
  string(12) "--file-cache"
  [49]=>
  string(36) "/tmp/hhvm-nginxKrbFtH/static.content"
}
reedy@hhvm-oss-performance:/home/reedy/oss-performance$ hhvm --version
HipHop VM 3.6.6 (rel)
Compiler: tags/HHVM-3.6.6-0-gead6875c956d4bd5e906ebea899c71c3b8a7182d
Repo schema: 5034239b4e72c991556d7e651946e7fe89d8c2f4

So it seems Utils::RunCommand($args); isn't creating the file-cache dir?

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

If we manually run the command it's building and trying to run...

reedy@hhvm-oss-performance:/home/reedy/oss-performance$ '/usr/bin/hhvm' '--hphp' '--target' 'hhbc' '--output-dir' '/tmp/hhvm-nginxYQSTQK' '--input-dir' '/tmp/hhvm-nginxYQSTQK/mediawiki' '--module' '/' '--cmodule' '/' '-l3' '-k1' '--ffile=StartProfiler.sample' '--ffile=extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.txt' '--ffile=extensions/SyntaxHighlight_GeSHi/README' '--ffile=thumb.php5' '--ffile=opensearch_desc.php5' '--ffile=thumb_handler.php5' '--ffile=img_auth.php5' '--ffile=docs/magicword.txt' '--ffile=docs/maintenance.txt' '--ffile=docs/php-memcached/Documentation' '--ffile=profileinfo.php5' '--ffile=api.php5' '--ffile=index.php5' '--ffile=load.php5' '--ffile=mw-config/index.php5' '--ffile=maintenance/7zip.inc' '--ffile=maintenance/userDupes.inc' '--ffile=maintenance/importImages.inc' '--ffile=maintenance/commandLine.inc' '--ffile=maintenance/deleteArchivedRevisions.inc' '--ffile=maintenance/userOptions.inc' '--ffile=maintenance/sqlite.inc' '--ffile=maintenance/backup.inc' '--ffile=maintenance/cleanupTable.inc' '--ffile=maintenance/language/languages.inc' '--ffile=maintenance/language/checkLanguage.inc' '--ffile=maintenance/language/zhtable/Makefile.py' '--ffile=maintenance/hiphop/run-server' '--ffile=maintenance/deleteArchivedFiles.inc' '--ffile=maintenance/backupPrefetch.inc' '--ffile=maintenance/backupTextPass.inc' '--ffile=wiki.phtml' '--ffile=includes/normal/UtfNormalDataK.inc' '--ffile=includes/normal/UtfNormalData.inc' '--file-cache' '/tmp/hhvm-nginxYQSTQK/static.content'
running hphp...
parsing inputs...
Unable to stat file /tmp/hhvm-nginxYQSTQK/mediawiki/docs/Maintenance.php
Unable to stat file /tmp/hhvm-nginxYQSTQK/mediawiki/docs/php-memcached/MemCachedClient.inc.php
Unable to stat file /tmp/hhvm-nginxYQSTQK/mediawiki/includes/mail/Mail/mime.php
Unable to stat file /tmp/hhvm-nginxYQSTQK/mediawiki/includes/mail/Mail.php
Unable to stat file /tmp/hhvm-nginxYQSTQK/mediawiki/maintenance/PHPUnit/Autoload.php
Unable to stat file /tmp/hhvm-nginxYQSTQK/mediawiki/tests/TestsAutoLoader.php
analyzeProgram...
analyzeProgram took 0'01" (1335600 us) wall time
parsing inputs took 0'05" (5215263 us) wall time
pre-optimizing...

Assertion failure: tl_base != ((void *) -1)
Failed to mmap persistent RDS region. errno = Cannot allocate memory

/tmp/tmp.tgPI0H19mp/hphp/runtime/base/rds.cpp:435: void HPHP::rds::threadInit(): assertion `tl_base != ((void *) -1)' failed.

Assertion failure: tl_base != ((void *) -1)
Failed to mmap persistent RDS region. errno = Cannot allocate memory

/tmp/tmp.tgPI0H19mp/hphp/runtime/base/rds.cpp:435: void HPHP::rds::threadInit(): assertion `tl_base != ((void *) -1)' failed.
hphp failed
running hphp took 0'07" (7457456 us) wall time
reedy@hhvm-oss-performance:/home/reedy/oss-performance$

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

Looks like 1GB ram wasn't enough. Bumped the VM to 3GB

**************************
** 2015-11-29 01:46:08 UTC
** Starting PHP Engine
string(1461) "'/usr/bin/hhvm' '--hphp' '--target' 'hhbc' '--output-dir' '/tmp/hhvm-nginx2fPzUQ' '--input-dir' '/tmp/hhvm-nginx2fPzUQ/mediawiki' '--module' '/' '--cmodule' '/' '-l3' '-k1' '--ffile=StartProfiler.sample' '--ffile=extensions/SyntaxHighlight_GeSHi/geshi/docs/geshi-doc.txt' '--ffile=extensions/SyntaxHighlight_GeSHi/README' '--ffile=thumb.php5' '--ffile=opensearch_desc.php5' '--ffile=thumb_handler.php5' '--ffile=img_auth.php5' '--ffile=docs/magicword.txt' '--ffile=docs/maintenance.txt' '--ffile=docs/php-memcached/Documentation' '--ffile=profileinfo.php5' '--ffile=api.php5' '--ffile=index.php5' '--ffile=load.php5' '--ffile=mw-config/index.php5' '--ffile=maintenance/7zip.inc' '--ffile=maintenance/userDupes.inc' '--ffile=maintenance/importImages.inc' '--ffile=maintenance/commandLine.inc' '--ffile=maintenance/deleteArchivedRevisions.inc' '--ffile=maintenance/userOptions.inc' '--ffile=maintenance/sqlite.inc' '--ffile=maintenance/backup.inc' '--ffile=maintenance/cleanupTable.inc' '--ffile=maintenance/language/languages.inc' '--ffile=maintenance/language/checkLanguage.inc' '--ffile=maintenance/language/zhtable/Makefile.py' '--ffile=maintenance/hiphop/run-server' '--ffile=maintenance/deleteArchivedFiles.inc' '--ffile=maintenance/backupPrefetch.inc' '--ffile=maintenance/backupTextPass.inc' '--ffile=wiki.phtml' '--ffile=includes/normal/UtfNormalDataK.inc' '--ffile=includes/normal/UtfNormalData.inc' '--file-cache' '/tmp/hhvm-nginx2fPzUQ/static.content'"
running hphp...
all files saved in /tmp/hhvm-nginx2fPzUQ ...
running hphp took 0'46" (46076593 us) wall time
mapping self...
mapping self took 0'00" (2325 us) wall time
Uncaught exception: no factory for server type "proxygen"\n

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Warning: Failed to open http://localhost:8091/check-health () in /home/reedy/oss-performance/base/HHVMDaemon.php on line 343

Fatal error: Uncaught exception 'HH\InvariantException' with message 'Failed to start HHVMDaemon' in :
Stack trace:
#0 /home/reedy/oss-performance/base/PerfRunner.php(88): HH\invariant_violation()
#1 /home/reedy/oss-performance/base/PerfRunner.php(42): PerfRunner::RunWithOptionsAndEngine()
#2 /home/reedy/oss-performance/base/PerfRunner.php(17): PerfRunner::RunWithOptions()
#3 /home/reedy/oss-performance/perf.php(15): PerfRunner::RunWithArgv()
#4 /home/reedy/oss-performance/perf.php(19): perf_main()
#5 {main}
reedy@hhvm-oss-performance:/home/reedy/oss-performance$ 

String quoting bug or something?

Uncaught exception: no factory for server type "proxygen"\n

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

So, now we don't use proxygen, and decide we're not benchmarking either...

hhvm perf.php --mediawiki --hhvm=`which hhvm` --no-proxygen --i-am-not-benchmarking

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

Ok, so now I have everything running with MW 1.24

reedy@hhvm-oss-performance:~/oss-performance$ hhvm perf.php --mediawiki --hhvm=`which hhvm` --no-proxygen --i-am-not-benchmarking

**************************************************
** 2015-11-29 02:03:34 UTC
** Configuration: MediaWikiTarget on /usr/bin/hhvm

**************************
** 2015-11-29 02:03:34 UTC
** Installing framework

**************************
** 2015-11-29 02:03:42 UTC
** There is no setUpTest

**************************
** 2015-11-29 02:03:42 UTC
** Starting Nginx

**************************
** 2015-11-29 02:03:42 UTC
** Starting PHP Engine
running hphp...
all files saved in /tmp/hhvm-nginx6RQaV6 ...
running hphp took 0'48" (48532785 us) wall time
mapping self...
mapping self took 0'00" (2385 us) wall time
loading static content...
loaded file cache from /tmp/hhvm-nginx6RQaV6/static.content
loading static content took 0'00" (4987 us) wall time

**************************
** 2015-11-29 02:04:33 UTC
** Running sanity check

*******************************************
** 2015-11-29 02:04:36 UTC
** Starting Siege for single request warmup
** SIEGE 2.70
** Preparing 1 concurrent users for battle.
The server is now under siege...
done.
Transactions:                300 hits
Availability:             100.00 %
Elapsed time:              23.29 secs
Data transferred:          55.43 MB
Response time:              0.08 secs
Transaction rate:          12.88 trans/sec
Throughput:             2.38 MB/sec
Concurrency:                1.00
Successful transactions:         285
Failed transactions:               0
Longest transaction:            5.94
Shortest transaction:           0.01


******************************************
** 2015-11-29 02:04:59 UTC
** Starting Siege for multi request warmup
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...

Lifting the server siege...      done.
Transactions:               2037 hits
Availability:             100.00 %
Elapsed time:              59.99 secs
Data transferred:         456.04 MB
Response time:              5.70 secs
Transaction rate:          33.96 trans/sec
Throughput:             7.60 MB/sec
Concurrency:              193.63
Successful transactions:        1871
Failed transactions:               0
Longest transaction:           14.80
Shortest transaction:           0.30


****************************
** 2015-11-29 02:06:00 UTC
** Clearing nginx access.log

*******************************
** 2015-11-29 02:06:00 UTC
** Starting Siege for benchmark
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...

Lifting the server siege..      done.
Transactions:               1887 hits
Availability:             100.00 %
Elapsed time:              59.84 secs
Data transferred:         444.03 MB
Response time:              6.04 secs
Transaction rate:          31.53 trans/sec
Throughput:             7.42 MB/sec
Concurrency:              190.47
Successful transactions:        1795
Failed transactions:               0
Longest transaction:           14.70
Shortest transaction:           2.31


**************************
** 2015-11-29 02:07:02 UTC
** Collecting results

**************************
** 2015-11-29 02:07:05 UTC
** Collecting TC/PCRE data

***************************
** 2015-11-29 02:07:05 UTC
** There is no tearDownTest
{
    "Combined": {
        "Siege requests": 1887,
        "Siege wall sec": 6.04,
        "Siege RPS": 31.53,
        "Siege successful requests": 1795,
        "Siege failed requests": 0,
        "Nginx hits": 2087,
        "Nginx avg bytes": 223734.72448491,
        "Nginx avg time": 5.1313066602779,
        "Nginx P50 time": 4.962,
        "Nginx P90 time": 7.048,
        "Nginx P95 time": 8.24,
        "Nginx P99 time": 10.896,
        "Nginx 200": 1813,
        "Nginx 499": 176,
        "Nginx 404": 98,
        "canonical": 0
    }
}
reedy@hhvm-oss-performance:~/oss-performance$ 

The only live hack to my git repo is #62

I'll test this PR after I've had some sleep

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

Fixed one minor issue already...

reedy@hhvm-oss-performance:~/oss-performance$ '/usr/bin/hhvm' '--hphp' '--target' 'hhbc' '--output-dir' '/tmp/hhvm-nginxuTv9ha' '--input-dir' '/tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0' '--module' '/' '--cmodule' '/' '-l3' '-k1' '--ffile=StartProfiler.sample' '--ffile=extensions/SyntaxHighlight_GeSHi/README' '--ffile=thumb.php5' '--ffile=opensearch_desc.php5' '--ffile=thumb_handler.php5' '--ffile=img_auth.php5' '--ffile=docs/magicword.txt' '--ffile=docs/maintenance.txt' '--ffile=docs/php-memcached/Documentation' '--ffile=profileinfo.php5' '--ffile=api.php5' '--ffile=index.php5' '--ffile=load.php5' '--ffile=maintenance/7zip.inc' '--ffile=maintenance/userDupes.inc' '--ffile=maintenance/importImages.inc' '--ffile=maintenance/commandLine.inc' '--ffile=maintenance/userOptions.inc' '--ffile=maintenance/sqlite.inc' '--ffile=maintenance/backup.inc' '--ffile=maintenance/cleanupTable.inc' '--ffile=maintenance/language/languages.inc' '--ffile=maintenance/language/checkLanguage.inc' '--ffile=maintenance/language/zhtable/Makefile.py' '--ffile=maintenance/hiphop/run-server' '--ffile=maintenance/backupPrefetch.inc' '--ffile=maintenance/backupTextPass.inc' '--ffile=tests/testHelpers.inc' '--ffile=tests/parser/parserTest.inc' '--ffile=wiki.phtml' '--ffile=vendor/psr/log/README.md' '--ffile=vendor/oyejorge/less.php/bin/lessc' '--ffile=vendor/firebase/php-jwt/README.md' '--ffile=vendor/firebase/php-jwt/tests/autoload.php.dist' '--ffile=vendor/kzykhys/pygments/README.md' '--ffile=vendor/kzykhys/pygments/test/KzykHys/Pygments/Resources/example/php.php.in' '--ffile=vendor/zordius/lightncandy/README.md' '--ffile=vendor/monolog/monolog/README.mdown' '--ffile=vendor/monolog/monolog/doc/usage.md' '--ffile=vendor/monolog/monolog/doc/extending.md' '--ffile=vendor/monolog/monolog/doc/sockets.md' '--ffile=vendor/monolog/monolog/.php_cs' '--ffile=vendor/wikimedia/utfnormal/src/UtfNormalDataK.inc' '--ffile=vendor/wikimedia/utfnormal/src/UtfNormalData.inc' '--file-cache' '/tmp/hhvm-nginxuTv9ha/static.content'
running hphp...
parsing inputs...
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/docs/Maintenance.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/docs/php-memcached/MemCachedClient.inc.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/extensions/SyntaxHighlight_GeSHi/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/includes/mail/Mail/mime.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/includes/mail/Mail.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/maintenance/PHPUnit/Autoload.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/vendor/liuggio/statsd-php-client/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/vendor/oojs/oojs-ui/vendor/autoload.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/vendor/zordius/lightncandy/tests/src/lightncandy.php
Unable to stat file /tmp/hhvm-nginxuTv9ha/mediawiki-1.26.0/vendor/zordius/lightncandy/tests/tests/helpers_for_test.php
analyzeProgram...
analyzeProgram took 0'01" (1800391 us) wall time
parsing inputs took 0'06" (6241044 us) wall time
pre-optimizing...
saving file cache......
22 MB /tmp/hhvm-nginxuTv9ha/static.content saved
saving file cache... took 0'19" (19700690 us) wall time
pre-optimizing took 0'23" (23366170 us) wall time
creating binary HHBC files...
creating binary HHBC files took 0'38" (38414615 us) wall time
all files saved in /tmp/hhvm-nginxuTv9ha ...
running hphp took 1'09" (69872688 us) wall time
reedy@hhvm-oss-performance:~/oss-performance$

Filed https://phabricator.wikimedia.org/T119818 upstream about the stat issues (not sure if we can do anything about them easily)

For some reason, this branch (only this commit ahead of master here) doesn't want to play ball completely... Something doesn't look to be running

reedy@hhvm-oss-performance:~/oss-performance$ hhvm perf.php --mediawiki --hhvm=`which hhvm` --no-proxygen --i-am-not-benchmarking

**************************************************
** 2015-11-29 02:46:31 UTC
** Configuration: MediaWikiTarget on /usr/bin/hhvm

**************************
** 2015-11-29 02:46:31 UTC
** Installing framework
string(109) "'/usr/bin/hhvm' '/tmp/hhvm-nginxCLHocn/mediawiki-1.26.0/maintenance/rebuildLocalisationCache.php' '--lang=en'"

**************************
** 2015-11-29 02:46:40 UTC
** There is no setUpTest

**************************
** 2015-11-29 02:46:40 UTC
** Starting Nginx

**************************
** 2015-11-29 02:46:40 UTC
** Starting PHP Engine
string(1962) "'/usr/bin/hhvm' '--hphp' '--target' 'hhbc' '--output-dir' '/tmp/hhvm-nginxCLHocn' '--input-dir' '/tmp/hhvm-nginxCLHocn/mediawiki-1.26.0' '--module' '/' '--cmodule' '/' '-l3' '-k1' '--ffile=StartProfiler.sample' '--ffile=extensions/SyntaxHighlight_GeSHi/README' '--ffile=thumb.php5' '--ffile=opensearch_desc.php5' '--ffile=thumb_handler.php5' '--ffile=img_auth.php5' '--ffile=docs/magicword.txt' '--ffile=docs/maintenance.txt' '--ffile=docs/php-memcached/Documentation' '--ffile=profileinfo.php5' '--ffile=api.php5' '--ffile=index.php5' '--ffile=load.php5' '--ffile=maintenance/7zip.inc' '--ffile=maintenance/userDupes.inc' '--ffile=maintenance/importImages.inc' '--ffile=maintenance/commandLine.inc' '--ffile=maintenance/userOptions.inc' '--ffile=maintenance/sqlite.inc' '--ffile=maintenance/backup.inc' '--ffile=maintenance/cleanupTable.inc' '--ffile=maintenance/language/languages.inc' '--ffile=maintenance/language/checkLanguage.inc' '--ffile=maintenance/language/zhtable/Makefile.py' '--ffile=maintenance/hiphop/run-server' '--ffile=maintenance/backupPrefetch.inc' '--ffile=maintenance/backupTextPass.inc' '--ffile=tests/testHelpers.inc' '--ffile=tests/parser/parserTest.inc' '--ffile=wiki.phtml' '--ffile=vendor/psr/log/README.md' '--ffile=vendor/oyejorge/less.php/bin/lessc' '--ffile=vendor/firebase/php-jwt/README.md' '--ffile=vendor/firebase/php-jwt/tests/autoload.php.dist' '--ffile=vendor/kzykhys/pygments/README.md' '--ffile=vendor/kzykhys/pygments/test/KzykHys/Pygments/Resources/example/php.php.in' '--ffile=vendor/zordius/lightncandy/README.md' '--ffile=vendor/monolog/monolog/README.mdown' '--ffile=vendor/monolog/monolog/doc/usage.md' '--ffile=vendor/monolog/monolog/doc/extending.md' '--ffile=vendor/monolog/monolog/doc/sockets.md' '--ffile=vendor/monolog/monolog/.php_cs' '--ffile=vendor/wikimedia/utfnormal/src/UtfNormalDataK.inc' '--ffile=vendor/wikimedia/utfnormal/src/UtfNormalData.inc' '--file-cache' '/tmp/hhvm-nginxCLHocn/static.content'"
running hphp...
all files saved in /tmp/hhvm-nginxCLHocn ...
running hphp took 1'10" (70394799 us) wall time
mapping self...
mapping self took 0'00" (2793 us) wall time
loading static content...
loaded file cache from /tmp/hhvm-nginxCLHocn/static.content
loading static content took 0'00" (9680 us) wall time

**************************
** 2015-11-29 02:47:53 UTC
** Running sanity check

Warning: Failed to open http://hhvm-oss-performance.default.reedy.uk0.bigv.io:8090/ () in /home/reedy/oss-performance/base/PerfTarget.php on line 30

Fatal error: Uncaught exception 'HH\InvariantException' with message 'Failed to find string "Obama" in http://hhvm-oss-performance.default.reedy.uk0.bigv.io:8090/' in :
Stack trace:
#0 /home/reedy/oss-performance/base/PerfTarget.php(34): HH\invariant_violation()
#1 /home/reedy/oss-performance/base/PerfRunner.php(99): PerfTarget->sanityCheck()
#2 /home/reedy/oss-performance/base/PerfRunner.php(42): PerfRunner::RunWithOptionsAndEngine()
#3 /home/reedy/oss-performance/base/PerfRunner.php(17): PerfRunner::RunWithOptions()
#4 /home/reedy/oss-performance/perf.php(15): PerfRunner::RunWithArgv()
#5 /home/reedy/oss-performance/perf.php(19): perf_main()
#6 {main}
reedy@hhvm-oss-performance:~/oss-performance$

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

reedy@hhvm-oss-performance:~/oss-performance$ tail -f /tmp/hhvm-nginxW4a5Nt/access.log 
500 5 0.034 "GET / HTTP/1.1"

I guess that's why it's failing to open...

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

Ah, it seems to be an issue with the vendor repo...

MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see mediawiki.org for help on installing the required components.

Which seems to be facebook/hhvm#5834 and as such facebook/hhvm#5833

facebook/hhvm#5834 (comment) does fix it...

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

Upstream fix for that HHVM bug is https://gerrit.wikimedia.org/r/#/c/255917/ if we merge it, we'll backport to REL1_25 and REL1_26

With that included in my tarball, MW 1.26 now works fine

reedy@hhvm-oss-performance:~/oss-performance$ hhvm perf.php --mediawiki --hhvm=`which hhvm` --no-proxygen --i-am-not-benchmarking

**************************************************
** 2015-11-29 04:46:28 UTC
** Configuration: MediaWikiTarget on /usr/bin/hhvm

**************************
** 2015-11-29 04:46:28 UTC
** Installing framework
string(109) "'/usr/bin/hhvm' '/tmp/hhvm-nginxYf49kf/mediawiki-1.26.0/maintenance/rebuildLocalisationCache.php' '--lang=en'"

**************************
** 2015-11-29 04:46:37 UTC
** There is no setUpTest

**************************
** 2015-11-29 04:46:37 UTC
** Starting Nginx
string(64) "nginx '-c' '/tmp/hhvm-nginxYf49kf/nginx.conf' '-g' 'daemon off;'"

**************************
** 2015-11-29 04:46:37 UTC
** Starting PHP Engine
string(1962) "'/usr/bin/hhvm' '--hphp' '--target' 'hhbc' '--output-dir' '/tmp/hhvm-nginxYf49kf' '--input-dir' '/tmp/hhvm-nginxYf49kf/mediawiki-1.26.0' '--module' '/' '--cmodule' '/' '-l3' '-k1' '--ffile=StartProfiler.sample' '--ffile=extensions/SyntaxHighlight_GeSHi/README' '--ffile=thumb.php5' '--ffile=opensearch_desc.php5' '--ffile=thumb_handler.php5' '--ffile=img_auth.php5' '--ffile=docs/magicword.txt' '--ffile=docs/maintenance.txt' '--ffile=docs/php-memcached/Documentation' '--ffile=profileinfo.php5' '--ffile=api.php5' '--ffile=index.php5' '--ffile=load.php5' '--ffile=maintenance/7zip.inc' '--ffile=maintenance/userDupes.inc' '--ffile=maintenance/importImages.inc' '--ffile=maintenance/commandLine.inc' '--ffile=maintenance/userOptions.inc' '--ffile=maintenance/sqlite.inc' '--ffile=maintenance/backup.inc' '--ffile=maintenance/cleanupTable.inc' '--ffile=maintenance/language/languages.inc' '--ffile=maintenance/language/checkLanguage.inc' '--ffile=maintenance/language/zhtable/Makefile.py' '--ffile=maintenance/hiphop/run-server' '--ffile=maintenance/backupPrefetch.inc' '--ffile=maintenance/backupTextPass.inc' '--ffile=tests/testHelpers.inc' '--ffile=tests/parser/parserTest.inc' '--ffile=wiki.phtml' '--ffile=vendor/psr/log/README.md' '--ffile=vendor/oyejorge/less.php/bin/lessc' '--ffile=vendor/firebase/php-jwt/README.md' '--ffile=vendor/firebase/php-jwt/tests/autoload.php.dist' '--ffile=vendor/kzykhys/pygments/README.md' '--ffile=vendor/kzykhys/pygments/test/KzykHys/Pygments/Resources/example/php.php.in' '--ffile=vendor/zordius/lightncandy/README.md' '--ffile=vendor/monolog/monolog/README.mdown' '--ffile=vendor/monolog/monolog/doc/usage.md' '--ffile=vendor/monolog/monolog/doc/extending.md' '--ffile=vendor/monolog/monolog/doc/sockets.md' '--ffile=vendor/monolog/monolog/.php_cs' '--ffile=vendor/wikimedia/utfnormal/src/UtfNormalDataK.inc' '--ffile=vendor/wikimedia/utfnormal/src/UtfNormalData.inc' '--file-cache' '/tmp/hhvm-nginxYf49kf/static.content'"
running hphp...
all files saved in /tmp/hhvm-nginxYf49kf ...
running hphp took 1'09" (69816428 us) wall time
string(577) "/usr/bin/hhvm '-m' 'server' '-p' '8092' '-v' 'AdminServer.Port=8093' '-v' 'Server.Type=fastcgi' '-v' 'Server.DefaultDocument=index.php' '-v' 'Server.ErrorDocument404=index.php' '-v' 'Server.SourceRoot=/tmp/hhvm-nginxYf49kf/mediawiki-1.26.0' '-v' 'Eval.Jit=1' '-d' 'pid='\''/tmp/hhvm-nginxYf49kf/hhvm.pid'\''' '-c' '/home/reedy/oss-performance/base/../conf/php.ini' '-v' 'Repo.Authoritative=true' '-v' 'Repo.Central.Path=/tmp/hhvm-nginxYf49kf/hhvm.hhbc' '-v' 'Server.FileCache=/tmp/hhvm-nginxYf49kf/static.content' '-v' 'Server.SourceRoot=/tmp/hhvm-nginxYf49kf/mediawiki-1.26.0'"
Cannot open log file: /var/log/hhvm/error.log
mapping self...
mapping self took 0'00" (2913 us) wall time
loading static content...
loaded file cache from /tmp/hhvm-nginxYf49kf/static.content
loading static content took 0'00" (9918 us) wall time

**************************
** 2015-11-29 04:47:49 UTC
** Running sanity check

*******************************************
** 2015-11-29 04:47:53 UTC
** Starting Siege for single request warmup
string(136) "timeout '--signal=9' '5m' 'siege' '-c' '1' '-r' '300' '-f' '/tmp/hhvm-nginxYf49kf/urlsKCHeHo' '--benchmark' '--log=/dev/null' >/dev/null"
** SIEGE 2.70
** Preparing 1 concurrent users for battle.
The server is now under siege...
done.
Transactions:                300 hits
Availability:             100.00 %
Elapsed time:              28.53 secs
Data transferred:          53.87 MB
Response time:              0.10 secs
Transaction rate:          10.52 trans/sec
Throughput:             1.89 MB/sec
Concurrency:                1.00
Successful transactions:         285
Failed transactions:               0
Longest transaction:            7.62
Shortest transaction:           0.02


******************************************
** 2015-11-29 04:48:21 UTC
** Starting Siege for multi request warmup
string(137) "timeout '--signal=9' '5m' 'siege' '-c' '200' '-t' '1M' '-f' '/tmp/hhvm-nginxYf49kf/urlscSy5HE' '--benchmark' '--log=/dev/null' >/dev/null"
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...

Lifting the server siege..      done.
Transactions:               2101 hits
Availability:             100.00 %
Elapsed time:              59.31 secs
Data transferred:         443.13 MB
Response time:              5.43 secs
Transaction rate:          35.42 trans/sec
Throughput:             7.47 MB/sec
Concurrency:              192.32
Successful transactions:        1910
Failed transactions:               0
Longest transaction:           10.35
Shortest transaction:           0.34


****************************
** 2015-11-29 04:49:21 UTC
** Clearing nginx access.log

*******************************
** 2015-11-29 04:49:21 UTC
** Starting Siege for benchmark
string(161) "timeout '--signal=9' '5m' 'siege' '-c' '200' '-f' '/tmp/hhvm-nginxYf49kf/urlsWV19XP' '--benchmark' '--log=/tmp/hhvm-nginxYf49kf/siegeeYW4kf' '-t' '1M' >/dev/null"
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...

Lifting the server siege..      done.
Transactions:               2058 hits
Availability:             100.00 %
Elapsed time:              59.79 secs
Data transferred:         441.56 MB
Response time:              5.63 secs
Transaction rate:          34.42 trans/sec
Throughput:             7.39 MB/sec
Concurrency:              193.82
Successful transactions:        1907
Failed transactions:               0
Longest transaction:           14.17
Shortest transaction:           1.67


**************************
** 2015-11-29 04:50:23 UTC
** Collecting results

**************************
** 2015-11-29 04:50:25 UTC
** Collecting TC/PCRE data

***************************
** 2015-11-29 04:50:25 UTC
** There is no tearDownTest
{
    "Combined": {
        "Siege requests": 2058,
        "Siege wall sec": 5.63,
        "Siege RPS": 34.42,
        "Siege successful requests": 1907,
        "Siege failed requests": 0,
        "Nginx hits": 2258,
        "Nginx avg bytes": 205462.17360496,
        "Nginx avg time": 4.6224003542958,
        "Nginx P50 time": 4.6,
        "Nginx P90 time": 6.779,
        "Nginx P95 time": 7.737,
        "Nginx P99 time": 10.38,
        "Nginx 200": 1922,
        "Nginx 499": 182,
        "Nginx 404": 154,
        "canonical": 0
    }
}
reedy@hhvm-oss-performance:~/oss-performance$ 

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

So, the last thing for me to fix is how I modify that one interface_exists() line. I don't really want to modify the tarball, it just feels icky.

Is getting the includes/debug/logger/LoggerFactory.php file after un-tarring, str_replace and putting it back again suitable?

Oh, and I want to variablise/constant-ise 'mediawiki-1.26.0', but that's minor and I'll do that on my next revision....

@reedy
Copy link
Contributor Author

reedy commented Nov 29, 2015

This is ready to go now!

@reedy reedy changed the title Update mediawiki from 1.24.0 to 1.26.0 Update MediaWiki from 1.24.0 to 1.26.0 Nov 29, 2015
@reedy
Copy link
Contributor Author

reedy commented Dec 4, 2015

And will be part of the 1.26.1 release https://gerrit.wikimedia.org/r/#/c/255964/

@fredemmott
Copy link
Contributor

Sorry for the delay; we're focused on updating the docs site at the moment, and this will take a fair bit of time to test (and re-run). I should get to it in the next week or two.

@reedy reedy mentioned this pull request Dec 4, 2015
@reedy
Copy link
Contributor Author

reedy commented Dec 18, 2015

1.26.1 is out now. So I will get the shipped tarball updated to 1.26.1 tomorrow, and then can strip out 10 lines of code for the hhvm repo-authorative mode workaround as that's included

@reedy reedy changed the title Update MediaWiki from 1.24.0 to 1.26.0 Update MediaWiki from 1.24.0 to 1.26.1 Dec 18, 2015
@fredemmott
Copy link
Contributor

:like: hopefully I'll get to this monday-wednesday next week - I forgot that 'the next week or two' was while i'm on-call, sorry :(

@reedy
Copy link
Contributor Author

reedy commented Dec 20, 2015

Looks like we had a silly bug in 1.26.1 that should be getting a quick release. Will get this updated with 1.26.2 when the tarball is out

I don't think the bug is a blocker for running this, as it's mostly on special pages, but might aswell have a known good tarball in it

@reedy reedy force-pushed the mw-rel126 branch 2 times, most recently from 4c4a90f to 58e22c3 Compare December 22, 2015 20:15
@reedy reedy changed the title Update MediaWiki from 1.24.0 to 1.26.1 Update MediaWiki from 1.24.0 to 1.26.2 Dec 22, 2015
@reedy
Copy link
Contributor Author

reedy commented Dec 22, 2015

@fredemmott hopefully ready to go now! :)

@fredemmott
Copy link
Contributor

Can you re-test this?

targets/mediawiki/MediaWikiTarget.php:44:5,21: Expected ; (Parsing[1002])

When I fix that:

**************************************************
** 2016-01-07 14:31:51 PST
** Configuration: MediaWikiTarget on /usr/bin/hhvm

**************************
** 2016-01-07 14:31:51 PST
** Installing framework

Fatal error: Uncaught exception 'FatalError' with message 'If you use a relative URL for $wgArticlePath, it must start with a slash (<code>/</code>).<br><br>See <a href="https://www.mediawiki.org/wiki/Manual:$wgArticlePath">https://www.mediawiki.org/wiki/Manual:$wgArticlePath</a>.' in /tmp/hhvm-nginxVOBaGX/mediawiki-1.26.2/includes/Setup.php:523
Stack trace:
#0 /tmp/hhvm-nginxVOBaGX/mediawiki-1.26.2/maintenance/doMaintenance.php(97): include()
#1 /tmp/hhvm-nginxVOBaGX/mediawiki-1.26.2/maintenance/rebuildLocalisationCache.php(180): include()
#2 {main}
If you use a relative URL for $wgArticlePath, it must start with a slash (<code>/</code>).<br><br>See <a href="https://www.mediawiki.org/wiki/Manual:$wgArticlePath">https://www.mediawiki.org/wiki/Manual:$wgArticlePath</a>.
Catchable fatal error: Value returned from method Utils::RunCommand() must be of type string, null given in /home/fred/oss-performance/base/Utils.php on line 59

@reedy
Copy link
Contributor Author

reedy commented Jan 8, 2016

Missing ; is just fail on my part. Sorry

Looks like that actual error is from https://phabricator.wikimedia.org/T48998 / https://gerrit.wikimedia.org/r/#/c/259940/ from the security update

wikimedia/mediawiki@ce2b3c8 and wikimedia/mediawiki@3611c52

$wgArticlePath      = "index.php?title=$1";

to

$wgArticlePath      = "/index.php?title=$1";

should fix that

Will have to setup my testing environment again get back to you :)

* Use pristine MediaWiki tarball, copy in LocalSettings.php.
* Remove $wgDisableCounters = true;, code was removed from MW core.
* Remove patch to include LCStoreStaticArray, in MW Core as of 1.26.
* Don't live hack LocalisationCache.php to use $storeClass.
  = 'LCStoreStaticArray';, just set it in LocalSettings.php.
* Update MySQL patch file.
@reedy
Copy link
Contributor Author

reedy commented Jan 11, 2016

Works fine with the 2 changes as above :)

reedy@oss-perf:~/oss-performance$ git rev-parse HEAD
847ad03f987bd5130e3eed0b9d1ddf9a209790dc
reedy@oss-perf:~/oss-performance$ hhvm perf.php --mediawiki --hhvm=`which hhvm` --no-proxygen --i-am-not-benchmarking

**************************************************
** 2016-01-11 14:37:25 UTC
** Configuration: MediaWikiTarget on /usr/bin/hhvm

**************************
** 2016-01-11 14:37:25 UTC
** Installing framework

**************************
** 2016-01-11 14:37:34 UTC
** There is no setUpTest

**************************
** 2016-01-11 14:37:34 UTC
** Starting Nginx
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)

**************************
** 2016-01-11 14:37:34 UTC
** Starting PHP Engine
running hphp...
all files saved in /tmp/hhvm-nginxmhxFtc ...
running hphp took 1'11" (71278461 us) wall time
mapping self...
mapping self took 0'00" (3070 us) wall time
loading static content...
loaded file cache from /tmp/hhvm-nginxmhxFtc/static.content
loading static content took 0'00" (9675 us) wall time

**************************
** 2016-01-11 14:38:48 UTC
** Running sanity check

*******************************************
** 2016-01-11 14:38:51 UTC
** Starting Siege for single request warmup
** SIEGE 2.70
** Preparing 1 concurrent users for battle.
The server is now under siege...
done.
Transactions:                300 hits
Availability:             100.00 %
Elapsed time:              29.09 secs
Data transferred:          53.87 MB
Response time:              0.10 secs
Transaction rate:          10.31 trans/sec
Throughput:             1.85 MB/sec
Concurrency:                1.00
Successful transactions:         285
Failed transactions:               0
Longest transaction:            7.73
Shortest transaction:           0.02


******************************************
** 2016-01-11 14:39:20 UTC
** Starting Siege for multi request warmup
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...

Lifting the server siege..      done.
Transactions:               2094 hits
Availability:             100.00 %
Elapsed time:              59.80 secs
Data transferred:         442.87 MB
Response time:              5.52 secs
Transaction rate:          35.02 trans/sec
Throughput:             7.41 MB/sec
Concurrency:              193.43
Successful transactions:        1898
Failed transactions:               0
Longest transaction:            9.77
Shortest transaction:           0.36


****************************
** 2016-01-11 14:40:20 UTC
** Clearing nginx access.log

*******************************
** 2016-01-11 14:40:20 UTC
** Starting Siege for benchmark
** SIEGE 2.70
** Preparing 200 concurrent users for battle.
The server is now under siege...

Lifting the server siege..      done.
Transactions:               2451 hits
Availability:             100.00 %
Elapsed time:              59.86 secs
Data transferred:         453.24 MB
Response time:              4.68 secs
Transaction rate:          40.95 trans/sec
Throughput:             7.57 MB/sec
Concurrency:              191.68
Successful transactions:        2251
Failed transactions:               0
Longest transaction:           14.34
Shortest transaction:           1.48


**************************
** 2016-01-11 14:41:22 UTC
** Collecting results

**************************
** 2016-01-11 14:41:25 UTC
** Collecting TC/PCRE data

***************************
** 2016-01-11 14:41:25 UTC
** There is no tearDownTest
{
    "Combined": {
        "Siege requests": 2451,
        "Siege wall sec": 4.68,
        "Siege RPS": 40.95,
        "Siege successful requests": 2251,
        "Siege failed requests": 0,
        "Nginx hits": 2651,
        "Nginx avg bytes": 179834.88042248,
        "Nginx avg time": 4.0732470765749,
        "Nginx P50 time": 3.978,
        "Nginx P90 time": 5.922,
        "Nginx P95 time": 6.609,
        "Nginx P99 time": 7.927,
        "Nginx 200": 2261,
        "Nginx 499": 190,
        "Nginx 404": 200,
        "canonical": 0
    }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants