From owner-freebsd-current Tue Mar 14 15:18:12 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA12651 for current-outgoing; Tue, 14 Mar 1995 15:18:12 -0800 Received: from Root.COM (implode.Root.COM [198.145.90.1]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA12643 for ; Tue, 14 Mar 1995 15:18:10 -0800 Received: from corbin.Root.COM (corbin.Root.COM [198.145.90.18]) by Root.COM (8.6.8/8.6.5) with ESMTP id PAA10765; Tue, 14 Mar 1995 15:18:03 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.11/8.6.5) with SMTP id PAA02754; Tue, 14 Mar 1995 15:18:02 -0800 Message-Id: <199503142318.PAA02754@corbin.Root.COM> X-Authentication-Warning: corbin.Root.COM: Host localhost didn't use HELO protocol To: terry@cs.weber.edu (Terry Lambert) cc: roberto@blaise.ibp.fr (Ollivier Robert), current@FreeBSD.org Subject: Re: MINFREE change to 8% In-reply-to: Your message of "Tue, 14 Mar 95 15:59:58 MST." <9503142259.AA09748@cs.weber.edu> From: David Greenman Reply-To: davidg@Root.COM Date: Tue, 14 Mar 1995 15:18:01 -0800 Sender: current-owner@FreeBSD.org Precedence: bulk >> if (fs->fs_minfree <= 5 || <<<<<<<< shouldn't 5 be MINFREE instead ?? > >MINFREE/2. > >The 5 is based on the historical default of 10%. > >This assumes MINFREE is a non-runtime adjustable manifest constant, right? > >The compare is a magic cookie to force space optimization even if the >user has requested otherwise, since the user may run out of space very >soon. Wrong. That specific comparison is to make certain that there is some amount of hysteresis in the change from time-space & space-time optimization. At 5%, there is only a .5% (fragmentation) gap between states. The state change is based on filesystem fragmentation, NOT on the actual amount of space left. -DG