From owner-freebsd-questions@freebsd.org Sun May 13 04:04: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 79519FAE15E for ; Sun, 13 May 2018 04:04:04 +0000 (UTC) (envelope-from thor@irk.ru) Received: from mail.irk.ru (mail.irk.ru [195.206.40.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 002AC6CE03 for ; Sun, 13 May 2018 04:04:03 +0000 (UTC) (envelope-from thor@irk.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=irk.ru; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=y5idRsfEnawsO1h0yZ7G70wGVoCi0cXVF0VX+njUwAU=; b=GXCzUyfF7nxOu7a32I2ADCtNZs s4s1kVb10aOZ2SPZB/otYzPoBtBCfsoGNqG+XUyS9O5G0fGy9I//dsJp7nx0DEEpC7W44P8eNPWoL MjZF3WStrZaNP4wSXdr9ync+YI9jTeI48Q5K50gpx+rbG8omwTbKAt0n5wBOMyZ0l5vg=; Received: from [194.176.114.54] (helo=[192.168.1.130]) by mail.irk.ru with esmtpa (Exim 4.89 (FreeBSD)) (envelope-from ) id 1fHi8K-000C4l-Hb for freebsd-questions@freebsd.org; Sun, 13 May 2018 11:57:16 +0800 Subject: Re: swapfile question To: freebsd-questions@freebsd.org References: <09eab1d4-3dd8-3530-bdbf-b436ec6aeeed@zyxst.net> From: thor Message-ID: <82cc7430-c37b-e076-b801-e0e89df3f544@irk.ru> Date: Sun, 13 May 2018 12:03:51 +0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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: Sun, 13 May 2018 04:04:04 -0000 Partition is faster because it does not depend on all the file processor. But: 1) I had a setup where the swap was a md vnode on a geli partition. And it has some troubles, I didn't investigate why. The main trouble was a panic immediately after disk sync on shutdown. So in the future I am going to use a separate geli partition for swap. 2) Use of lots of RAM without swap is even faster. But there are some programs (notably compile libre office) that need lots of ram/swap per core. On 05/12/18 23:39, Waitman Gobble wrote: > On Sat, May 12, 2018 at 6:51 AM, tech-lists wrote: >> Hi, >> >> In a SSD/amd64/ufs2/freebsd-11 context, which is faster: >> >> 1. swap as a partition on the ssd >> 2. swap as a file on the ssd >> >> If one is faster than the other, why? To what extent? >> >> thanks, >> -- >> J. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > Don't swap. 1 and 2 are both slower. > > I use Warren Block's SSD setup and create swap file, seems to work A-OK. > > http://www.wonkity.com/~wblock/docs/ > >