<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Linux Precision</title>
	<atom:link href="http://blog.sidneidasilva.com/2008/08/22/linux-precision/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/</link>
	<description></description>
	<lastBuildDate>Sat, 31 Jul 2010 20:09:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Buchan</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18557</link>
		<dc:creator>Buchan</dc:creator>
		<pubDate>Fri, 29 Aug 2008 13:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18557</guid>
		<description>So, critics haven&#039;t figured out that Avail != Size - Used ?

Avail == Size - Used - Reserved

Maybe instead of complaining, users should ask for the reserved space to be shown in the df output. Or, as end users, using a graphical tool (such as the properties dialog in Konqueror/Dolphin, which bases its values on the non-reserved ). For example, on one of my machines:

$ df -P /home
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/VGsystem-home  35079261  33545678   1533583      96% /home
$ df /home
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VGsystem-home
                      35079261  33545598   1533663  96% /home

But, Konqueror shows:
Free disk space: 1.5GB out of 33.5GB

People complain that linux is like &#039;DOS&#039;, but then complain when df gives them an answer they can&#039;t understand, while all the GUI tools give them the answer in the way they can understand it. I give up.</description>
		<content:encoded><![CDATA[<p>So, critics haven&#8217;t figured out that Avail != Size &#8211; Used ?</p>
<p>Avail == Size &#8211; Used &#8211; Reserved</p>
<p>Maybe instead of complaining, users should ask for the reserved space to be shown in the df output. Or, as end users, using a graphical tool (such as the properties dialog in Konqueror/Dolphin, which bases its values on the non-reserved ). For example, on one of my machines:</p>
<p>$ df -P /home<br />
Filesystem         1024-blocks      Used Available Capacity Mounted on<br />
/dev/mapper/VGsystem-home  35079261  33545678   1533583      96% /home<br />
$ df /home<br />
Filesystem           1K-blocks      Used Available Use% Mounted on<br />
/dev/mapper/VGsystem-home<br />
                      35079261  33545598   1533663  96% /home</p>
<p>But, Konqueror shows:<br />
Free disk space: 1.5GB out of 33.5GB</p>
<p>People complain that linux is like &#8216;DOS&#8217;, but then complain when df gives them an answer they can&#8217;t understand, while all the GUI tools give them the answer in the way they can understand it. I give up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18556</link>
		<dc:creator>Owen</dc:creator>
		<pubDate>Fri, 29 Aug 2008 12:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18556</guid>
		<description>Why not use du -hs / if you want to know the size of everything on your drive. Or better yet, use xdiskusage. I thought some of the &quot;lost&quot; space in the df output was from inodes.</description>
		<content:encoded><![CDATA[<p>Why not use du -hs / if you want to know the size of everything on your drive. Or better yet, use xdiskusage. I thought some of the &#8220;lost&#8221; space in the df output was from inodes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChirpyChirpyCheapCheap</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18555</link>
		<dc:creator>ChirpyChirpyCheapCheap</dc:creator>
		<pubDate>Wed, 27 Aug 2008 10:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18555</guid>
		<description>man df
-h, --human-readable
              print sizes in human readable format (e.g., 1K 234M 2G)
Examples show it&#039;s rounding. Here&#039;re the alternatives:
18:58 [summer@numbat ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       35G   32G  1.1G  97% /
/dev/hda1              99M   61M   34M  65% /boot
tmpfs                 1.5G     0  1.5G   0% /dev/shm
18:58 [summer@numbat ~]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      35772016  32862740   1062800  97% /
/dev/hda1               101086     62001     33866  65% /boot
tmpfs                  1481572         0   1481572   0% /dev/shm
18:58 [summer@numbat ~]$
Which is easier to read?</description>
		<content:encoded><![CDATA[<p>man df<br />
-h, &#8211;human-readable<br />
              print sizes in human readable format (e.g., 1K 234M 2G)<br />
Examples show it&#8217;s rounding. Here&#8217;re the alternatives:<br />
18:58 [summer@numbat ~]$ df -h<br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/mapper/VolGroup00-LogVol00<br />
                       35G   32G  1.1G  97% /<br />
/dev/hda1              99M   61M   34M  65% /boot<br />
tmpfs                 1.5G     0  1.5G   0% /dev/shm<br />
18:58 [summer@numbat ~]$ df<br />
Filesystem           1K-blocks      Used Available Use% Mounted on<br />
/dev/mapper/VolGroup00-LogVol00<br />
                      35772016  32862740   1062800  97% /<br />
/dev/hda1               101086     62001     33866  65% /boot<br />
tmpfs                  1481572         0   1481572   0% /dev/shm<br />
18:58 [summer@numbat ~]$<br />
Which is easier to read?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evil Closet Monkey</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18554</link>
		<dc:creator>Evil Closet Monkey</dc:creator>
		<pubDate>Tue, 26 Aug 2008 14:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18554</guid>
		<description>Some appear to be forgetting what Sid is looking at is &quot;human readable&quot; output.  Look up through the comments above and you see all the excuses and reasons why the output is correct... when it really isn&#039;t!

Waylon hits it on the head.  &#039;df&#039; might be doing what it is supposed to, but the output is useless to a regular user.  You shouldn&#039;t have to understand what is happening under the hood to understand the output.

@Joe:  Remember that is is all about the user, user, *user*!  If something doesn&#039;t make sense, it&#039;s wrong.</description>
		<content:encoded><![CDATA[<p>Some appear to be forgetting what Sid is looking at is &#8220;human readable&#8221; output.  Look up through the comments above and you see all the excuses and reasons why the output is correct&#8230; when it really isn&#8217;t!</p>
<p>Waylon hits it on the head.  &#8216;df&#8217; might be doing what it is supposed to, but the output is useless to a regular user.  You shouldn&#8217;t have to understand what is happening under the hood to understand the output.</p>
<p>@Joe:  Remember that is is all about the user, user, *user*!  If something doesn&#8217;t make sense, it&#8217;s wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18552</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 26 Aug 2008 06:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18552</guid>
		<description>If a person doesn&#039;t care about df, it doesn&#039;t matter if the number make sense to them or not.  

df is merely reporting the values returned by the file system driver.  The column headings even make sense, if you actually read them.  The &quot;size&quot; is the size of the file system, the &quot;used&quot; is how much is used and the &quot;avail&quot; is how much is available for additional writing in normal operation.  No where does it say that these need to add up to the same amounts, they are mostly completely unrelated values.  A full disk is an exceptional condition, and the system is set up to avoid serious problems during an exceptional condition.</description>
		<content:encoded><![CDATA[<p>If a person doesn&#8217;t care about df, it doesn&#8217;t matter if the number make sense to them or not.  </p>
<p>df is merely reporting the values returned by the file system driver.  The column headings even make sense, if you actually read them.  The &#8220;size&#8221; is the size of the file system, the &#8220;used&#8221; is how much is used and the &#8220;avail&#8221; is how much is available for additional writing in normal operation.  No where does it say that these need to add up to the same amounts, they are mostly completely unrelated values.  A full disk is an exceptional condition, and the system is set up to avoid serious problems during an exceptional condition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sidnei</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18551</link>
		<dc:creator>sidnei</dc:creator>
		<pubDate>Tue, 26 Aug 2008 00:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18551</guid>
		<description>@Waylon: You&#039;re absolutely right. Not even &#039;man df&#039; gives you a clue about what&#039;s going on.</description>
		<content:encoded><![CDATA[<p>@Waylon: You&#8217;re absolutely right. Not even &#8216;man df&#8217; gives you a clue about what&#8217;s going on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waylon Kenning</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18550</link>
		<dc:creator>Waylon Kenning</dc:creator>
		<pubDate>Tue, 26 Aug 2008 00:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18550</guid>
		<description>I think the point is for a person who doesn&#039;t care about df, those numbers don&#039;t even make sense. It doesn&#039;t even mention rounding.

This is a perfect example of the program being &#039;technically correct&#039;, but not being useful. Well done.</description>
		<content:encoded><![CDATA[<p>I think the point is for a person who doesn&#8217;t care about df, those numbers don&#8217;t even make sense. It doesn&#8217;t even mention rounding.</p>
<p>This is a perfect example of the program being &#8216;technically correct&#8217;, but not being useful. Well done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Curtin</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18545</link>
		<dc:creator>Matt Curtin</dc:creator>
		<pubDate>Sat, 23 Aug 2008 15:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18545</guid>
		<description>What is happening here goes back far before Linux. A search in the literature will show references to “minfree” (which is the amount “reserved for root”).  BSD&#039;s tunefs(8) man page describes this in some more detail.

Secondly, it is worth pointing out that you&#039;re complaining not about a lack of “precision” but of accuracy.  They aren&#039;t the same thing.  And once you know how to read the df(1) output, of course, you will see that there is no accuracy problem at all.</description>
		<content:encoded><![CDATA[<p>What is happening here goes back far before Linux. A search in the literature will show references to “minfree” (which is the amount “reserved for root”).  BSD&#8217;s tunefs(8) man page describes this in some more detail.</p>
<p>Secondly, it is worth pointing out that you&#8217;re complaining not about a lack of “precision” but of accuracy.  They aren&#8217;t the same thing.  And once you know how to read the df(1) output, of course, you will see that there is no accuracy problem at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dorneles Treméa</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18544</link>
		<dc:creator>Dorneles Treméa</dc:creator>
		<pubDate>Sat, 23 Aug 2008 04:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18544</guid>
		<description>Hey Sid,

Alexandre is right... by default, when creating a new file system with mkfs.ext3, it will reserve 5% to root.

This percentage is taken into account even when running df with root privileges. 

To recover your extra 1GB back, just run:

  sudo tune2fs -m 0 /dev/sda2

BTW, it recovered 25GB on my half terabyte HD... :-P

Take care.

-- deo</description>
		<content:encoded><![CDATA[<p>Hey Sid,</p>
<p>Alexandre is right&#8230; by default, when creating a new file system with mkfs.ext3, it will reserve 5% to root.</p>
<p>This percentage is taken into account even when running df with root privileges. </p>
<p>To recover your extra 1GB back, just run:</p>
<p>  sudo tune2fs -m 0 /dev/sda2</p>
<p>BTW, it recovered 25GB on my half terabyte HD&#8230; :-P</p>
<p>Take care.</p>
<p>&#8211; deo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sidnei</title>
		<link>http://blog.sidneidasilva.com/2008/08/22/linux-precision/#comment-18543</link>
		<dc:creator>sidnei</dc:creator>
		<pubDate>Fri, 22 Aug 2008 22:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://omsg.wordpress.com/?p=264#comment-18543</guid>
		<description>I did, same results. But that might be a good clue as to what&#039;s going on.</description>
		<content:encoded><![CDATA[<p>I did, same results. But that might be a good clue as to what&#8217;s going on.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
