Learn about Centmin Mod LEMP Stack 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

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
  2. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    10.2
    What is the purpose of this by the way? :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    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. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    10.2
    Then why not enable by default? :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    haven't tested it on live production sites.. you can test it and give feedback :D
     
  6. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    10.2
    and the benefit? :D
    I mean having small binary size.
     
  7. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  8. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    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

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  10. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    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

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    most RPM builds already strip binaries i think..
     
    • Winner Winner x 1
  12. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    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

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    in theory for source compiled yeah but I haven't done in live production so if you're game, let us know :D
     
  14. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    10.2
    I'm game :)
    Your Nginx strip really work well for me :)
     
  15. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    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. RoldanLT

    RoldanLT Well-Known Member

    3,981
    966
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,331
    Local Time:
    4:45 PM
    1.11
    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

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 Well-Known Member

    2,836
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    10:45 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    How can i enable this on existing installation?
     
  19. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 Well-Known Member

    2,836
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    10:45 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I have to recompile also the php if i want to test it for php also?