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 Well-Known Member

    2,521
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    12:59 PM
    Nginx-1.13.x
    MariaDB 10.1.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
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    7:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1
  3. pamamolf

    pamamolf Well-Known Member

    2,521
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    12:59 PM
    Nginx-1.13.x
    MariaDB 10.1.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

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    7:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    maybe possible seeing as how frequent updates are being made to netdata :)
     
    • Like Like x 1