From owner-freebsd-questions@freebsd.org Thu Feb 8 17:59:03 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B15F6F1776A for ; Thu, 8 Feb 2018 17:59:03 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F5C3738D9 for ; Thu, 8 Feb 2018 17:59:03 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from roundcube.fjl.org.uk (localhost [127.0.0.1]) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id w18HwxYQ095660 for ; Thu, 8 Feb 2018 17:58:59 GMT (envelope-from frank2@fjl.co.uk) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 08 Feb 2018 17:58:59 +0000 From: Frank Leonhardt To: freebsd-questions@freebsd.org Subject: Re: Swap on SSD Organization: FJL Microsystems In-Reply-To: <20180208075746.917d9319074bd831af69eacd@sohara.org> References: <396EC97D-AF5C-4D37-9172-7212B3B0BDDB@kreme.com> <20180208075746.917d9319074bd831af69eacd@sohara.org> Message-ID: <17345a3e119a97154cf3e8bb40beb84f@roundcube.fjl.org.uk> X-Sender: frank2@fjl.co.uk User-Agent: Roundcube Webmail/0.9.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2018 17:59:03 -0000 On 2018-02-08 07:57, Steve O'Hara-Smith wrote: > On Thu, 8 Feb 2018 00:38:02 -0700 > LuKreme wrote: > >> On Feb 7, 2018, at 08:18, Frank Leonhardt wrote: >> > Swap areas have been replaced by page areas on disk, but the name stuck. >> >> Should the installer then be creating a dedicated swap partition? It >> seems not. > > Yes of course it should, it's the place where pages that aren't > backed by storage can be written to when needed. Possibly not as true today as it once was. You used to have a drive for swapping and/or paging, not a partition. It could be small and fast while the FS was on a large and slow drive. Using a partition instead of a drive doesn't give the same advantage. When it was swapping the variable length process could be written sequentially to a slot on the swap file. Not so much with pages; they get fragmented whatever you put them on (file or partition). At least with a dedicated partition the head movements are short stroked - except when they're interleaved with FS accesses because it's all the same head anyway. So why not use a page file instead? Or better still multiple page files spread across all available physical disks? Some people might not know that you can add and remove multiple paging spaces even while the system is running. More here: http://blog.frankleonhardt.com/2011/large-swap-files-on-freebsd-die-with-mystery-killed-howto-add-lots-of-swap-space/