Learn about Centmin Mod LEMP Stack today
Register Now

Sysadmin Some Performance Optimization Tips on Centos?

Discussion in 'System Administration' started by negative, Sep 30, 2016.

  1. negative

    negative Member

    216
    21
    18
    Apr 11, 2015
    Ratings:
    +49
    Local Time:
    7:12 AM
    1.9.10
    10.1.11
    Hello

    When i see that my server running on powersave mode, i explore what can i do for run my server on best performance. So, i have E5-2620v4 @ 2.1 Ghz cpu's on my server, but it running at 1.2-1.6 Ghz (it looks dynamically on /proc/cpuinfo as you know)

    So, i see some optimization tips on the web and i found somethings.

    For example, if you run this command all cpu's are going to high performance mode. My cpu's running 2.1-2.8 Ghz anymore (even it uses Turbo boost anymore)
    Code (Text):
    cpupower frequency-set --governor performance
    


    Or here;
    CentOS 7 - CentOS 7 Tweaks and Tuned profile explanations. Learn how to make CentOS 7 fast!
    That offers;
    - Activate tuned latency-performance for CentOS 7
    - Network latency performance
    etc..

    Do you have any experience for apply them ? Or do you have any optimizations for use our servers better.

    Thanks
     
    • Optimistic Optimistic x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,195
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    2:12 PM
    Nginx 1.13.x
    MariaDB 5.5
    Probably best to leave it alone unless you know specifically what each option does and it's effects :)

    If folks have experience with them, then yes do share.

    CentOS 7 cpu governor documentation 3.2. Using CPUfreq Governors
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,195
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    2:12 PM
    Nginx 1.13.x
    MariaDB 5.5
    Just testing on my SoYouStart E3-1245v2 server running CentOS 7.2 64bit with 4.7.5 Linux Kernel and performance governor set. Doesn't seem to help much with php 7 compile times at all though so defaults might be fine.

    Code (Text):
     cpupower frequency-info                                 
    analyzing CPU 0:
      driver: acpi-cpufreq
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency: 10.0 us
      hardware limits: 1.60 GHz - 3.40 GHz
      available frequency steps:  3.40 GHz, 3.40 GHz, 3.20 GHz, 3.00 GHz, 2.80 GHz, 2.60 GHz, 2.40 GHz, 2.20 GHz, 2.00 GHz, 1.80 GHz, 1.60 GHz
      available cpufreq governors: conservative userspace powersave schedutil ondemand performance
      current policy: frequency should be within 1.60 GHz and 3.40 GHz.
                      The governor "performance" may decide which speed to use
                      within this range.
      current CPU frequency: 3.40 GHz (asserted by call to hardware)
      boost state support:
        Supported: yes
        Active: yes
        3600 MHz max turbo 4 active cores
        3700 MHz max turbo 3 active cores
        3800 MHz max turbo 2 active cores
        3800 MHz max turbo 1 active cores


    Code (Text):
    cat /proc/cpuinfo
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 58
    model name      : Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz
    stepping        : 9
    microcode       : 0x1b
    cpu MHz         : 3401.000
    cache size      : 8192 KB
    physical id     : 0
    siblings        : 8
    core id         : 0
    cpu cores       : 4
    apicid          : 0
    initial apicid  : 0
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 13
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
    bugs            :
    bogomips        : 6784.62
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 36 bits physical, 48 bits virtual
    power management:


    from 3.2. Using CPUfreq Governors

     
    • Informative Informative x 1