Welcome to Centmin Mod Community
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

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    10:50 PM
    Nginx-1.25.x
    MariaDB 10.3.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?
     
  2. ndha

    ndha Member

    82
    10
    8
    Sep 28, 2014
    Ratings:
    +29
    Local Time:
    2:50 AM
    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
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Which check ? centmin mod checks for SSE4.2 in cpu flags and skips patching. And yeah give that message at end.
     
  4. ndha

    ndha Member

    82
    10
    8
    Sep 28, 2014
    Ratings:
    +29
    Local Time:
    2:50 AM
    Latest
    10
    Does this mean it won't work with CLOUDFLARE_ZLIBPHP='y' too??
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup won't work centmin mod checks before enabling PHP usage of Cloudflare zlib library
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    5,439
    1,398
    113
    May 25, 2014
    Ratings:
    +2,187
    Local Time:
    3:50 AM
    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

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,671
    Local Time:
    5:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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.