From owner-freebsd-questions@FreeBSD.ORG Fri Dec 5 05:09:04 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3DB1BB4B for ; Fri, 5 Dec 2014 05:09:04 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 17265EC2 for ; Fri, 5 Dec 2014 05:09:03 +0000 (UTC) Received: by be-well.ilk.org (Postfix, from userid 1147) id F1BEE33C1E; Fri, 5 Dec 2014 00:08:56 -0500 (EST) From: Lowell Gilbert To: clutton Subject: Re: FreeBSD working from RAM (MFSROOT) as a Workstation. References: <1417734458.1772.1.camel@zoho.com> Reply-To: freebsd-questions@freebsd.org Date: Fri, 05 Dec 2014 00:08:56 -0500 In-Reply-To: <1417734458.1772.1.camel@zoho.com> (clutton@zoho.com's message of "Fri, 05 Dec 2014 01:07:38 +0200") Message-ID: <447fy665uf.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2014 05:09:04 -0000 clutton writes: > Is anyone use a FreeBSD as a Desktop working from RAM, using MFSROOT? That only speeds up the *first* load of each memory page mirroring a disk sector. After the system has been up a while, it's actually slower than running with a disk, because everything you actually use will have two copies in RAM: one on the disk image, and the one that's actually occupying normal resident pages. Furthermore, you have to load your whole root filesystem from disk before you start, even the parts you haven't used yet. I would expect that to give you a *slower* startup time. RAM is faster than SSD access, but the SSD is non-volatile, whereas the RAM needs to be repopulated from non-volatile storage every time you boot. And every page that is used has to get loaded into the RAM disk and *then* loaded into virtual memory. TL;DR: To run from RAM, you first have to load the RAM. The chances that an MFSROOT does this more efficiently (than starting directly from the nonvolatile disk) seem remote.