Welcome to Centmin Mod Community
Register Now

Beta Branch Transparent Huge Pages Tweaks tools/hptweaks.sh

Discussion in 'Beta release code' started by eva2000, Dec 18, 2015.

  1. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:23 AM
    1.9.9
    10.1.10
    Nope still no output :(

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange

    post to gist or pastebin output of this command
    Code:
    cd /usr/local/src/centminmod/tools
    bash -xv hptweaks.sh
     
  3. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:23 AM
    1.9.9
    10.1.10
  4. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:23 AM
    1.9.9
    10.1.10
    Unfortunately still nothing :(
    Tried to run the redis check and it returns nothing aswell.
    Code:
    [root@localhost tools]# rpm -ql redis | grep -o not
    [root@localhost tools]# 
    [root@localhost tools]# rpm -ql redis
    This package is not installed
    [root@localhost tools]#
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange your grep doesn't return not like mine

    on both centos 6.7 and 7.2

    Code:
    rpm -ql redis | grep -o not
    not
    Code:
    rpm -ql redis            
    package redis is not installed
     
  7. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:23 AM
    1.9.9
    10.1.10
    Just created a DO droplet with centos 6.7, same returns nothing.
    Will test with 7 now.

    Update:
    Returns nothing aswell, that is weird.
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    i might just change the method of chekcing if redis exists to either

    check for /etc/redis.conf file and/or ps grep the redis process instead
    Code:
    ps aufx | grep redis | grep -v grep
    redis      765  0.1  0.5 146856 10420 ?        Ssl  Nov01  94:15 /usr/bin/redis-server 127.0.0.1:6379
    or existence of /usr/bin/redis-cli
     
  9. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:23 AM
    1.9.9
    10.1.10
    Sounds good :D
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  11. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:23 AM
    1.9.9
    10.1.10
    Ahh it worked! :D
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yay !
     
  13. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    12:23 PM
  14. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    6:23 PM
    Mainline
    10.2
    Code:
    sed: -e expression #1, char 24: unterminated `s' command
    NRHUGEPAGES_COUNT = 
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What's output for command ? post to gist.github.com or pastebin.com
    Code (Text):
    cd /usr/local/src/centminmod/tools
    bash -x hptweaks.sh
    
     
  16. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    6:23 PM
    Mainline
    10.2
  17. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ok found the bug .. will be fixed in a few moments :)
     
  18. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    6:23 PM
    Mainline
    10.2
    This is what I got now.
    Expected and normal?
    I have redis installed.
     
  19. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    6:23 PM
    Mainline
    10.2
    Code:
    # cat /etc/sysctl.conf
    # sysctl settings are defined through files in
    # /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
    #
    # Vendors settings live in /usr/lib/sysctl.d/.
    # To override a whole file, create a new file with the same in
    # /etc/sysctl.d/ and put new settings there. To override
    # only specific settings, add a file with a lexically later
    # name in /etc/sysctl.d/ and put new settings there.
    #
    # For more information, see sysctl.conf(5) and sysctl.d(5).
    
    # Disable IPv6 autoconf
    net.ipv6.conf.all.autoconf = 0
    net.ipv6.conf.default.autoconf = 0
    net.ipv6.conf.eth0.autoconf = 0
    net.ipv6.conf.all.accept_ra = 0
    net.ipv6.conf.default.accept_ra = 0
    net.ipv6.conf.eth0.accept_ra = 0
    net.ipv6.conf.all.accept_ra_defrtr = 0
    net.ipv6.conf.default.accept_ra_defrtr = 0
    net.ipv6.conf.eth0.accept_ra_defrtr = 0
    net.ipv6.conf.all.accept_ra_pinfo = 0
    net.ipv6.conf.default.accept_ra_pinfo = 0
    net.ipv6.conf.eth0.accept_ra_pinfo = 0
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    vm.nr_hugepages=932
     
  20. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    6:23 PM
    Mainline
    10.2
    Code:
    # cat /etc/sysctl.d/101-sysctl.conf
    # centminmod added
    fs.nr_open=12000000
    fs.file-max=9000000
    net.core.wmem_max=16777216
    net.core.rmem_max=16777216
    net.ipv4.tcp_rmem=8192 87380 16777216                                         
    net.ipv4.tcp_wmem=8192 65536 16777216
    net.core.netdev_max_backlog=8192
    net.core.somaxconn=8151
    net.core.optmem_max=8192
    net.ipv4.tcp_fin_timeout=10
    net.ipv4.tcp_keepalive_intvl=30
    net.ipv4.tcp_keepalive_probes=3
    net.ipv4.tcp_keepalive_time=240
    net.ipv4.tcp_max_syn_backlog=8192
    net.ipv4.tcp_sack=1
    net.ipv4.tcp_syn_retries=3
    net.ipv4.tcp_synack_retries = 2
    net.ipv4.tcp_tw_recycle = 0
    net.ipv4.tcp_tw_reuse = 0
    net.ipv4.tcp_max_tw_buckets = 1440000
    vm.swappiness=10
    vm.min_free_kbytes=65536
    net.ipv4.ip_local_port_range=1024 65535
    net.ipv4.tcp_slow_start_after_idle=0
    net.ipv4.tcp_limit_output_bytes=65536
    net.ipv4.tcp_rfc1337=1
    net.ipv4.conf.all.accept_redirects = 0
    net.ipv4.conf.all.accept_source_route = 0
    net.ipv4.conf.all.log_martians = 1
    net.ipv4.conf.all.rp_filter = 1
    net.ipv4.conf.all.secure_redirects = 0
    net.ipv4.conf.all.send_redirects = 0
    net.ipv4.conf.default.accept_redirects = 0
    net.ipv4.conf.default.accept_source_route = 0
    net.ipv4.conf.default.log_martians = 1
    net.ipv4.conf.default.rp_filter = 1
    net.ipv4.conf.default.secure_redirects = 0
    net.ipv4.conf.default.send_redirects = 0
    net.ipv4.icmp_echo_ignore_broadcasts = 1
    net.ipv4.icmp_ignore_bogus_error_responses = 1
    net.netfilter.nf_conntrack_helper=0
    net.nf_conntrack_max = 524288
    net.netfilter.nf_conntrack_tcp_timeout_established = 28800
    net.netfilter.nf_conntrack_generic_timeout = 60
    net.ipv4.tcp_challenge_ack_limit = 999999999
    vm.overcommit_memory = 1