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

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  2. rdan

    rdan Well-Known Member

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 PM
    Mainline
    10.2
    What is the purpose of this by the way? :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/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

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 PM
    Mainline
    10.2
    Then why not enable by default? :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    haven't tested it on live production sites.. you can test it and give feedback :D
     
  6. rdan

    rdan Well-Known Member

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 PM
    Mainline
    10.2
    and the benefit? :D
    I mean having small binary size.
     
  7. eva2000

    eva2000 Administrator Staff Member

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  8. rdan

    rdan Well-Known Member

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 PM
    Mainline
    10.2
    By the way, I'm using this/enabled on my Live Server :)
    Why not also apply to PHP binary? Possible?
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  10. rdan

    rdan Well-Known Member

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 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

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    most RPM builds already strip binaries i think..
     
    • Winner Winner x 1
  12. rdan

    rdan Well-Known Member

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 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

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/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

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 PM
    Mainline
    10.2
    I'm game :)
    Your Nginx strip really work well for me :)
     
  15. eva2000

    eva2000 Administrator Staff Member

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/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

    4,560
    1,092
    113
    May 25, 2014
    Ratings:
    +1,601
    Local Time:
    3:16 PM
    Mainline
    10.2
    With this still a little bit to save :).
    As you say every bit counts :D
     
    • Like Like x 1
  17. eva2000

    eva2000 Administrator Staff Member

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/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
     
    • Agree Agree x 1
  18. pamamolf

    pamamolf Premium Member Premium Member

    3,405
    320
    83
    May 31, 2014
    Ratings:
    +608
    Local Time:
    10:16 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    How can i enable this on existing installation?
     
  19. eva2000

    eva2000 Administrator Staff Member

    41,081
    9,191
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,101
    Local Time:
    5:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    update to latest .08 beta02 code, set STRIPNGINX='y' in centmin.sh and run centmin.sh menu option 4 to recompile Nginx
     
    • Like Like x 2
  20. pamamolf

    pamamolf Premium Member Premium Member

    3,405
    320
    83
    May 31, 2014
    Ratings:
    +608
    Local Time:
    10:16 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    I have to recompile also the php if i want to test it for php also?