Join the community today
Register Now

Kernel Memory de-duplication

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

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    8:38 AM
    Nginx-1.26.x
    MariaDB 10.6.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

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    8:38 AM
    Nginx-1.26.x
    MariaDB 10.6.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

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    maybe possible seeing as how frequent updates are being made to netdata :)