From owner-freebsd-chat@FreeBSD.ORG Thu Aug 2 19:09:31 2007 Return-Path: Delivered-To: freebsd-chat@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4698E16A41A for ; Thu, 2 Aug 2007 19:09:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 3802013C458 for ; Thu, 2 Aug 2007 19:09:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from rot26.obsecurity.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 6309B1A4D7C; Thu, 2 Aug 2007 12:08:59 -0700 (PDT) Received: by rot26.obsecurity.org (Postfix, from userid 1001) id 8AC35BAEA; Thu, 2 Aug 2007 15:09:30 -0400 (EDT) Date: Thu, 2 Aug 2007 15:09:30 -0400 From: Kris Kennaway To: freebsd-chat@FreeBSD.ORG, netslists@gmail.com Message-ID: <20070802190930.GA37028@rot26.obsecurity.org> References: <46B1FEF0.5050501@gmail.com> <200708021828.l72ISIng041845@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <200708021828.l72ISIng041845@lurza.secnetix.de> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: TMPFS, is it available on FreeBSD 6 or 7? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 19:09:31 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 02, 2007 at 08:28:18PM +0200, Oliver Fromme wrote: > Sten Daniel Soersdal wrote: > > Is TMPFS available on FreeBSD 6 or 7? > > Or do i have to settle for mfs? > >=20 > > [venting frustration] > > The reason i ask is i need something very flexible when it comes to=20 > > memory usage as a poor-mans shared-memory feature for a closed source= =20 > > data conversion app, used only occasionally but with *alot* of data=20 > > passing through. By alot i mean it took our quad core xeon 3 ghz with= =20 > > 4 gbyte memory and 4 SAS drives in 1+0 RAID, about a day and a half to= =20 > > process (on disk). > > Simple tests (by others) using netbsd on a single cpu 3 ghz and tmpfs,= =20 > > it took roughly 70 minutes. Most of which was spent loading and=20 > > unloading the data over the network. > > I'd really like that memory back after use for other things as this=20 > > server is also serving databases with files etc. >=20 > If you only need it occasionally, but not permanently, > then why don't you simply mount an MD filesystem on some > non-standard name (i.e. not /tmp) and use it, and when > you're done you simply umount it. You get all memory > back then. There is also a patch from pjd that will reclaim memory from md upon file deletion. It should apply to 6.x possibly with some changes. If you are unable to use 7.0 for some reason then I can send this to you to work on. Kris --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFGsivqWry0BWjoQKURAilFAJ4kRFR8uyRC630KHhi6ZSe58DzQCgCgzxV8 wWe/QpFL0L6XbdlD0cmDDM8= =gaZu -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--