From owner-freebsd-questions Thu Dec 12 11:30:31 2002 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 B1E2D37B401 for ; Thu, 12 Dec 2002 11:30:28 -0800 (PST) Received: from grillolja.cs.umu.se (grillolja.cs.umu.se [130.239.40.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA53643EC2 for ; Thu, 12 Dec 2002 11:30:27 -0800 (PST) (envelope-from tdv94ped@cs.umu.se) Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 1F6F8A042; Thu, 12 Dec 2002 20:30:26 +0100 (MET) Received: from cs.umu.se (h40n3c1o1023.bredband.skanova.com [213.64.166.40]) by grillolja.cs.umu.se (Postfix) with ESMTP id 9C705A03E; Thu, 12 Dec 2002 20:30:22 +0100 (MET) Message-ID: <3DF8E3C9.3030701@cs.umu.se> Date: Thu, 12 Dec 2002 20:30:17 +0100 From: Paul Everlund User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: sv,en MIME-Version: 1.0 To: Jens Rehsack Cc: C J Michaels , questions@FreeBSD.org, bri@sonicboom.org, wmoran@potentialtech.com Subject: Re: ...changed from TIME to SPACE References: <1299.216.153.201.47.1039623659.squirrel@www.27in.tv> <3DF76F78.8040100@cs.umu.se> <3DF772FE.7080108@liwing.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new amavisd-new-20020630 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 Jens Rehsack wrote: > Paul Everlund wrote: > >> C J Michaels wrote: >> >>> Some time in the recent past Paul Everlund scribbled: >>> >>> >Hi list! >>> > >>> >What does this mean? >>> > >>> ># sysctl kern.msgbuf >>> >[snip] >>> ><5>/var: optimization changed from TIME to SPACE >>> ><118>Dec 10 11:36:12 fw /kernel: /var: optimization changed from >>> TIME to >>> >SPACE [snip] >>> >>> It means that your /var filesystem is nearly full. The kernel is now >>> trying to maximize the amout of free full blocks on the filesystem. >>> >>> >From fs(5) manpage: >>> === >>> The element fs_optim specifies whether the file system should try to >>> min- >>> imize the time spent allocating blocks, or if it should attempt to mini- >>> mize the space fragmentation on the disk. If the value of fs_minfree >>> (see above) is less than 10%, then the file system defaults to >>> optimizing >>> for space to avoid running out of full sized blocks. If the value of >>> minfree is greater than or equal to 10%, fragmentation is unlikely to be >>> problematical, and the file system defaults to optimizing for time. >>> === >>> >>> Some other good reads would be tunefs(8), newfs(8), and the mailing list >>> archives. >> >> >> >> Thank you Chris and Jens for your replies! >> >> A full file system on /var triggered it? >> >> # df -k >> Filesystem 1K-blocks Used Avail Capacity Mounted on >> /dev/ad1s1a 65470 40452 19782 67% / >> /dev/ad0s1e 2030062 801262 1066396 43% /usr >> /dev/ad1s1e 35230 17770 14642 55% /var >> procfs 4 4 0 100% /proc >> >> It doesn't look full to me. >> >> Best regards, >> Paul >> > Try 'df -ik' # df -ik Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/ad1s1a 65470 40452 19782 67% 1517 6801 18% / /dev/ad0s1e 2030062 801262 1066396 43% 110510 144464 43% /usr /dev/ad1s1e 35230 17512 14900 54% 825 3653 18% /var procfs 4 4 0 100% 49 483 9% /proc The i-nodes are fine too. Anyway, I guess it is as Bill Moran wrote, that a temporary file was created, that made it change, and somewere in the logs a change back should be found. Will check it later. Thank you all for your replies! In the future, now I know what TIME to SPACE and vice versa means! Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message