<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mFabrik - mobile sites, apps, HTML5 and CMS software development &#187; tune2fs</title>
	<atom:link href="http://blog.mfabrik.com/tag/tune2fs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mfabrik.com</link>
	<description>Freedom delivered.</description>
	<lastBuildDate>Wed, 03 Aug 2011 09:47:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tuning file system performance for Plone development</title>
		<link>http://blog.mfabrik.com/2007/10/24/tuning-file-system-performance-for-plone-development/</link>
		<comments>http://blog.mfabrik.com/2007/10/24/tuning-file-system-performance-for-plone-development/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 01:44:57 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[Plone (old)]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zope]]></category>
		<category><![CDATA[atime]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://blog.redinnovation.com/2007/10/24/tuning-file-system-performance-for-plone-development/</guid>
		<description><![CDATA[I recently read this article about tuning Ext3 file system for better performance. I was doing a fresh Ubuntu 7.10 install on my laptop, so I decided to see how much this would affect to my every day Plone development. On Linux, every time a file is read, its access time attribute is rewritten. This [...]]]></description>
			<content:encoded><![CDATA[<p><gravatar mikko@redinnovation.com> </p>
<p>I recently read <a href="http://http://www.goitexpert.com/entry.cfm?entry=ubuntuguide">this article </a>about tuning Ext3 file system for better performance. I was doing a fresh Ubuntu 7.10 install on my laptop, so I decided to see how much this would affect to my every day Plone development.</p>
<p>On Linux, every time a file is read, its access time attribute is rewritten. This causes a lot of unnecessary writes to file system. Since there are only few rare application needing this feature, turning of the feature can give a nice performance boost on systems dealing with large amount of files.</p>
<p>Plone 3.0 has 10000 files. A lot of them are read during the start-up. Maybe I am getting somewhere here&#8230;</p>
<p>When you are doing Plone development, you need to restart Plone often. I used <a href="http://http://www.pixelbeat.org/scripts/stopwatch/">this highly scientific method</a> to measure Plone start-up time from issuing <strong>zopectl fg</strong> to getting the front page load completed in Firefox. I warmed the file system cache beforehand by doing two dry runs.</p>
<p>I also did some simple front page bombing with ab tool.</p>
<p><strong>System setup</strong></p>
<ul>
<li>HP nx9420 laptop (5400 RPM hard disk)</li>
<li>Plone 3.0.2/Zope 2.10.4</li>
<li>Intel Core 2 Duo, 2 Ghz</li>
<li>Ubuntu 7.10</li>
<li>Applied following Ext3 options: noatime, data=writeback</li>
</ul>
<p><strong>Out-of-the-box filesystem</strong></p>
<p>Lap 1: 23s</p>
<p>Lap 2: 22s</p>
<p>Lap 3: 22s</p>
<p>ab stats:</p>
<p>Concurrency Level:      10<br />
Time taken for tests:   11.805239 seconds<br />
Complete requests:      100<br />
Failed requests:        0<br />
Write errors:           0<br />
Total transferred:      2058700 bytes<br />
HTML transferred:       2030600 bytes<br />
Requests per second:    8.47 [#/sec] (mean)</p>
<p><strong>Tuned file system </strong></p>
<p>Lap 1: 21s</p>
<p>Lap 2: 22s</p>
<p>Lap 3: Didn&#8217;t bother to do it&#8230;</p>
<p>ab stats:</p>
<p>Concurrency Level:      10<br />
Time taken for tests:   12.102054 seconds<br />
Complete requests:      100<br />
Failed requests:        0<br />
Write errors:           0<br />
Total transferred:      2058700 bytes<br />
HTML transferred:       2030600 bytes<br />
Requests per second:    8.26 [#/sec] (mean)</p>
<p><strong>Conclusion </strong></p>
<p>&#8220;Hooray.&#8221;</p>
<p>Though Plone/Zope crawls through of thousands of files during the start up  (and thus touches their access times), the slow start-up process seem to be CPU bound. Magic file system tricks won&#8217;t make your everyday Plone development more effective.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2007/10/24/tuning-file-system-performance-for-plone-development/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

