Learn about Centmin Mod LEMP Stack today
Become a Member

Kernel Memory de-duplication

Discussion in 'Feature Requests & Suggestions' started by pamamolf, Sep 7, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,983
    412
    83
    May 31, 2014
    Ratings:
    +799
    Local Time:
    6:37 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hi :)

    I got this recommendation from netdata and i was wondering if it is good to have it already enabled on Centminmod :)

    Code:
    You have kernel memory de-duper (called Kernel Same-page Merging,
    or KSM) available, but it is not currently enabled.
    
    To enable it run:
    
    echo 1 >/sys/kernel/mm/ksm/run
    echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs
    
    If you enable it, you will save 40-60% of netdata memory.
    What do you think? is it something that will help in general and should add on Centminmod default installation or is it specific for netdata only?


    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    48,416
    11,099
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,274
    Local Time:
    1:37 AM
    Nginx 1.21.x
    MariaDB 10.x
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,983
    412
    83
    May 31, 2014
    Ratings:
    +799
    Local Time:
    6:37 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Ok then i will wait for the addon to be available so i can test it :)

    Don't know if it is also possible to have an auto update system as it get updates every 4-5 days :)

    Code:
    cd netdata
    git pull
    ./netdata-installer.sh
     
  4. eva2000

    eva2000 Administrator Staff Member

    48,416
    11,099
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,274
    Local Time:
    1:37 AM
    Nginx 1.21.x
    MariaDB 10.x
    maybe possible seeing as how frequent updates are being made to netdata :)