HHVM for PPC testing - adamliyi/hhvm GitHub Wiki

Build and run hhvm on ubuntu-16.04_ppc64le

  1. System: ubuntu-16.04.2 LTS (Xenial Xerus)
  2. Follow instructions here: https://github.com/PPC64/hhvm/wiki/Install-on-Ubuntu-system-16.04#build-from-source. Some notes:
    • When installing dependent packages, change php7-mcrypt to php7.0-mcrypt
    • Also need to install libpq-dev
    • Although we can install ocaml packages using sudo apt-get install ocaml on ubuntu-16.04, this pre-built ocaml package will cause hhvm build error. We still need to build ocaml from source
    • When building ocaml from source, we need to use version 4.03. Otherwise hhvm build will fail.
      git branch -b 4.03 origin/4.03
      
    • By default hhvm install path will be /usr/local/bin/. To use another path:
      cmake -DCMAKE_INSTALL_PREFIX=<My Install Path> 
      
    • When building hhvm and there is error, make clean will not clean up some intermedia files generated by ocaml. Better to use a fresh new hhvm source tree to rebuild.

Test OSS performance on ubuntu-16.04_ppcle

  1. Follow instructions from https://github.com/PPC64/hhvm/wiki/Install-and-run-OSS-Performance
  2. Some notes:
    • Install php instead of php5, php-cgi instead of php5-cgi:
    sudo apt-get install nginx php php-cgi mysql-server mysql-client
    
    • When promoted, set MySQL root password (set to 123456 for testing purpose)
    • When install composer: mv composer.phar /usr/local/bin/composer
    • Port 80 is used by MySQL by default, use 8888 for nginx (/etc/nginx/sites-enabled/default)
    • /etc/systemd/system/hhvm.service and /etc/init.d/hhvm are duplicated. Just need hhvm.service
    • Remember to change hhvm binary path in hhvm.service
    • /home/openpower/hhvm_adam/install/hhvm-next/bin/hhvm perf.php --<test_case> --hhvm=/home/openpower/hhvm_adam/install/hhvm-next/bin/hhvm
    • /home/openpower/hhvm_adam/install/hhvm-next/bin/hhvm perf.php --<test_case> --php5=/usr/bin/php-cgi
⚠️ **GitHub.com Fallback** ⚠️