Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Nov 2016 19:50:27 +0000
From:      Colin Percival <cperciva@tarsnap.com>
To:        Prakhar Goel <newt0311@gmail.com>, freebsd-cloud@freebsd.org
Subject:   Re: FreeBSD images swap space on GCE
Message-ID:  <010001582bbe15d7-f80d1269-699f-4570-b8e3-d66061c34d0b-000000@email.amazonses.com>
In-Reply-To: <CABa1M22%2B%2BOUBh6vuoOrBo-q-RV-osz7EcVeWt47fB0ck2id5UQ@mail.gmail.com>
References:  <CABa1M22%2B%2BOUBh6vuoOrBo-q-RV-osz7EcVeWt47fB0ck2id5UQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/03/16 11:31, Prakhar Goel wrote:
> [GCE images have swap on the root disk, which is small and thus slow...]
> 
> To resolve the problem, I enabled extra space in an attached volume
> (standard persistent disk, 200GB size). As long as my new swap space
> was enabled *and the old swap space was disabled*, my applications
> were fine.
> 
> Not sure what can be done to resolve this. The default swap setup just
> seems to cause problems so maybe remove it altogether and let users
> set up their own swap space on faster devices as needed?

For the EC2 images, I don't have any swap in the image itself but if there
are any ephemeral disks attached I grab a slice from them and configure it
as swap.  Quite apart from the question of performance, with instances having
anywhere from 0.5 GB up to 1952 GB of RAM, it doesn't make much sense to have
a fixed size of swap.

> PS. Is this the right place to send emails like this? Not sure myself.

Definitely the right place.

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010001582bbe15d7-f80d1269-699f-4570-b8e3-d66061c34d0b-000000>