Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch add optional Cloudflare zlib performance fork support in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 13, 2017.

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    10:15 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Is there any check when a user enable it and the cpu doesn't support it to no install it?

    Also if it gets installed and not supported then?
     
    • Useful Useful x 1
  2. ndha

    ndha Member

    77
    9
    8
    Sep 28, 2014
    Ratings:
    +27
    Local Time:
    2:15 PM
    Latest
    10
    It will give info at the end of Nginx Compile:
    CLOUDFLARE_ZLIB='y' detected but cpu SSE4.2 support not available
    Fallback to standard zlib support in Nginx due to SSE4.2 not supported
     
    • Agree Agree x 1
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    40,188
    8,888
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,697
    Local Time:
    5:15 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Which check ? centmin mod checks for SSE4.2 in cpu flags and skips patching. And yeah give that message at end.
     
    • Informative Informative x 1
  4. ndha

    ndha Member

    77
    9
    8
    Sep 28, 2014
    Ratings:
    +27
    Local Time:
    2:15 PM
    Latest
    10
    Does this mean it won't work with CLOUDFLARE_ZLIBPHP='y' too??
     
  5. eva2000

    eva2000 Administrator Staff Member

    40,188
    8,888
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,697
    Local Time:
    5:15 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup won't work centmin mod checks before enabling PHP usage of Cloudflare zlib library
     
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    40,188
    8,888
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,697
    Local Time:
    5:15 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Let's compare OpenSSL 1.1.1-pre1 with integrated ECDSA performance patch with OpenSSL 1.1.0g with and without the ECDSA performance patch. Can confirm OpenSSL 1.1.1-pre1 natively added the ECDSA performance patch :D
    Code (Text):
    OpenSSL 1.1.1-pre1 (alpha) 13 Feb 2018
    built on: Tue Feb 20 18:52:21 2018 UTC
    options:bn(64,64) rc4(16x,int) des(int) aes(partial) idea(int) blowfish(ptr) 
    compiler: ccache gcc -Wall -O3 -pthread -m64 -Wa,--noexecstack -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSL_USE_NODELETE -DL_ENDIAN
                      sign    verify    sign/s verify/s
    rsa 2048 bits 0.000119s 0.000006s   8374.2 180585.7
                                  sign    verify    sign/s verify/s
     256 bit ecdsa (nistp256)   0.0000s   0.0000s 172068.6  50028.8
    


    OpenSSL 1.1.0g vs 1.1.1-pre1 rsa 2048 signs/s rsa 2048 verify/s ecdsa 256bit signs/s ecdsa 256bit verify/s
    OpenSSL 1.1.0g before cloudflare patch 8278.4 181818.2 121212.1 43450.5
    OpenSSL 1.1.0g after cloudflare patch 8299.9 181818.2 173813.0 50157.2
    OpenSSL 1.1.0g after cloudflare + kernel KPTI patch 8300.9 181818.2 170212.8 50000.0
    OpenSSL 1.1.1-pre1 after cloudflare + kernel KPTI patch 8374.2 180585.7 172068.6 50028.8
     
  7. rdan

    rdan Well-Known Member

    4,545
    1,088
    113
    May 25, 2014
    Ratings:
    +1,588
    Local Time:
    3:15 PM
    Mainline
    10.2
    gzip_comp_level will be automatically set with this? (currently my value is 5 before and after recompile)
    And where is zlib-cloudflare-1.3.0 is coming from?
    latest here is 1.2.8 cloudflare/zlib
     
  8. eva2000

    eva2000 Administrator Staff Member

    40,188
    8,888
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,697
    Local Time:
    5:15 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    i disabled automatically setting compression level for now

    1.3.0 is just cosmetic to differentiate from 1.2.11 std zlib otherwise some folks may feel CF zlib 1.2.8 is older.
     
..