add option to specify swap file size
Normally the swap file size is configured for optimal performance of the server. However there are times that you need a little more memory even at the cost of lower performance (especially if that need is temporary and circumstancial). In these cases it would be useful to be able to change the swap file size (within reasonable limits).
One such case occurred to me when I tried to use composer on a magento 2 app, on a 1GB server. 1GB RAM + 256MB swap is simply not enough for composer to run successfully. The only option is to move to 2GB server even though you may not need it for day to day business. Because of this magento 2 is simply not usable on 1GB servers.
Same here, have a 1gb server for some dev and to play with and can't do a lot because of that.
Michael Murray commented
I'm in the same boat. Don't want to fork out $22/month just to be able to install a darn payment gateway extension (Stripe). Out of the box Magento 2 works just fine, but anything outside of the box is just not possible :(
I'm currently unable to upgrade a new Magento 2.1 installation to 2.1.5 as there is not enough memory. Even though I've increased the php memory_limit to 2GB.
Moving up to a 2GB memory for a new site under construction isn't ideal...