Want more timely Centmin Mod News Updates?
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 Well-Known Member

    3,099
    294
    83
    May 31, 2014
    Ratings:
    +527
    Local Time:
    6:04 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?
     
  2. ndha

    ndha Member

    67
    9
    8
    Sep 28, 2014
    Ratings:
    +27
    Local Time:
    10:04 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
     
    • Agree Agree x 1
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    34,276
    7,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,668
    Local Time:
    1:04 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

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

    eva2000 Administrator Staff Member

    34,276
    7,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,668
    Local Time:
    1:04 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    34,276
    7,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,668
    Local Time:
    1:04 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
..