ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Configure Linux Swappiness with SaltStack

    Scheduled Pinned Locked Moved IT Discussion
    saltswapswappinesslinuxcentosrhelfedoradebianubuntususesaltstack
    1 Posts 1 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      In your SLS file, this section will set your swappiness for your kernel to 10. Modify as needed. The traditional default is 60.

      configure_swappiness:
        file.append:
          - name: /etc/sysctl.conf
          - text: vm.swappiness = 10
      

      Swappiness is the controlling value for swap usage behaviour in Linux. Setting it to ten or lower (but rarely zero) is standard for VPS and IaaS machines.

      1 Reply Last reply Reply Quote 3
      • 1 / 1
      • First post
        Last post