From owner-freebsd-stable@FreeBSD.ORG Fri May 26 03:21:10 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0558316A491 for ; Fri, 26 May 2006 03:21:10 +0000 (UTC) (envelope-from gcr+freebsd-stable@tharned.org) Received: from nc8000.tharned.org (rrcs-24-56-87-26.ma.biz.rr.com [24.56.87.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AB3F43D46 for ; Fri, 26 May 2006 03:21:09 +0000 (GMT) (envelope-from gcr+freebsd-stable@tharned.org) Received: from nc8000.tharned.org (gcr@localhost [127.0.0.1]) by nc8000.tharned.org (8.13.6/8.13.6) with ESMTP id k4Q3KjbL001803; Thu, 25 May 2006 22:20:45 -0500 (CDT) (envelope-from gcr+freebsd-stable@tharned.org) Received: by nc8000.tharned.org (8.13.6/8.13.6/Submit) id k4Q3KjSG001802; Thu, 25 May 2006 22:20:45 -0500 (CDT) (envelope-from gcr+freebsd-stable@tharned.org) From: Greg Rivers To: freebsd-stable@freebsd.org Date: Thu, 25 May 2006 22:20:43 -0500 User-Agent: KMail/1.9.1 References: <44764417.4030004@alumni.rice.edu> <20060526004343.GE28128@groat.ugcs.caltech.edu> In-Reply-To: <20060526004343.GE28128@groat.ugcs.caltech.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605252220.44739.gcr+freebsd-stable@tharned.org> Cc: Paul Allen , Kris Kennaway Subject: Re: kmem leak in tmpmfs? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 03:21:12 -0000 On Thursday 25 May 2006 19:43, Paul Allen wrote: > >From Jonathan Noack , Thu, May 25, 2006 at > > 07:56:07PM -0400: I am currently running with the following in > > /etc/rc.conf and haven't experienced any problems: > > tmpmfs_flags="-S -o async" > > Is there a way to accomplish this with an fstab entry? > > md /tmp mfs rw,async,-s1024m,-S > > no,I don't think so. But surely it would be better to just fixup the > standard mount -t path to not call mount_mfs... > Actually there is a way. I too have not been satisfied with the tmpmfs features in rc, so for some time now I've simply created a hard link: cd /sbin && ln -f mdmfs mount_md and then used an entry like this in /etc/fstab: md /tmp md rw,async,-Sp1777,-s768M 0 0 This works great for me. A simple patch to mtree could make this hard link part of the base system. Nothing else is needed. -- Greg