Can't compile 3.0.0, install script keeps very high disk read for several hours

#wget https://github.com/phalcon/cphalcon/archive/v3.0.0.tar.gz
#tar xvf v3.0.0.tar.gz
#cd cphalcon-3.0.0/build
#sudo ./install

VPS Info: 1CPU 1Core with 1G memory.

CPU info:

# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz
stepping        : 7
microcode       : 0x70d
cpu MHz         : 2200.040
cache size      : 15360 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm
bogomips        : 4400.08
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

gcc version:

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.1.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

PHP version:

# php -v
PHP 7.0.9 (cli) (built: Jul 27 2016 23:21:29) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

# phpize -v
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012

System load during compiling

----total-cpu-usage---- -dsk/total- -net/total- ---paging--
usr sys idl wai hiq siq| read  writ| recv  send|  in   out 
  0   0  99   1   0   0| 728k 7615B|   0     0 |   0     0 
 69   4   0  27   0   0|1048k    0 |  80B  870B|   0     0 
 96   4   0   0   0   0|   0     0 |  40B  540B|   0     0 
 94   5   0   0   0   1|   0   240k|  40B  390B|   0     0 
 96   4   0   0   0   0|  24k    0 |  40B  390B|   0     0 
 98   2   0   0   0   0|   0     0 |  40B  390B|   0     0 
 96   4   0   0   0   0|   0     0 |  40B  390B|   0     0 
 93   7   0   0   0   0|   0     0 |  40B  390B|   0     0 
 97   3   0   0   0   0|   0     0 | 116B  630B|   0     0 
 84   6   0  10   0   0| 632k 8192B|  40B  390B|   0     0 
 11   4   0  84   0   0|  84M 4456k|  40B  406B|   0     0 
  1   2   0  97   0   0|  91M    0 |  80B  406B|   0     0 
  0   3   0  97   0   0|  24M    0 |  40B  390B|   0     0 
  5   2   0  93   0   0|  58M  128k|  68B  432B|   0     0 
  0   2   0  98   0   0|  74M  112k|  40B  406B|   0     0 
  0   2   0  98   0   0| 294M    0 |  80B  556B|   0     0  missed 3 ticks
  0   2   0  98   0   0| 171M    0 |  80B  572B|   0     0  missed 5 ticks
  0   3   0  97   0   0| 496M   96k| 593B  886B|   0     0  missed 9 ticks
  0   2   0  97   0   0| 240M    0 |  80B  588B|   0     0  missed 3 ticks
  0   2   0  98   0   0| 217M   32k|  40B  438B|   0     0  missed 3 ticks
edited Jul '16

for several hours?

Given that Phalcon 3.0 was released like 4 hours ago...

Building from build/ is a bit slower because it tries to optimize the most of the framework, If you have Zephir you can compile it using fewer resources:

wget https://github.com/phalcon/cphalcon/archive/v3.0.0.tar.gz
tar xvf v3.0.0.tar.gz
cd cphalcon-3.0.0/
zephir build

If you want I can send you a phalcon.so ready to use for your platform, just let me know.



15.5k

Yes, it keeps for several hours since I try to build git 3.0.x branch yesterday, and release version two hours ago. They are same.

And yes please send a copy to michael.hwi#gmail.com, my system is centos 7 x64, thanks.



7.8k
edited Jul '16

hello Andy Gutierrez, Did you have phalcon.so that work with debian 8.5 x64 (php7) . I want to test too . Thanks.



15.5k
edited Jul '16

Thanks for share.

BTW, not sure if the develop team can look into this issue.

System Load & Disk Read during compiling attached.

here you go: https://www.dropbox.com/s/3sao7ju83f47crl/phalcon.so?dl=0



15.5k

And I try to compile 2.0.13 on CentOS 6.8 with PHP 5.6, it just take less than 5 minutes.

It took me like 30 minutes set up a VirtualBox VM with CentOS 7 and 10min compile the extension. I'm not really sure how can I track the issue in your server from here.

Thanks for share.

BTW, not sure if the develop team can look into this issue.

System Load & Disk Read during compiling attached.

here you go: https://www.dropbox.com/s/3sao7ju83f47crl/phalcon.so?dl=0