<?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/"
		>
<channel>
	<title>Comments on: Ext4 defragmentation with e4defrag</title>
	<atom:link href="http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/feed/" rel="self" type="application/rss+xml" />
	<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/</link>
	<description>All About GNU/Linux and BSD - reviews, comparisons, articles</description>
	<lastBuildDate>Sun, 13 May 2012 17:43:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cmol</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-162751</link>
		<dc:creator>cmol</dc:creator>
		<pubDate>Mon, 20 Dec 2010 14:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-162751</guid>
		<description>@agaida, nice trick for small filesystems but i can&#039;t imagine doing that with my 6TB data. i&#039;d like a defrag tool :-) unless i do it sequentially, folder by folder eg 1TB at a time... will that work?

ps. i&#039;m just an enthusiast/hobbyist, so forgive my ignorance :-) 

interesting reading on the harddrive technologies.</description>
		<content:encoded><![CDATA[<p>@agaida, nice trick for small filesystems but i can&#8217;t imagine doing that with my 6TB data. i&#8217;d like a defrag tool <img src='http://polishlinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  unless i do it sequentially, folder by folder eg 1TB at a time&#8230; will that work?</p>
<p>ps. i&#8217;m just an enthusiast/hobbyist, so forgive my ignorance <img src='http://polishlinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>interesting reading on the harddrive technologies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: agaida</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-143161</link>
		<dc:creator>agaida</dc:creator>
		<pubDate>Sun, 13 Jun 2010 11:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-143161</guid>
		<description>Yesterday if figured it out to me. Size does matter. It make sense to rebuild the partitioning under Ubuntu. Finaly i got a 10 G &#039;/&#039;, a 10G &#039;/usr&#039;, 100G &#039;/home&#039; and &#039;/tmp&#039; in tempfs. Then &#039;defragment&#039; the system with a few copys like this:
-build a rescue system
-make a 100G partition &#039;dirty&#039;, mount as &#039;/defrag&#039;
- cp -ax /source/* /defrag
- rm -rf /source/*
- cp -ax /defrag/* /source
- rm -rf /target/*

In the end i have no fragmentation left and it speeds up the system a lot. But it will be nice to have a ext4defrag.</description>
		<content:encoded><![CDATA[<p>Yesterday if figured it out to me. Size does matter. It make sense to rebuild the partitioning under Ubuntu. Finaly i got a 10 G &#8216;/&#8217;, a 10G &#8216;/usr&#8217;, 100G &#8216;/home&#8217; and &#8216;/tmp&#8217; in tempfs. Then &#8216;defragment&#8217; the system with a few copys like this:<br />
-build a rescue system<br />
-make a 100G partition &#8216;dirty&#8217;, mount as &#8216;/defrag&#8217;<br />
- cp -ax /source/* /defrag<br />
- rm -rf /source/*<br />
- cp -ax /defrag/* /source<br />
- rm -rf /target/*</p>
<p>In the end i have no fragmentation left and it speeds up the system a lot. But it will be nice to have a ext4defrag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NoName</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-139651</link>
		<dc:creator>NoName</dc:creator>
		<pubDate>Thu, 27 May 2010 23:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-139651</guid>
		<description>David I totally agree with you! When I want to get my shiny new Ubuntu I only use Transmission to save bandwidth on the server side and to be sure I got the error-free file (due to internal hash checking). I noticed that my ext4 performance goes down to 15-20% of nominal one when using - lets call it - non-linear download or video editing. When I make a copy of file after downloading and remove the original the fragmentation rate goes down, but I don&#039;t feel like doing it every time I download something. Ext4 essentially needs e4defrag!</description>
		<content:encoded><![CDATA[<p>David I totally agree with you! When I want to get my shiny new Ubuntu I only use Transmission to save bandwidth on the server side and to be sure I got the error-free file (due to internal hash checking). I noticed that my ext4 performance goes down to 15-20% of nominal one when using &#8211; lets call it &#8211; non-linear download or video editing. When I make a copy of file after downloading and remove the original the fragmentation rate goes down, but I don&#8217;t feel like doing it every time I download something. Ext4 essentially needs e4defrag!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Turner</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-136841</link>
		<dc:creator>David Turner</dc:creator>
		<pubDate>Fri, 16 Apr 2010 15:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-136841</guid>
		<description>I use a certain P2P system, and at some point I noticed that copying files to a flash drive would run at about 2MB/s, whereas copying side-to-side between two flash drives would run at about 20MB/s.  This was a mystery until I tried running filefrag on various large data files.  The number of extents was in the hundreds of thousands.  After some cleaning up, the speeds improved to normal.  So claiming that Linux filesystems aren&#039;t affected by fragmentation is, frankly, bullshit.  Of course this was ext3 - I&#039;ve since upgraded to ext4 and am waiting with interest to see how it handles my usage patterns.</description>
		<content:encoded><![CDATA[<p>I use a certain P2P system, and at some point I noticed that copying files to a flash drive would run at about 2MB/s, whereas copying side-to-side between two flash drives would run at about 20MB/s.  This was a mystery until I tried running filefrag on various large data files.  The number of extents was in the hundreds of thousands.  After some cleaning up, the speeds improved to normal.  So claiming that Linux filesystems aren&#8217;t affected by fragmentation is, frankly, bullshit.  Of course this was ext3 &#8211; I&#8217;ve since upgraded to ext4 and am waiting with interest to see how it handles my usage patterns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-135081</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 10 Mar 2010 13:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-135081</guid>
		<description>you are my hero</description>
		<content:encoded><![CDATA[<p>you are my hero</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnDoe</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133381</link>
		<dc:creator>JohnDoe</dc:creator>
		<pubDate>Wed, 27 Jan 2010 01:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133381</guid>
		<description>You also have to take cell size into account, since its contents can only be written all at ones. Imagine the ssd-cell is 16k and your file system sector size is 4k. Means you have four logical blocks on a single ssd-cell. If you want to write to only one of these sectors, the ssd-controller would have to read the cell into a cache, modify it&#039;s content in-memory and flush it back to the cell afterwards. You would have needed to do en extra read and actually re-write 3 data 3 times the size of your payload.

A Sequential write is of course much simpler: Just write it directly to disk!

Wear-Levelling is actually making these things somewhat more complicated, especially since manufacturers don&#039;t disclose their individual algorithms.</description>
		<content:encoded><![CDATA[<p>You also have to take cell size into account, since its contents can only be written all at ones. Imagine the ssd-cell is 16k and your file system sector size is 4k. Means you have four logical blocks on a single ssd-cell. If you want to write to only one of these sectors, the ssd-controller would have to read the cell into a cache, modify it&#8217;s content in-memory and flush it back to the cell afterwards. You would have needed to do en extra read and actually re-write 3 data 3 times the size of your payload.</p>
<p>A Sequential write is of course much simpler: Just write it directly to disk!</p>
<p>Wear-Levelling is actually making these things somewhat more complicated, especially since manufacturers don&#8217;t disclose their individual algorithms.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133321</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Sat, 23 Jan 2010 20:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133321</guid>
		<description>I just switched from ext3 to ext4 and &#039;benchmarked&#039; a little. Here are the results before the transition:
Boot time reported by Bootchart: 45 seconds
Using VCD gear to export a 700 MB MPEG of a VideoCD image: 51 seconds

Then I did that online conversion with e2fstune:
boot: 43s
VCD: 31s
I was impressed by the write speed for large files but the boot time was unsatisfying. I tried e4defrag, but it did NOT add the &#039;e&#039; attribute as reported by lsattr to all my files. So I made a backup of my data and formated the root partition.

With a fresh ext4 file system and all data copied back with rsync I got this result:
boot: 34s (It was 26% slower before)
VCD: 30s

Now that&#039;s how I like it! Wether there WAS considerable fragmentation on my ext3 fs or some feature of ext4 wasn&#039;t active after the online conversion, I don&#039;t know and don&#039;t want to join the flame war. But if someone asked me I would advise them to reformat.</description>
		<content:encoded><![CDATA[<p>I just switched from ext3 to ext4 and &#8216;benchmarked&#8217; a little. Here are the results before the transition:<br />
Boot time reported by Bootchart: 45 seconds<br />
Using VCD gear to export a 700 MB MPEG of a VideoCD image: 51 seconds</p>
<p>Then I did that online conversion with e2fstune:<br />
boot: 43s<br />
VCD: 31s<br />
I was impressed by the write speed for large files but the boot time was unsatisfying. I tried e4defrag, but it did NOT add the &#8216;e&#8217; attribute as reported by lsattr to all my files. So I made a backup of my data and formated the root partition.</p>
<p>With a fresh ext4 file system and all data copied back with rsync I got this result:<br />
boot: 34s (It was 26% slower before)<br />
VCD: 30s</p>
<p>Now that&#8217;s how I like it! Wether there WAS considerable fragmentation on my ext3 fs or some feature of ext4 wasn&#8217;t active after the online conversion, I don&#8217;t know and don&#8217;t want to join the flame war. But if someone asked me I would advise them to reformat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Atkin UK</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133261</link>
		<dc:creator>Alex Atkin UK</dc:creator>
		<pubDate>Fri, 22 Jan 2010 17:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133261</guid>
		<description>I&#039;m pretty sure when SSD specs claim sequential and random access they are referring to accessing a large file vs accessing a lot of smaller ones.  

The reason there is any difference at all between requests is that accessing a large file is considerably less IO requests than accessing a lot of small ones, and its those requests for read/write operations that seem to clog up SSDs.

Fact is, data is not allocated how you think on an SSD anyway. They are designed to fragment the data intentionally due to the wear levelling process.  The REAL killer for SSDs is low disk space, as the wear levelling demands that every write operation can be allocated to a different part of the drive (the least used).  So if you have very little free space, it struggles to operate correctly.  But that is also why defragmenting an SSD is pointless, you would just be jumbling the data at random around the drive wasting write cycles of the flash chips.</description>
		<content:encoded><![CDATA[<p>I&#8217;m pretty sure when SSD specs claim sequential and random access they are referring to accessing a large file vs accessing a lot of smaller ones.  </p>
<p>The reason there is any difference at all between requests is that accessing a large file is considerably less IO requests than accessing a lot of small ones, and its those requests for read/write operations that seem to clog up SSDs.</p>
<p>Fact is, data is not allocated how you think on an SSD anyway. They are designed to fragment the data intentionally due to the wear levelling process.  The REAL killer for SSDs is low disk space, as the wear levelling demands that every write operation can be allocated to a different part of the drive (the least used).  So if you have very little free space, it struggles to operate correctly.  But that is also why defragmenting an SSD is pointless, you would just be jumbling the data at random around the drive wasting write cycles of the flash chips.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

