From owner-freebsd-questions Fri Jan 24 16:15:32 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9738837B401 for ; Fri, 24 Jan 2003 16:15:30 -0800 (PST) Received: from wabakimi.chat.carleton.ca (wabakimi.chat.carleton.ca [134.117.1.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8894343F13 for ; Fri, 24 Jan 2003 16:15:29 -0800 (PST) (envelope-from creyenga@connectmail.carleton.ca) Received: from fireball (resnet-89-057.cavern.carleton.ca [134.117.89.57]) by wabakimi.chat.carleton.ca (8.11.1/8.11.1) with SMTP id h0P0FLk26024; Fri, 24 Jan 2003 19:15:21 -0500 (EST) Message-ID: <001301c2c406$ddf08310$0200000a@sewer.org> From: "Craig Reyenga" To: Cc: References: <20030124160148.R12356@babelfish.pursued-with.net> Subject: Re: Filesystem tuning parameters Date: Fri, 24 Jan 2003 19:15:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You're right, dedicating that much space to nothing is pretty pointless. What I did was I edited /usr/src/sys/ufs/ffs/fs.h and changed: #define MINFREE 8 to #define MINFREE 0 and then recompiled the kernel and set my /home partition to use 0% free space with tunefs. Now I get to use every last block, and it goes quite fast, until I truly do run real low on free space. I believe this is the way out, but I could be out to lunch on this one. Hope this helps. -Craig ----- Original Message ----- From: "Kevin Stevens" To: Sent: Friday, January 24, 2003 19:03 Subject: Filesystem tuning parameters > I have a confusion about apparent conflicts between the minfree setting > and time/space optimization. > > Per the manpage: > minfree - > Specify the percentage of space held back from normal users; the > minimum free space threshold. The default value used is 8%. > This value can be set to zero, however up to a factor of three in > throughput will be lost over the performance obtained at a 10% > threshold. Settings of 5% and less force space optimization to > always be used which will greatly increase the overhead for file > writes. > > space/time - > The filesystem can either try to minimize the time spent allocat- > ing blocks, or it can attempt to minimize the space fragmentation > on the disk. Optimization for space has much higher overhead for > file writes. The kernel normally changes the preference automat- > ically as the percent fragmentation changes on the filesystem. > > I have a large (120GB) drive dedicated to data storage. I don't want to > commit 10% (12GB) of space to free space, and I don't need nearly that > much to avoid overflowing the volume. However, I want to maintain time > optimization. When it says that "settings of 5% and less force space > optimization to be used", is that still the case when you specify time > optimization?? > > Also, why is "up to a factor of three in throughput" lost over the 10% > setting? Is that another allusion to space optimization going into > effect, or is there something else happening? I guess I don't understand > the ramifications of the minfree setting. Any suggestions or references? > > Thanks! > > KeS > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message