From owner-freebsd-cloud@freebsd.org Thu Nov 3 19:50:36 2016 Return-Path: Delivered-To: freebsd-cloud@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DA9CC2DEAF for ; Thu, 3 Nov 2016 19:50:36 +0000 (UTC) (envelope-from 010001582bbe15d7-f80d1269-699f-4570-b8e3-d66061c34d0b-000000@amazonses.com) Received: from a8-26.smtp-out.amazonses.com (a8-26.smtp-out.amazonses.com [54.240.8.26]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 30EDE1181 for ; Thu, 3 Nov 2016 19:50:35 +0000 (UTC) (envelope-from 010001582bbe15d7-f80d1269-699f-4570-b8e3-d66061c34d0b-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1478202627; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=3Ah8WHHfi/Gwp8i+Oo84o3bdUuTeL8Ce7O+vlH/Z8OE=; b=Ecb/INWjd1++8Vb0UYAy9TWpTThce3BrIXspioL3JvV2dKvEFYbOztBHCT65vmgV 0K6NqDjtLnMbWAHmqsJ6ngiGmlN+0vY1x18gQ9TE2GeOWkniyC+u7yAtLkWQArrubT9 c+zxNcF7JO9ZhRANYC7qXNqKl608sQRHlUHeNnCQ= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1478202627; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=3Ah8WHHfi/Gwp8i+Oo84o3bdUuTeL8Ce7O+vlH/Z8OE=; b=KFMS3aAbFAQIqMe34j8G3vaZEEGMEOux4da/USERzGA/VIlhcdu/szVIK3as11PQ 6vVZ1GBv06tOtrv8lTzJuiz4JQwY61Prr1+Mp22F7B7Kz7HaFYDxlWGFhV55uchENXA ncxTgxTwdVF6vVaW7tTGQzhm5bpOw4mYbravJank= Subject: Re: FreeBSD images swap space on GCE To: Prakhar Goel , freebsd-cloud@freebsd.org References: From: Colin Percival Message-ID: <010001582bbe15d7-f80d1269-699f-4570-b8e3-d66061c34d0b-000000@email.amazonses.com> Date: Thu, 3 Nov 2016 19:50:27 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2016.11.03-54.240.8.26 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2016 19:50:36 -0000 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