Username: Password:

Author Topic: Linux swap file  (Read 22107 times)

Offline finlay1888

  • Rookie
  • *
  • Posts: 6
    • View Profile
Linux swap file
« on: May 31, 2017, 04:51:08 PM »
Is there any way I can bolster my Digital Ocean 2GB droplet with liberal use of swap file?

I have 17 pairs running (2 stopped) which takes me up to 85% usage.....had some issues with the 1GB droplet with stability where all my pm2 sessions died....would be very keen to ensure no repeat of that!


Offline dj31

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Linux swap file
« Reply #1 on: May 31, 2017, 06:15:17 PM »
There is no downside to a swapfile.   It can help prevent virtual deadlocks caused by out of memory conditions.

But it's no silver bullet.   If your system needs more memory -- there is but one solution.   More memory.    Hard disks are slow.

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Re: Linux swap file
« Reply #2 on: June 02, 2017, 12:21:58 AM »
Is there any way I can bolster my Digital Ocean 2GB droplet with liberal use of swap file?

I have 17 pairs running (2 stopped) which takes me up to 85% usage.....had some issues with the 1GB droplet with stability where all my pm2 sessions died....would be very keen to ensure no repeat of that!

U can it!
I did it and run 62 pairs all is good.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

Offline finlay1888

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Linux swap file
« Reply #3 on: June 02, 2017, 08:23:43 AM »
U can it!
I did it and run 62 pairs all is good.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

Ok, so I have allocatd about 7GB swap (!!)....  DigitalOcean HDs are SSD so can be reasonably confident of performance.

My mem usage is at 94% used with 17 pairs but i would like to add more without upsizing....will it now blow up if I add more?   Does yours just sit pegged 100% mem usage constantly?
« Last Edit: June 02, 2017, 08:25:55 AM by finlay1888 »

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Re: Linux swap file
« Reply #4 on: June 02, 2017, 09:25:00 AM »
U can it!
I did it and run 62 pairs all is good.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

Ok, so I have allocatd about 7GB swap (!!)....  DigitalOcean HDs are SSD so can be reasonably confident of performance.

My mem usage is at 94% used with 17 pairs but i would like to add more without upsizing....will it now blow up if I add more?   Does yours just sit pegged 100% mem usage constantly?

As i sad all works fine, 51 pairs runing in DO with 6G swap.