From owner-freebsd-questions@freebsd.org Fri Feb 9 03:31:04 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 52408F1FAC3 for ; Fri, 9 Feb 2018 03:31:04 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE40E6E86C for ; Fri, 9 Feb 2018 03:31:03 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 36493 invoked from network); 9 Feb 2018 03:31:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=8e8b.5a7d15f7.k1802; bh=BWFLaVaDeVL2Lgmirqv+XukbOyTadiY2ZqSNawNaSPQ=; b=Pzntg3VVF05JurattCvOgFpq0hcx0boCTZZyDIXPybxYIgZKIL3jEuFcWGqIV8lxl/XGFo0YMsjJLiFRZCbiA8IiMqSE4rROvAdx+839k6tmznhNdvkjZlHRA79okGJWjj210wZHF/GY45Rr4MHHKpO58F/BuS+v3XFJOlSdsWvrKLwQHeDWTFMcxEWbiM3UJMMNmVI5Oe02QI1xJJU3a4wjnjSxuzII8jAWSlY3Sxqgrk4MuG1HJiB21TN2xvJD Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTP via TCP6; 09 Feb 2018 03:31:02 -0000 Received: by ary.qy (Postfix, from userid 501) id A8EF11A74673; Thu, 8 Feb 2018 22:31:02 -0500 (EST) Date: 8 Feb 2018 22:31:02 -0500 Message-Id: <20180209033102.A8EF11A74673@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: kremels@kreme.com Subject: Re: Swap on SSD In-Reply-To: <99D367C9-ADF4-41EB-8D4F-5D5F3B0C7ABF@kreme.com> Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit 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: Fri, 09 Feb 2018 03:31:04 -0000 In article <99D367C9-ADF4-41EB-8D4F-5D5F3B0C7ABF@kreme.com> you write: >>> 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. > >That seems easily solved (just as well) by a swapfile. FreeBSD lets you have either or both, but a swap partition is faster. If you use a swap partition, block N is at disk location B+N where B is the base of the partition. If you use a swapfile, you have inodes and indirect blocks and such, so random access to a large swapfile might have to read one or two overhead blocks for every swap block.