php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74107 PGP builds and size
Submitted: 2017-02-16 11:55 UTC Modified: 2021-03-14 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: spam2 at rhsoft dot net Assigned: cmb (profile)
Status: No Feedback Package: *Compile Issues
PHP Version: 7.1.1 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-02-16 11:55 UTC] spam2 at rhsoft dot net
Description:
------------
* make prof-clean
* run profile code with intermediate binary
* make prof-clean
* make prof-use

normally the binary is noticeable slower which is true for the whole PHP 7.0.x series

PHP 7.1.0RC6 was larger
PHP 7.1.0GA as expected
PHP 7.1.1 was larger
PHP 7.1.2RC was as expected
PHP 7.1.2GA is again larger

7.1.2RC1:
-rwxr-xr-x 1 root root 4,9M 2017-02-01 14:16 /usr/bin/php

7.1.2 GA:
-rwxr-xr-x 1 root root 5,4M 2017-02-16 12:41 /usr/bin/php

while the whole buildoutputs look OK (-fprofile-use in the second make) inluding the outputs and logs of the profiling scripts running our webapplication the size difference is very similar to a non PGO build and when it changes randomly between each upstream tarball it leaves a bad taste

BTW:
the release process is broken by design - in the rest of the world the last RC-tarball is just renamed and there are no commits between RC and GA release


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-16 12:05 UTC] spam2 at rhsoft dot net
- noticeable slower which is true for the whole PHP 7.0.x series
+ noticeable smaller which is true for the whole PHP 7.0.x series
 [2017-02-17 17:30 UTC] cmb@php.net
-Assigned To: +Assigned To: krakjoe
 [2017-02-17 17:30 UTC] cmb@php.net
Joe, could you please have a look at this issue?
 [2017-07-30 11:32 UTC] spam2 at rhsoft dot net
7.1.8RC1 suffers from the same problem and NOW with 7.1.9-dev https://git.php.net/?p=php-src.git;a=snapshot;h=c48c638aeb130134345c7f5a7fd843f14ffb7e73;sf=tgz binary sizes are down to noraml values again - so nigle char in the build scripts changed

7.1.8RC1
-rwxr-xr-x 1 root root 4,4M 2017-07-21 14:06 /usr/bin/php
-rwxr-xr-x 1 root root 4,3M 2017-07-21 14:06 /usr/lib64/httpd/modules/libphp7.so

7.1.9-dev
-rwxr-xr-x 1 root root 3,9M 2017-07-30 13:15 /usr/bin/php
-rwxr-xr-x 1 root root 3,9M 2017-07-30 13:15 /usr/lib64/httpd/modules/libphp7.so

the sizes are in general lower than in the initial report because more extensions are built shared but you can clearly see the difference above
____________________________________

compared to PHP 7.0.21 below (exactly same build config) 7.1 is no longer that bloated and given that binaries are always stripped (strip -s --strip-unneeded) at the end of the rpmbuild i really have no idea what's going on here

7.0.21:
-rwxr-xr-x 1 root root 3,7M 2017-07-05 18:27 /usr/lib64/httpd/modules/libphp7.so
 [2021-03-04 12:56 UTC] cmb@php.net
-Status: Assigned +Status: Feedback -Assigned To: krakjoe +Assigned To: cmb
 [2021-03-04 12:56 UTC] cmb@php.net
So, has this been resolved, or did the binary sizes increase
again?
 [2021-03-14 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC