...changed from TIME to SPACE
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] Thank you in advance! Best regards, Paul To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ...changed from TIME to SPACE
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 in advance! > > Best regards, > Paul -- Chris To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ...changed from TIME to SPACE
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 1978267%/ /dev/ad0s1e 2030062 801262 106639643%/usr /dev/ad1s1e 35230 17770 1464255%/var procfs 4 4 0 100%/proc It doesn't look full to me. Best regards, Paul To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ...changed from TIME to SPACE
one of your partitions is getting full, look at the output of df. Bri - Original Message - From: "Paul Everlund" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 7:32 AM Subject: ...changed from TIME to SPACE > 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] > > Thank you in advance! > > Best regards, > Paul > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ...changed from TIME to SPACE
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 1978267%/ /dev/ad0s1e 2030062 801262 106639643%/usr /dev/ad1s1e 35230 17770 1464255%/var procfs 4 4 0 100%/proc It doesn't look full to me. Best regards, Paul Try 'df -ik' -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]> Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ...changed from TIME to SPACE
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 1978267%/ /dev/ad0s1e 2030062 801262 106639643%/usr /dev/ad1s1e 35230 17770 1464255%/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 1978267%1517 6801 18% / /dev/ad0s1e 2030062 801262 106639643% 110510 144464 43% /usr /dev/ad1s1e 35230 17512 1490054% 825 3653 18% /var procfs 4 4 0 100% 494839% /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 [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ...changed from TIME to SPACE
On 2002-12-12 20:30, Paul Everlund <[EMAIL PROTECTED]> wrote: > Jens Rehsack wrote: > >Paul Everlund wrote: > >>C J Michaels wrote: > >>>Some time in the recent past Paul Everlund scribbled: > >>>> > >>>>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. Or that the /var filesystem has many files that are smaller than the block size which the newfs command that created /var used. In this case, a lot of files are saved in what the FreeBSD filesystem calls "fragments". When the amount of fragments in use exceeds 80% of the "minimum free space" of the filesystem, the filesystem switches to space optimization to a more careful allocation policy of fragments. > >Try 'df -ik' > > # df -ik > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused > Mounted on > /dev/ad1s1a 65470 40452 1978267%1517 6801 18% / > /dev/ad0s1e 2030062 801262 106639643% 110510 144464 43% /usr > /dev/ad1s1e 35230 17512 1490054% 825 3653 18% /var > procfs 4 4 0 100% 494839% /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. Or it could be this... You can use fstat to see if some process has a file open under /var that you know shouldn't be there. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
optimization changed from TIME to SPACE
I am running 4.6.2 Release and received the following kernel message: /tmp: optimization changed from TIME to SPACE I'm not sure what this means? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: optimization changed from TIME to SPACE
Michelle Weeks wrote: I am running 4.6.2 Release and received the following kernel message: /tmp: optimization changed from TIME to SPACE I'm not sure what this means? It means your /tmp partition is getting full. When there is plenty of space, the system writes files very quickly, with little regard for minor amounts of space being wasted. When the disk fills up, the system switches to SPACE optimization, which makes saves take longer, but is much less likely to waste any space. Either delete some files, or get a larger partition for /tmp. With /tmp, it's very likely that there are a lot of files in there that could be deleted. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: optimization changed from TIME to SPACE
On Friday, March 21, 2003, at 09:21 AM, Bill Moran wrote: Michelle Weeks wrote: I am running 4.6.2 Release and received the following kernel message: /tmp: optimization changed from TIME to SPACE I'm not sure what this means? It means your /tmp partition is getting full. When there is plenty of space, the system writes files very quickly, with little regard for minor amounts of space being wasted. When the disk fills up, the system switches to SPACE optimization, which makes saves take longer, but is much less likely to waste any space. Either delete some files, or get a larger partition for /tmp. With /tmp, it's very likely that there are a lot of files in there that could be deleted. -- Bill Moran Potential Technologies http://www.potentialtech.com Thank you for the clarification. I have a script running to delete files in the /tmp directory that I will change to run more often. Do I need to do anything to change the optimization back to time? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: optimization changed from TIME to SPACE
Michelle Weeks wrote: On Friday, March 21, 2003, at 09:21 AM, Bill Moran wrote: Michelle Weeks wrote: I am running 4.6.2 Release and received the following kernel message: /tmp: optimization changed from TIME to SPACE I'm not sure what this means? It means your /tmp partition is getting full. When there is plenty of space, the system writes files very quickly, with little regard for minor amounts of space being wasted. When the disk fills up, the system switches to SPACE optimization, which makes saves take longer, but is much less likely to waste any space. Either delete some files, or get a larger partition for /tmp. With /tmp, it's very likely that there are a lot of files in there that could be deleted. Thank you for the clarification. I have a script running to delete files in the /tmp directory that I will change to run more often. Do I need to do anything to change the optimization back to time? Optimization will switch back to TIME automatically when enough space is freed. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
what is the meaning of "optimization changed from TIME to SPACE"
After upgrading from freebsd-5.5-R to 6.3-R, I get the following message in dmesg: "/storage/pub/www/ram: optimization changed from TIME to SPACE" I use a ram disk via the md driver. Here is the line from my fstab file: md /storage/pub/www/rammfs rw,-s4m 2 0 Does this mean that there is some sort of error? ...and is there anything that can be done, so that I don't get this message in dmesg? Any help will be greatly appreciated :) - Looking for last minute shopping deals? Find them fast with Yahoo! Search. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: what is the meaning of "optimization changed from TIME to SPACE"
> "/storage/pub/www/ram: optimization changed from TIME to SPACE" This is not an error. It probably means the ramdisk changed it's allocation policy from preserving time to conserving space. Something what would happen if the data on it gets relatively (against available mem) big. I guess. Regards, Wouter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: what is the meaning of "optimization changed from TIME to SPACE"
ivan dimitrov wrote: After upgrading from freebsd-5.5-R to 6.3-R, I get the following message in dmesg: "/storage/pub/www/ram: optimization changed from TIME to SPACE" I use a ram disk via the md driver. Here is the line from my fstab file: md /storage/pub/www/rammfs rw,-s4m 2 0 Does this mean that there is some sort of error? ...and is there anything that can be done, so that I don't get this message in dmesg? Any help will be greatly appreciated :) - Looking for last minute shopping deals? Find them fast with Yahoo! Search. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" When I have seen this error in the past, the partition in question is near or at capacity. Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: what is the meaning of "optimization changed from TIME to SPACE"
In response to Brian <[EMAIL PROTECTED]>: > ivan dimitrov wrote: > > After upgrading from freebsd-5.5-R to 6.3-R, I get the following message in > > dmesg: > > > > "/storage/pub/www/ram: optimization changed from TIME to SPACE" > > > > I use a ram disk via the md driver. > > Here is the line from my fstab file: > > > > md /storage/pub/www/rammfs rw,-s4m 2 0 > > > > Does this mean that there is some sort of error? ...and is there anything > > that can be done, so that I don't get this message in dmesg? > > > > Any help will be greatly appreciated :) UFS normally optimizes file placement for performance. Unfortunately, in order to do this it has to write files in such a way that it sometimes wastes some space. When the partition gets close to full, FreeBSD automatically switches to "space optimization" which doesn't waste any space, but doesn't perform as well. The short answer is, "This is happening because your partition is too close to full. It's not an error, but you should clean up some files or add space." It also has nothing to do with the difference between 5.5 and 6.3. -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: what is the meaning of "optimization changed from TIME to SPACE"
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On Tue, 19 Feb 2008 10:21:18 -0500 Bill Moran <[EMAIL PROTECTED]> wrote: [...] > > ivan dimitrov wrote: > > > After upgrading from freebsd-5.5-R to 6.3-R, I get the following > > > message in dmesg: > > > > > > "/storage/pub/www/ram: optimization changed from TIME to SPACE" [...] > UFS normally optimizes file placement for performance. Unfortunately, > in order to do this it has to write files in such a way that it > sometimes wastes some space. When the partition gets close to full, > FreeBSD automatically switches to "space optimization" which doesn't > waste any space, but doesn't perform as well. > > The short answer is, "This is happening because your partition is too > close to full. It's not an error, but you should clean up some files > or add space." > > It also has nothing to do with the difference between 5.5 and 6.3. It seems that man pages (such as newfs(8) and tunefs(8)) don't have a lot of details about this matter. OP can also read this very informative post regarding disk fragmentation and time/space optimisation: http://lists.freebsd.org/pipermail/freebsd-stable/2007-April/034711.html Regards. - -- Nikola Lečić = Никола Лечић fingerprint : FEF3 66AF C90E EDC3 D878 7CDC 956D F4AB A377 1C9B -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) iQCVAwUBR7s+0fzDP9K2CKGYAQP7FQQAyrGPKIlbUCNPlasIpQJNAiJXYG7soOlG aj7ZpeL+Cnq/5EKT50TF9kc7tXvAOv9IrNsu6xg8QBe6gQVJJ/b56cKcZ48eC77y Pd+RXi/d1lweNZ9PSPqNpcsLvTrl/xnx4KOW7/E1jwFvufD01mgAsYDdVwa7KGrz Ky3Lv5ZlOLA= =5Thf -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: what is the meaning of "optimization changed from TIME to SPACE"
In response to ivan dimitrov <[EMAIL PROTECTED]>: > OK, but maybe this is not my case. I am using about 10% ... > "/dev/md0 3.6M318K3.0M 9%/storage/pub/www/ram" > > But dmesg reports continuously: > /storage/pub/www/ram: optimization changed from TIME to SPACE > /storage/pub/www/ram: optimization changed from SPACE to TIME > > about 10 times per sec. > > so, how can i stop this optimization rock-and-roll? You didn't mention that it was flipping back and forth before. I expect that some program is creating files, then deleting them shortly after, resulting in the partition filling up, switching to space opt, then it's not full so it switches back to time opt. However, unless you look at the partition at exactly the right moment, you don't see those files. For example, was the optimization at space at the moment you took that df? You've got a 3.6M partition. I could fill that up accidentally in less than a second. I stand by my original advice to add space. Bump it up to 16M or 32M and see if the problem goes away. Alternately, if you're _really_ worried about what's taking up an unexpected 3.0M of space, you could enable audit and track what programs are creating files there. > Bill Moran <[EMAIL PROTECTED]> wrote: In response to Brian > : > > > ivan dimitrov wrote: > > > After upgrading from freebsd-5.5-R to 6.3-R, I get the following message > > > in dmesg: > > > > > > "/storage/pub/www/ram: optimization changed from TIME to SPACE" > > > > > > I use a ram disk via the md driver. > > > Here is the line from my fstab file: > > > > > > md /storage/pub/www/rammfs rw,-s4m 2 0 > > > > > > Does this mean that there is some sort of error? ...and is there anything > > > that can be done, so that I don't get this message in dmesg? > > > > > > Any help will be greatly appreciated :) > > UFS normally optimizes file placement for performance. Unfortunately, > in order to do this it has to write files in such a way that it > sometimes wastes some space. When the partition gets close to full, > FreeBSD automatically switches to "space optimization" which doesn't > waste any space, but doesn't perform as well. > > The short answer is, "This is happening because your partition is too > close to full. It's not an error, but you should clean up some files > or add space." > > It also has nothing to do with the difference between 5.5 and 6.3. > > -- > Bill Moran > http://www.potentialtech.com > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > > > - > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: what is the meaning of "optimization changed from TIME to SPACE"
OK, but maybe this is not my case. I am using about 10% ... "/dev/md0 3.6M318K3.0M 9%/storage/pub/www/ram" But dmesg reports continuously: /storage/pub/www/ram: optimization changed from TIME to SPACE /storage/pub/www/ram: optimization changed from SPACE to TIME about 10 times per sec. so, how can i stop this optimization rock-and-roll? Bill Moran <[EMAIL PROTECTED]> wrote: In response to Brian : > ivan dimitrov wrote: > > After upgrading from freebsd-5.5-R to 6.3-R, I get the following message in > > dmesg: > > > > "/storage/pub/www/ram: optimization changed from TIME to SPACE" > > > > I use a ram disk via the md driver. > > Here is the line from my fstab file: > > > > md /storage/pub/www/rammfs rw,-s4m 2 0 > > > > Does this mean that there is some sort of error? ...and is there anything > > that can be done, so that I don't get this message in dmesg? > > > > Any help will be greatly appreciated :) UFS normally optimizes file placement for performance. Unfortunately, in order to do this it has to write files in such a way that it sometimes wastes some space. When the partition gets close to full, FreeBSD automatically switches to "space optimization" which doesn't waste any space, but doesn't perform as well. The short answer is, "This is happening because your partition is too close to full. It's not an error, but you should clean up some files or add space." It also has nothing to do with the difference between 5.5 and 6.3. -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"