Learn about Centmin Mod LEMP Stack today
Register Now

Swap on VPS with SSD storage

Discussion in 'Virtual Private Server (VPS) hosting' started by viralpoet, Jun 27, 2017.

  1. viralpoet

    viralpoet Member

    43
    3
    8
    Mar 5, 2017
    Ratings:
    +9
    Local Time:
    10:24 AM
    1.10.3
    10
    Nearly got caught out with this in the instructions as my current VPS has SSD storage.

    Optimally, for KVM/Xen/VMWare or dedicated you should configure your server with at least 1GB to 2GB swap space if possible.

    Fortunately I found this on another hosting site
    "We do not recommend enabling swap on DigitalOcean or any other provider that utilizes SSD storage."

    How To Add Swap on CentOS 7 | DigitalOcean

     
  2. eva2000

    eva2000 Administrator Staff Member

    48,899
    11,189
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,423
    Local Time:
    8:24 AM
    Nginx 1.21.x
    MariaDB 10.x
    Nope you should always create a swap disk even if you have ssd storage
     
  3. rc112

    rc112 Member

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    6:24 AM
    Hi I read the same post regarding not creating swap on SSD. I am interested in knowing why you recommend so against DO, @eva2000? Thank you.
     
  4. eva2000

    eva2000 Administrator Staff Member

    48,899
    11,189
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,423
    Local Time:
    8:24 AM
    Nginx 1.21.x
    MariaDB 10.x
    If you run out of memory without swap, you're screwed :D