Discover Centmin Mod today
Register Now

CentOS 7 Beta Branch add support for STRIPNGINX='n' in centmin.sh to strip nginx binary size if enabled for .08 beta

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 8, 2015.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
  2. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    What is the purpose of this by the way? :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
    reduces final size of nginx binary /usr/local/sbin/nginx by stripping. On Centmin Mod .08 beta02 built Nginx reduces binary size from 26MB to 13MB
     
  4. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    Then why not enable by default? :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
    haven't tested it on live production sites.. you can test it and give feedback :D
     
  6. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    and the benefit? :D
    I mean having small binary size.
     
  7. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
  8. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    By the way, I'm using this/enabled on my Live Server :)
    Why not also apply to PHP binary? Possible?
     
  9. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
  10. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    Can't be applied on other app running that is install via YUM/RPM right? not source install like MariaDB.
    I'm thinking of applying it to all possible binary :D
     
  11. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
    most RPM builds already strip binaries i think..
     
  12. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    And waht are the apps that are Source Installed?
    Memcached, CSF, PHP, Nginx, and possible to apply to them all?
    I don't encounter any issues with this strip thing but SPEED :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
    in theory for source compiled yeah but I haven't done in live production so if you're game, let us know :D
     
  14. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    I'm game :)
    Your Nginx strip really work well for me :)
     
  15. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
    FYI, memcached and csf are ~408KB and ~169K in size already so not sure you'd see much in way of savings that would make a diff ? and looks like CSF binary format isn't recognised by strip
     
  16. rdan

    rdan Well-Known Member

    5,426
    1,389
    113
    May 25, 2014
    Ratings:
    +2,172
    Local Time:
    8:31 PM
    Mainline
    10.2
    With this still a little bit to save :).
    As you say every bit counts :D
     
  17. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
    Just switched this forum's Nginx 1.9.0 to stripped binary too

    Code:
    ls -lah /usr/local/sbin/nginx*                       
    -rwxr-xr-x 1 root root 13M May 17 06:46 /usr/local/sbin/nginx
    -rwxr-xr-x 1 root root 25M May  4 08:17 /usr/local/sbin/nginx.orig
     
  18. pamamolf

    pamamolf Well-Known Member

    4,028
    421
    83
    May 31, 2014
    Ratings:
    +817
    Local Time:
    2:31 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    How can i enable this on existing installation?
     
  19. eva2000

    eva2000 Administrator Staff Member

    50,923
    11,806
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,264
    Local Time:
    10:31 PM
    Nginx 1.25.x
    MariaDB 10.x
    update to latest .08 beta02 code, set STRIPNGINX='y' in centmin.sh and run centmin.sh menu option 4 to recompile Nginx
     
  20. pamamolf

    pamamolf Well-Known Member

    4,028
    421
    83
    May 31, 2014
    Ratings:
    +817
    Local Time:
    2:31 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    I have to recompile also the php if i want to test it for php also?