From owner-freebsd-questions@freebsd.org Thu Sep 15 13:52:35 2016 Return-Path: Delivered-To: freebsd-questions@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 50107BDB0C6 for ; Thu, 15 Sep 2016 13:52:35 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp3.irishbroadband.ie (smtp3.irishbroadband.ie [62.231.32.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19357F7A for ; Thu, 15 Sep 2016 13:52:34 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [89.127.62.20] (helo=smtp.lan.sohara.org) by smtp3.irishbroadband.ie with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1bkX5W-0003fy-Cv for freebsd-questions@freebsd.org; Thu, 15 Sep 2016 14:52:26 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.87 (FreeBSD)) (envelope-from ) id 1bkX5s-0000NZ-Th for freebsd-questions@freebsd.org; Thu, 15 Sep 2016 13:52:48 +0000 Date: Thu, 15 Sep 2016 14:52:23 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Best kind of hard drive for heavy use? Message-Id: <20160915145223.1539a56e0f8ae601a914340d@sohara.org> In-Reply-To: References: <42.56.05022.D3A48D75@dnvrco-oedge02> <20160914120349.76a015cd@gumby.homeunix.com> <20160914175449.185d12b0@archlinux.localdomain> <20160914221954.00fb1d56@gumby.homeunix.com> <20160915013848.5564c238@archlinux.localdomain> <20160915140856.24af27ca@gumby.homeunix.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2016 13:52:35 -0000 On Thu, 15 Sep 2016 14:29:37 +0100 Shamim Shahriar wrote: > I might be mistaken here, but from man tmpfs > > *size* Specifies the total file system size in bytes. If zero (the > default) or a value larger than SIZE_MAX - PAGE_SIZE is given, the > available amount of memory (including main memory and swap space) will be > used. > > My understanding, which might be wrong, is that as long as your size of > tmpfs is smaller than ram, it is kept on the ram. Swap is only used when > your tmpfs exceeds the available physical ram. Nope tmpfs is just another user of RAM and will be swapped according to memory pressure just like any other user of RAM - IOW if you have a tmpfs half the size of your memory that isn't too busy and processes keeping most of your memory busy then likely you'll find tmpfs data swapped out. -- Steve O'Hara-Smith