Gunthy

GUNBOT: The automatic profit generator => Technical Support & Development => Topic started by: finlay1888 on May 31, 2017, 04:51:08 PM

Title: Linux swap file
Post by: finlay1888 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!

Title: Re: Linux swap file
Post by: dj31 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.
Title: Re: Linux swap file
Post by: dobcrypto 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
Title: Re: Linux swap file
Post by: finlay1888 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?
Title: Re: Linux swap file
Post by: dobcrypto 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 (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.
(https://image.prntscr.com/image/c9ca4d546f2a497b869d9dd1ed95028e.png)