From owner-freebsd-arm@freebsd.org Tue Jul 14 01:34:42 2015 Return-Path: Delivered-To: freebsd-arm@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 76A49998A07 for ; Tue, 14 Jul 2015 01:34:42 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57C8D18D9 for ; Tue, 14 Jul 2015 01:34:42 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.14.9/8.14.5) with ESMTP id t6E1Oiug024645; Mon, 13 Jul 2015 18:24:44 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.14.9/8.14.5/Submit) id t6E1OiBG024644; Mon, 13 Jul 2015 18:24:44 -0700 (PDT) (envelope-from fbsd) Date: Mon, 13 Jul 2015 18:24:44 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Swap on SD or on usb flash drive for rpi2? Message-ID: <20150714012444.GA24345@www.zefox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 01:34:42 -0000 Hi all, For some reason my rpi2 insists on having a token amount of swap. It's running FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285428: Sun Jun 14 02:20:56 UTC 2015 bob@rpi2:/usr/obj/usr/src/sys/RPI2 arm (please disregard the date, the system built itself today, July 13 2015) When running a buildworld cycle it uses about 68 MB of swap. It happens that the md filesystems use close to the same amount of space. By any chance could the need for swap be eliminated if the memory filesystems were replaced by physical partitions on the SD card or a usb flash device? If physical swap _is_ mandatory is there significant advantage to placing it on a device separate from /, as with mechanical disks? Thanks for reading and any guidance, bob prohaska