<?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"
	>
<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>
	<pubDate>Thu, 18 Mar 2010 18:17:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<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'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'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 'benchmarked' 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 'e' 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's how I like it! Wether there WAS considerable fragmentation on my ext3 fs or some feature of ext4 wasn't active after the online conversion, I don't know and don'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'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>
	<item>
		<title>By: A Real Professional</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133071</link>
		<dc:creator>A Real Professional</dc:creator>
		<pubDate>Sun, 17 Jan 2010 03:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-133071</guid>
		<description>So how many programs have YOU written "mr artsie administrator" scorp123/crap123 ? Let me guess, you never gotten past LOGO and MS-BASIC. You have no engineering background, and the according to your previous posts, the best you've been able to achieve in your career is to be a server adminstrator for TEN YEARS! In the high-tech if anyone stays in the same job for more than 5 years let alone 10 years, they are usually the most incompetent career-limited dead-enders i.e. career-limited for life. So I guess unqualified nonsense must be your forte.</description>
		<content:encoded><![CDATA[<p>So how many programs have YOU written &#8220;mr artsie administrator&#8221; scorp123/crap123 ? Let me guess, you never gotten past LOGO and MS-BASIC. You have no engineering background, and the according to your previous posts, the best you&#8217;ve been able to achieve in your career is to be a server adminstrator for TEN YEARS! In the high-tech if anyone stays in the same job for more than 5 years let alone 10 years, they are usually the most incompetent career-limited dead-enders i.e. career-limited for life. So I guess unqualified nonsense must be your forte.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Schwartz</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-129375</link>
		<dc:creator>David Schwartz</dc:creator>
		<pubDate>Sat, 14 Nov 2009 22:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-129375</guid>
		<description>Anyone who things SSDs don't need to be defragmented should take a look at the performance specifications of their favorite SSD. Specifically, they should compare the random write speed to the sequential write speed.

For example, take the Intel X25-E. Sequential writes are almost 200MB/s. Random writes are more like 35. For 128GB Indilinx MLC drives, the sequential write speed is around 130MB/s, but the random write speed is around 10MB/s.

If free space on an SSD is heavily fragmented, then writing new files to the SSD will be at close to the random write speed. If an SSD is not fragmented, then writing new files to the SSD will be at close to the sequential write speed.

Even read speeds vary somewhat. Sequential read speeds range from around 120 to 280MB/s. Random read speeds range from around 25 to 60MB/s. So even filled space benefits from defragmentation.

That said, the algorithms used to defragment data stored on SSDs should be very different from those used to defragment data stored on rotating media.</description>
		<content:encoded><![CDATA[<p>Anyone who things SSDs don&#8217;t need to be defragmented should take a look at the performance specifications of their favorite SSD. Specifically, they should compare the random write speed to the sequential write speed.</p>
<p>For example, take the Intel X25-E. Sequential writes are almost 200MB/s. Random writes are more like 35. For 128GB Indilinx MLC drives, the sequential write speed is around 130MB/s, but the random write speed is around 10MB/s.</p>
<p>If free space on an SSD is heavily fragmented, then writing new files to the SSD will be at close to the random write speed. If an SSD is not fragmented, then writing new files to the SSD will be at close to the sequential write speed.</p>
<p>Even read speeds vary somewhat. Sequential read speeds range from around 120 to 280MB/s. Random read speeds range from around 25 to 60MB/s. So even filled space benefits from defragmentation.</p>
<p>That said, the algorithms used to defragment data stored on SSDs should be very different from those used to defragment data stored on rotating media.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-129281</link>
		<dc:creator>Luc</dc:creator>
		<pubDate>Thu, 29 Oct 2009 13:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-129281</guid>
		<description>@kiloalphaindia

/quote 

for SSD fragmentation is not an issue since the slowdown caused by fragmentation is a result of the seeks (hard disk head movement). An SSD does not do any seeks (no head ).

/end-quote



YES!  finally someone who understands how a disk drive works! And why fragmentation is indeed an issue in ANY operating system!

Just as an extra note: it is not only the seek time for the heads, but also the rotational latency to consider as well... (for those who do not understand: the time it takes for a requested sector to appear under the read-heads, once the heads are on the right track)

This is not so much an issue if the read is sequential (i.e. a single contiguous stream) but as soon as jumps to various tracks (=fragmentation) are required this definitely becomes an additional factor! 

The total seek time (access time) for a requested sector is:
   software overhead to issue commands (very minute)
 + track seek time (considerable)  (=accellerate + travel + decellerate + stabilize time)
 + rotational latency (=wait for sector to pass-by) (considerable, depends on drive rotation speed)
 + cache handling time on the drive (very small)
 + transport data time (very small).

(hence why SSD does not have the problem)

 I can tell you from 30 years experience: optimizing definitely matters. Especially on high-load server systems. If you just read a text-file once in a while, then fragmentation wont matter indeed...

And I am not affraid to use the word "defrag"... Anyone who starts a flame war over this simply does not understand (or does not WANT to, even worse) how a hard disk works....

gr</description>
		<content:encoded><![CDATA[<p>@kiloalphaindia</p>
<p>/quote </p>
<p>for SSD fragmentation is not an issue since the slowdown caused by fragmentation is a result of the seeks (hard disk head movement). An SSD does not do any seeks (no head ).</p>
<p>/end-quote</p>
<p>YES!  finally someone who understands how a disk drive works! And why fragmentation is indeed an issue in ANY operating system!</p>
<p>Just as an extra note: it is not only the seek time for the heads, but also the rotational latency to consider as well&#8230; (for those who do not understand: the time it takes for a requested sector to appear under the read-heads, once the heads are on the right track)</p>
<p>This is not so much an issue if the read is sequential (i.e. a single contiguous stream) but as soon as jumps to various tracks (=fragmentation) are required this definitely becomes an additional factor! </p>
<p>The total seek time (access time) for a requested sector is:<br />
   software overhead to issue commands (very minute)<br />
 + track seek time (considerable)  (=accellerate + travel + decellerate + stabilize time)<br />
 + rotational latency (=wait for sector to pass-by) (considerable, depends on drive rotation speed)<br />
 + cache handling time on the drive (very small)<br />
 + transport data time (very small).</p>
<p>(hence why SSD does not have the problem)</p>
<p> I can tell you from 30 years experience: optimizing definitely matters. Especially on high-load server systems. If you just read a text-file once in a while, then fragmentation wont matter indeed&#8230;</p>
<p>And I am not affraid to use the word &#8220;defrag&#8221;&#8230; Anyone who starts a flame war over this simply does not understand (or does not WANT to, even worse) how a hard disk works&#8230;.</p>
<p>gr</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiloalphaindia</title>
		<link>http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-129198</link>
		<dc:creator>kiloalphaindia</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://polishlinux.org/apps/cli/ext4-defragmentation-with-e4defrag/#comment-129198</guid>
		<description>for NTFS you might want to use ntfs-3g - it is a fuse (filesystem in userspace) and thus can be used w/o any change to your kernel
- assuming your kernel supports fuse. 

for SSD fragmentation is not an issue since the slowdown caused by fragmentation is a result of the seeks (hard disk head movement). An SSD does not do any seeks (no head :) ).</description>
		<content:encoded><![CDATA[<p>for NTFS you might want to use ntfs-3g - it is a fuse (filesystem in userspace) and thus can be used w/o any change to your kernel<br />
- assuming your kernel supports fuse. </p>
<p>for SSD fragmentation is not an issue since the slowdown caused by fragmentation is a result of the seeks (hard disk head movement). An SSD does not do any seeks (no head <img src='http://polishlinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
