<?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>Rico&#039;s Blog</title>
	<atom:link href="http://blog.hgomez.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hgomez.net</link>
	<description>Le ptit blog de Rico</description>
	<lastBuildDate>Sun, 25 Mar 2012 06:59:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using Apache Tomcat Connector (mod_jk) on OSX</title>
		<link>http://blog.hgomez.net/2012/03/21/using-apache-tomcat-connector-mod_jk-on-osx/</link>
		<comments>http://blog.hgomez.net/2012/03/21/using-apache-tomcat-connector-mod_jk-on-osx/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 08:48:34 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[jk]]></category>
		<category><![CDATA[OS/X]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=1017</guid>
		<description><![CDATA[You&#8217;ll need first mod_jk installed, follow Building Guide. Create /etc/apache2/other/jk.conf : Create /etc/apache2/other/workers.properties I choose to use VirtualName Hosting and so defined one into /etc/apache2/extra/httpd-vhosts.conf :]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F03%2F21%2Fusing-apache-tomcat-connector-mod_jk-on-osx%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F03%2F21%2Fusing-apache-tomcat-connector-mod_jk-on-osx%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>You&#8217;ll need first mod_jk installed, follow <a href="http://blog.hgomez.net/2012/03/21/building-universal-apache-tomcat-connector-mod_jk-on-osx/">Building Guide</a>.</p>
<p>Create /etc/apache2/other/jk.conf :</p>
<pre class="brush: bash; title: ; notranslate">
# Load JK Module
LoadModule jk_module     libexec/apache2/mod_jk.so
# JK workers.properties
JkWorkersFile /etc/apache2/other/workers.properties
# JK shared memory location
JkShmFile     /var/log/apache2/mod_jk.shm
# JK logs
JkLogFile     /var/log/apache2/mod_jk.log
# JK log level [debug/error/info]
JkLogLevel    info
# JK timestamp log format
JkLogStampFormat &quot;[%a %b %d %H:%M:%S %Y] &quot;
</pre>
<p>Create /etc/apache2/other/workers.properties</p>
<pre class="brush: bash; title: ; notranslate">
worker.list=jenkins,watch,manage

# Set properties for worker jenkins (ajp13)
worker.jenkins.type=ajp13
worker.jenkins.host=localhost
worker.jenkins.port=8009

# status workers
worker.watch.type=status
worker.watch.read_only=true
worker.watch.mount=/user/status/jk
worker.manage.type=status
worker.manage.mount=/admin/status/jk
</pre>
<p>I choose to use VirtualName Hosting and so defined one into /etc/apache2/extra/httpd-vhosts.conf :</p>
<pre class="brush: bash; title: ; notranslate">
NameVirtualHost *:80

&lt;VirtualHost *:80&gt;

    ServerName  mbpbuilder.hgomez.net
    ServerAlias mbpbuilder
    ServerAdmin webmaster@mbpbuilder.hgomez.net

    ErrorLog    &quot;/var/log/apache2/mbpbuilder.org-error_log&quot;
    CustomLog   &quot;/var/log/apache2/mbpbuilder-access_log&quot; common

    JkMount  /* jenkins

&lt;/VirtualHost&gt;
</pre>
<div class="shr-publisher-1017"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2012/03/21/using-apache-tomcat-connector-mod_jk-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Universal Apache Tomcat Connector (mod_jk) on OSX</title>
		<link>http://blog.hgomez.net/2012/03/21/building-universal-apache-tomcat-connector-mod_jk-on-osx/</link>
		<comments>http://blog.hgomez.net/2012/03/21/building-universal-apache-tomcat-connector-mod_jk-on-osx/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 08:31:18 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[jk]]></category>
		<category><![CDATA[OS/X]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=1006</guid>
		<description><![CDATA[Build Universal Apache Tomcat Connector (mod_jk) for OSX follow tricks used for Apache Tomcat Native Library. Here is a small script to do it : Installation is pretty simple : You could then restart your Apache HTTPd server to get new mod_jk used :]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F03%2F21%2Fbuilding-universal-apache-tomcat-connector-mod_jk-on-osx%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F03%2F21%2Fbuilding-universal-apache-tomcat-connector-mod_jk-on-osx%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Build Universal Apache Tomcat Connector (mod_jk) for OSX follow tricks used for Apache Tomcat Native Library.</p>
<pre class="brush: bash; title: ; notranslate">
CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386-arch x86_64'
</pre>
<p>Here is a small script to do it :</p>
<pre class="brush: bash; title: ; notranslate">
curl http://mir2.ovh.net/ftp.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.33-src.tar.gz -o tomcat-connectors-1.2.33-src.tar.gz
tar xvzf tomcat-connectors-1.2.33-src.tar.gz
cd tomcat-connectors-1.2.33-src/native

./configure --with-apxs=/usr/sbin/apxs CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386-arch x86_64'
make clean
make
</pre>
<p>Installation is pretty simple : </p>
<pre class="brush: bash; title: ; notranslate">
sudo cp apache-2.0/.libs/mod_jk.so /usr/libexec/apache2/
</pre>
<p>You could then restart your Apache HTTPd server to get new mod_jk used :</p>
<pre class="brush: bash; title: ; notranslate">
sudo /usr/sbin/apachectl restart
</pre>
<div class="shr-publisher-1006"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2012/03/21/building-universal-apache-tomcat-connector-mod_jk-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSD or not SSD ?</title>
		<link>http://blog.hgomez.net/2012/03/18/ssd-or-not-ssd/</link>
		<comments>http://blog.hgomez.net/2012/03/18/ssd-or-not-ssd/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 09:58:01 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[OS/X]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=983</guid>
		<description><![CDATA[My MacBookPro is quite old now : MacBook Pro 5.1 (Late 2008) Core2Duo 2.66Ghz Under Lion, MBP appears to be sometime laggy even if I already updated it : Replaced original 4Gb RAM to 8Gb DDR3 (GSkill PC8500 SQ (1066 MHz), 7-7-7-20) Replaced original Hitachi 320GB/5400 RPM by a 500Gb WesternDigital Black Black 7200RPM (WD5000BEKT-75KA9T0) [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F03%2F18%2Fssd-or-not-ssd%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F03%2F18%2Fssd-or-not-ssd%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>My MacBookPro is quite old now :</p>
<ul>
<li>MacBook Pro 5.1 (Late 2008)</li>
<li>Core2Duo 2.66Ghz</li>
</ul>
<div>Under Lion, MBP appears to be sometime laggy even if I already updated it :</div>
<ul>
<li>Replaced original 4Gb RAM to 8Gb DDR3 (GSkill PC8500 SQ (1066 MHz), 7-7-7-20)</li>
<li>Replaced original Hitachi 320GB/5400 RPM by a 500Gb WesternDigital Black Black 7200RPM (WD5000BEKT-75KA9T0)</li>
</ul>
<p>I run <a href="http://www.primatelabs.ca/geekbench/">GeekBench 2.2.7</a> and give me a bench result of <strong>3752</strong> :</p>
<pre class="brush: bash; title: ; notranslate">
Benchmark Summary
  Integer Score              3123 |||||||||
  Floating Point Score       5493 ||||||||||||||||
  Memory Score               2629 |||||||
  Stream Score               2110 ||||||

  Geekbench Score            3752 |||||||||||

System Information
  Operating System      Mac OS X 10.7.3 (Build 11D50)
  Model                 MacBook Pro (Late 2008)
  Motherboard           Apple Inc. Mac-F42D86A9 Proto
  Processor             Intel Core 2 Duo T9550 @ 2.66 GHz
                        1 Processor, 2 Cores, 2 Threads
  Processor ID          GenuineIntel Family 6 Model 23 Stepping 10
  L1 Instruction Cache  32.0 KB x 2
  L1 Data Cache         32.0 KB x 2
  L2 Cache              6.00 MB
  L3 Cache              0.00 B
  Memory                8.00 GB 1067 MHz DDR3
  BIOS                  Apple Inc.    MBP51.88Z.007E.B06.1202061253
</pre>
<div>
<div>IOs seems to be the limiting factor, especially when I&#8217;m using VirtualBox, I feel a slow IO performances.</div>
<div></div>
<h2>Time to bench IOs</h2>
<div>There is no tools like <strong><strong>HD Tune </strong></strong>on OSX, so I wrote a very simple shell script to measure raw IO performances.</div>
<div>
<pre class="brush: bash; title: ; notranslate">
#!/bin/sh
COUNT=2048

echo &quot;testing pseudo-IO performances - 1st Pass&quot;
dd if=/dev/zero of=/dev/null bs=1m count=$COUNT

echo &quot;testing IO write performances - 1st Pass&quot;
dd if=/dev/zero of=PERFTEST bs=1m count=$COUNT

echo &quot;testing IO read performances - 1st Pass&quot;
dd if=PERFTEST of=/dev/null bs=1m count=$COUNT

echo &quot;testing IO read performances - 2nd Pass&quot;
dd if=PERFTEST of=/dev/null bs=1m count=$COUNT

echo &quot;testing IO write performances - 2nd Pass&quot;
dd if=/dev/zero of=PERFTEST bs=1m count=$COUNT
</pre>
</div>
<div>Results :</div>
<div></div>
<div></div>
<pre class="brush: bash; title: ; notranslate">
testing pseudo-IO performances - 1st Pass
2048+0 records in
2048+0 records out
2147483648 bytes transferred in 0.225590 secs (9519410157 bytes/sec)
testing IO write performances - 1st Pass
2048+0 records in
2048+0 records out
2147483648 bytes transferred in 29.882202 secs (71864973 bytes/sec)
testing IO read performances - 1st Pass
2048+0 records in
2048+0 records out
2147483648 bytes transferred in 0.677308 secs (3170615711 bytes/sec)
testing IO read performances - 2nd Pass
2048+0 records in
2048+0 records out
2147483648 bytes transferred in 0.675835 secs (3177527036 bytes/sec)
testing IO write performances - 2nd Pass
2048+0 records in
2048+0 records out
2147483648 bytes transferred in 33.203725 secs (64675986 bytes/sec)
</pre>
<div>Note, I run this performance tests from a directory excluded from Spotlight indexing !</div>
<div></div>
<p><a href="http://blog.hgomez.net/wp-content/uploads/2012/03/SpotLight-Exclude.png"><img src="http://blog.hgomez.net/wp-content/uploads/2012/03/SpotLight-Exclude.png" alt="" title="SpotLight-Exclude" width="646" height="232" class="alignnone size-full wp-image-1001" /></a></p>
<div>
<ul>
<li>Pseudo IO performance is justing virtual IO (/dev/zero and /dev/null), so it provide max raw IO performance : <strong>9078 MB/s</strong></li>
<li>Write IO performance is between <strong>61</strong> and <strong>68 MB/s</strong></li>
<li>Read IO performance is very high with <strong>3023 MB/s</strong></li>
</ul>
<div>I replayed script raising COUNT from <strong>2048</strong> to <strong>20480</strong> to reduce OSX ram buffer impact in Read IO performance but still get about <strong>2000 MB/s</strong></div>
<h3>iStat Menu disk activity &#8211; Write Performance</h3>
<p><a href="http://blog.hgomez.net/wp-content/uploads/2012/03/WD-Perfs.png"><img src="http://blog.hgomez.net/wp-content/uploads/2012/03/WD-Perfs.png" alt="" title="WD-Perfs" width="198" height="180" class="alignnone size-full wp-image-994" /></a></p>
<h2>Conclusions</h2>
<ul>
<li>WD Black Edition perform pretty well on raw sequential Read Operations</li>
<li>With its average <strong>63 MB/s</strong> raw sequential Write Operations, WD is about 7 time slower than faster SSD like <strong>OCZ Vertex 3</strong></li>
</ul>
</div>
<div>Is it time to update MBP to SSD ? Probably and my candidates are :</div>
<div>
<ul>
<li>Crucial M4 128GB. This SSD is reported very stable and reliable. Bonus, its firmware could be updated from Mac.</li>
<li>OCZ Vertex 3 120GB. This SSD is top performer in benchmarks but Googling it reports many reliability problems.</li>
</ul>
</div>
</div>
<div>I&#8217;d like to get feedback from you, performing same performance testing on your Mac hardware (MBP/ SSD configurations very welcomed).</div>
<div></div>
<div class="shr-publisher-983"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2012/03/18/ssd-or-not-ssd/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>DevOps logo 2nd try</title>
		<link>http://blog.hgomez.net/2012/02/20/devops-logo-2nd-try/</link>
		<comments>http://blog.hgomez.net/2012/02/20/devops-logo-2nd-try/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 14:34:55 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[DevOps]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=969</guid>
		<description><![CDATA[Here is the second try of logos for DevOps, still provided by Sabrina (@saabpii). She carefully tracked comments here and on Twitter : Please vote for your preferred one.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F02%2F20%2Fdevops-logo-2nd-try%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F02%2F20%2Fdevops-logo-2nd-try%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Here is the second try of logos for DevOps, still provided by Sabrina (@saabpii).<br />
She carefully tracked comments here and on Twitter :</p>
<p><a href="http://blog.hgomez.net/wp-content/uploads/2012/02/logo_devops_v2.jpg"><img src="http://blog.hgomez.net/wp-content/uploads/2012/02/logo_devops_v2.jpg" alt="" title="logo_devops_v2" width="999" height="586" class="alignnone size-full wp-image-970" /></a></p>
<p>Please vote for your preferred one.</p>
<div class="shr-publisher-969"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2012/02/20/devops-logo-2nd-try/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DevOps logos</title>
		<link>http://blog.hgomez.net/2012/02/08/devops-logos/</link>
		<comments>http://blog.hgomez.net/2012/02/08/devops-logos/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 08:08:27 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[DevOps]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=963</guid>
		<description><![CDATA[I asked some times ago Sabrina Perrin (@saabpii) a great graphic designer I worked with for years, if she could try to works on some DevOps logo. As expected she has been very motivated and inspired. Here are the results : Now I need you to comments and votes for them. All of this artwork [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F02%2F08%2Fdevops-logos%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F02%2F08%2Fdevops-logos%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I asked some times ago Sabrina Perrin (@saabpii) a great graphic designer I worked with for years, if she could try to works on some DevOps logo. </p>
<p>As expected she has been very motivated and inspired.</p>
<p>Here are the results :</p>
<div id="attachment_964" class="wp-caption alignnone" style="width: 1191px"><a href="http://blog.hgomez.net/wp-content/uploads/2012/02/logo_devops2.jpg"><img src="http://blog.hgomez.net/wp-content/uploads/2012/02/logo_devops2.jpg" alt="" title="logos_devops" width="1181" height="600" class="size-full wp-image-964" /></a><p class="wp-caption-text">some DevOps Logo</p></div>
<p>Now I need you to comments and votes for them.</p>
<p>All of this artwork is free to use, just mention Sabrina somewhere on your sites/blogs/presentations.</p>
<p>Thanks again Sabrina !</p>
<div class="shr-publisher-963"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2012/02/08/devops-logos/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Uninstalling MacFuse on Lion</title>
		<link>http://blog.hgomez.net/2012/01/28/uninstalling-macfuse-on-lion/</link>
		<comments>http://blog.hgomez.net/2012/01/28/uninstalling-macfuse-on-lion/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:13:42 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[OS/X]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=958</guid>
		<description><![CDATA[If you installed MacFuse on Lion (10.7) and tried to uninstall you may encountered the following error : Uninstaller didn&#8217;t check for Lion (uname -r reporting 11.x). So fix is easy, just edit uninstaller script /Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh and add 11*) in case next to 10*)]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F01%2F28%2Funinstalling-macfuse-on-lion%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2012%2F01%2F28%2Funinstalling-macfuse-on-lion%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you installed MacFuse on Lion (10.7) and tried to uninstall you may encountered the following error :</p>
<pre class="brush: bash; title: ; notranslate">
sudo /Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh
MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package.
</pre>
<p>Uninstaller didn&#8217;t check for Lion (uname -r reporting 11.x).<br />
So fix is easy, just edit uninstaller script <strong>/Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh</strong> and add 11*) in case next to 10*)</p>
<pre class="brush: bash; title: ; notranslate">
...

OS_RELEASE=`/usr/bin/uname -r`
case &quot;$OS_RELEASE&quot; in
  8*)
    log &quot;Incorrect uninstall. Use the Tiger version please.&quot;
    exit 1
    ;;
  9*)
    PACKAGE_RECEIPT=&quot;$INSTALL_VOLUME/Library/Receipts/MacFUSE Core.pkg&quot;
    OUTER_PACKAGE_RECEIPT=&quot;$INSTALL_VOLUME/Library/Receipts/MacFUSE.pkg&quot;
    BOMFILE=&quot;$PACKAGE_RECEIPT/Contents/Archive.bom&quot;
    ;;
  10*|11*)
     PACKAGE_RECEIPT=&quot;&quot;
     BOMFILE=&quot;$INSTALL_VOLUME/var/db/receipts/com.google.macfuse.core.bom&quot;
     ;;
esac
</pre>
<div class="shr-publisher-958"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2012/01/28/uninstalling-macfuse-on-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch rpm signing</title>
		<link>http://blog.hgomez.net/2011/12/28/batch-rpm-signing/</link>
		<comments>http://blog.hgomez.net/2011/12/28/batch-rpm-signing/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 17:05:42 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=939</guid>
		<description><![CDATA[I&#8217;m using Jenkins to build RPMs with free-style scripts. Decent RPM packager should sign his RPMs so they could be checked by yum/zypper tools. Here you could be in trouble since rpm signing require a password to be passed in command line : It&#8217;s quite problematic for a RPM build factory. After digging around Internet, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F12%2F28%2Fbatch-rpm-signing%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F12%2F28%2Fbatch-rpm-signing%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;m using <a href="http://jenkins-ci.org/">Jenkins</a> to build RPMs with free-style scripts.<br />
Decent RPM packager should sign his RPMs so they could be checked by yum/zypper tools.</p>
<p>Here you could be in trouble since rpm signing require a password to be passed in command line :</p>
<p><pre class="brush: bash; title: ; notranslate">
rpm --addsign -D &quot;_signature gpg&quot; -D &quot;_gpg_name packagers@myforge.org&quot; RPMS/noarch/myjenkins-1.0.0-1.noarch.rpm&lt;br /&gt;
Enter pass phrase:&lt;br /&gt;
</pre>
</p>
<p>It&#8217;s quite problematic for a RPM build factory.</p>
<p>After digging around Internet, best solution appears to be using <a href="http://expect.sourceforge.net/">expect</a> and I developped a simple script for such purpose with following constraints :</p>
<ul>
<li>packager gpg name should be parametized (to avoid injecting it in ~/.rpmmacros)</li>
<li>gpg passphrase should be provided to command line (could be read from a secret file)</li>
</ul>
<pre class="brush: bash; title: ; notranslate">
#!/usr/bin/expect -f
#
# rpmsign-batch.expect : expect powered rpm signing command
#

proc usage {} {
        send_user &quot;Usage: rpmsign-batch.expect gpgname passphrase rpmfile\n\n&quot;
        exit
}

if {[llength $argv]!=3} usage

set gpgname [lrange $argv 0 0]
set passphrase [lrange $argv 1 1]
set rpmfile [lrange $argv 2 2]

send_user &quot;passphrase=$passphrase gpgname=$gpgname\n&quot;

spawn rpm --addsign -D &quot;_signature gpg&quot; -D &quot;_gpg_name $gpgname&quot; $rpmfile
expect -exact &quot;Enter pass phrase: &quot;
send -- &quot;$passphrase\r&quot;
expect eof
</pre>
<p>You could then use it to sign rpms from your freestyle jobs like :</p>
<pre class="brush: bash; title: ; notranslate">
# Password provided in clear in job (weird)
rpmsign-batch.expect packagers@myforge.org mypassphrase RPMS/noarch/myjenkins-1.0.0-1.noarch.rpm

# Password grabbed from a secret file (better)
PASSPHRASE=`cat /my/secret-passphrase-file`
rpmsign-batch.expect packagers@myforge.org $PASSPHRASE RPMS/noarch/myjenkins-1.0.0-1.noarch.rpm
</pre>
<div class="shr-publisher-939"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2011/12/28/batch-rpm-signing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Iozone and gnuplot 4.x</title>
		<link>http://blog.hgomez.net/2011/11/03/iozone-and-gnuplot-4-x/</link>
		<comments>http://blog.hgomez.net/2011/11/03/iozone-and-gnuplot-4-x/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 19:16:40 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[Performances]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=906</guid>
		<description><![CDATA[Iozone is a great tool to mesure performance of filesystem. You could find 10 examples here. In it latest version, 3.97, it came with reporting tools, report.pl and gengnuplot.sh, who use gnuplot to render images. Due to changes in GnuPlot 4.x, report.pl and gnu3d.dem need to be updated to works. Also you may get only [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F11%2F03%2Fiozone-and-gnuplot-4-x%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F11%2F03%2Fiozone-and-gnuplot-4-x%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.iozone.org/">Iozone </a> is a great tool to mesure performance of filesystem.<br />
You could find 10 examples <a href="http://www.thegeekstuff.com/2011/05/iozone-examples/">here</a>.</p>
<p>In it latest version, 3.97, it came with reporting tools, <strong>report.pl</strong> and <strong>gengnuplot.sh</strong>, who use gnuplot to render images.</p>
<p><a href="http://blog.hgomez.net/wp-content/uploads/2011/11/2d-recrewrite.png"><img src="http://blog.hgomez.net/wp-content/uploads/2011/11/2d-recrewrite.png" alt="" title="2d-recrewrite" width="450" height="480" class="alignnone size-full wp-image-915" /></a></p>
<p><a href="http://blog.hgomez.net/wp-content/uploads/2011/11/recrewrite.png"><img src="http://blog.hgomez.net/wp-content/uploads/2011/11/recrewrite.png" alt="" title="recrewrite" width="900" height="480" class="alignnone size-full wp-image-912" /></a></p>
<p>Due to changes in GnuPlot 4.x, <strong>report.pl</strong> and <strong>gnu3d.dem</strong> need to be updated to works.<br />
Also you may get only <strong>8 metrics</strong> in reports instead of <strong>15</strong> expected in latest release of <strong>report.pl</strong></p>
<h2>gnu3d.dem</h2>
<pre class="brush: perl; title: ; notranslate">
#
# $Id: 3D plot of performance
#
# Processes files that were created by Generate_Graphs
# and displays the results. Also, saves a postscript copy.
#
# Don Capps

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set parametric
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'write/iozone_gen_out.gnuplot' title &quot;Write performance&quot;
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;write/write.ps&quot;
splot 'write/iozone_gen_out.gnuplot' title &quot;Write performance&quot;

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'rewrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;ReWrite performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;rewrite/rewrite.ps&quot;
splot 'rewrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;ReWrite performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'read/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Read performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;read/read.ps&quot;
splot 'read/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Read performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'reread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Reread performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;reread/reread.ps&quot;
splot 'reread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Reread performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'randread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Random read performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;randread/randread.ps&quot;
splot 'randread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Random read performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'randwrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Random write performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;randwrite/randwrite.ps&quot;
splot 'randwrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Random write performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'bkwdread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Read Backwards performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;bkwdread/bkwdread.ps&quot;
splot 'bkwdread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Read Backwards performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'recrewrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Record rewrite performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;recrewrite/recrewrite.ps&quot;
splot 'recrewrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Record rewrite performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'strideread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Stride read performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;strideread/strideread.ps&quot;
splot 'strideread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Stride read performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'fwrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Fwrite performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;fwrite/fwrite.ps&quot;
splot 'fwrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Fwrite performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'frewrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Frewrite performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;frewrite/frewrite.ps&quot;
splot 'frewrite/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Frewrite performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'fread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Fread performance&quot; with lines
pause -1 &quot;Hit return to continue&quot;
set terminal postscript color
set output &quot;fread/fread.ps&quot;
splot 'fread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Fread performance&quot; with lines

set terminal x11
set title &quot;Iozone performance&quot;
set grid lt 2 lw 1
set surface
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in 2^n KBytes&quot;
set ylabel &quot;Record size in 2^n Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
splot 'freread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Freread performance&quot; with lines
pause -1 &quot;Hit return to exit&quot;
set terminal postscript color
set output &quot;freread/freread.ps&quot;
splot 'freread/iozone_gen_out.gnuplot' using 1:2:3 title &quot;Freread performance&quot; with lines
</pre>
<h2>report.pl</h2>
<pre class="brush: perl; title: ; notranslate">
#!/usr/bin/perl
#
# arguments: one of more report files
#
# Christian Mautner &lt;christian * mautner . ca&gt;, 2005-10-31
#
# This script is based loosely on the Generate_Graph set
# of scripts that come with iozone, but is a complete re-write
#
# The main reason to write this was the need to compare the behaviour of
# two or more different setups, for tuning filesystems or
# comparing different pieces of hardware.
#
# This script is in the public domain, too short and too trivial
# to deserve a copyright.
#
# Simply run iozone like, for example, ./iozone -a -g 4G &gt; config1.out (if your machine has 4GB)
# and then run perl report.pl config1.out
# or get another report from another box into config2.out and run
# perl report.pl config1.out config2.out
# the look in the report_* directory for .png
#
# If you don't like png or the graphic size, search for &quot;set terminal&quot; in this file and put whatever gnuplot
# terminal you want. Note I've also noticed that gnuplot switched the set terminal png syntax
# a while back, you might need &quot;set terminal png small size 900,700&quot;
#

@Reports=@ARGV;

die &quot;usage: $0 &lt;iozone.out&gt; [&lt;iozone2.out&gt;...]\n&quot; if not @Reports or grep (m|^-|, @Reports);

die &quot;report files must be in current directory&quot; if grep (m|/|, @Reports);

%columns=(
         'write'     =&gt;3,
         'read'      =&gt;5,
         'rewrite'   =&gt;4,
         'reread'    =&gt;6,
         'randread'  =&gt;7,
         'randwrite' =&gt;8,
         'bkwdread'  =&gt;9,
         'recrewrite'=&gt;10,
         'strideread'=&gt;11,
         'fwrite'    =&gt;12,
         'frewrite'  =&gt;13,
         'fread'     =&gt;14,
         'freread'   =&gt;15,
         );

#
# create output directory. the name is the concatenation
# of all report file names (minus the file extension, plus
# prefix report_)
#
$outdir=&quot;report_&quot;.join(&quot;_&quot;,map{/([^\.]+)(\..*)?/ &amp;&amp; $1}(@Reports));

print STDERR &quot;Output directory: $outdir &quot;;

if ( -d $outdir )
{
    print STDERR &quot;(removing old directory) &quot;;
    system &quot;rm -rf $outdir&quot;;
}

mkdir $outdir or die &quot;cannot make directory $outdir&quot;;

print STDERR &quot;done.\nPreparing data files...&quot;;

foreach $report (@Reports)
{
    open(I, $report) or die &quot;cannot open $report for reading&quot;;
    $report=~/^([^\.]+)/;
    $datafile=&quot;$1.dat&quot;;
    push @datafiles, $datafile;
    open(O, &quot;&gt;$outdir/$datafile&quot;) or die &quot;cannot open $outdir/$datafile for writing&quot;;
    open(O2, &quot;&gt;$outdir/2d-$datafile&quot;) or die &quot;cannot open $outdir/$datafile for writing&quot;;
    while(&lt;I&gt;)
    {
        next unless ( /^[\s\d]+$/ );
        @split = split();
        # We may have only 7 metrics (no block entries). Replaced == 15 with &gt;=8
        next unless ( @split &gt;= 8 );
        print O;
        print O2 if $split[1] == 16384 or $split[0] == $split[1];
    }
    close I, O, O2;
}

print STDERR &quot;done.\nGenerating graphs:&quot;;

foreach $column (keys %columns)
{
    print STDERR &quot; $column&quot;;

    open(G, &quot;&gt;$outdir/$column.do&quot;) or die &quot;cannot open $outdir/$column.do for writing&quot;;
    print G qq{
set title &quot;Iozone performance: $column&quot;
set grid lt 2 lw 1
set surface
set parametric
set xtics
set ytics
set logscale x 2
set logscale y 2
set autoscale z
#set xrange [2.**5:2.**24]
set xlabel &quot;File size in KBytes&quot;
set ylabel &quot;Record size in Kbytes&quot;
set zlabel &quot;Kbytes/sec&quot;
#set data style lines
set style data lines
set dgrid3d 80,80,3
#set terminal png small picsize 900 700
set terminal png small size 900 700
set output &quot;$column.png&quot;
};

    print G &quot;splot &quot;. join(&quot;, &quot;, map{qq{&quot;$_&quot; using 1:2:$columns{$column} title &quot;$_&quot;}}(@datafiles));

    print G &quot;\n&quot;;

    close G;

    open(G, &quot;&gt;$outdir/2d-$column.do&quot;) or die &quot;cannot open $outdir/$column.do for writing&quot;;
    print G qq{
set title &quot;Iozone performance: $column&quot;
#set terminal png small picsize 450 350
set terminal png small size 450 350
set logscale x
set xlabel &quot;File size in KBytes&quot;
set ylabel &quot;Kbytes/sec&quot;
set output &quot;2d-$column.png&quot;
};

    print G &quot;plot &quot;. join(&quot;, &quot;, map{qq{&quot;2d-$_&quot; using 1:$columns{$column} title &quot;$_&quot; with lines}}(@datafiles));

    print G &quot;\n&quot;;

    close G;

    if ( system(&quot;cd $outdir &amp;&amp; gnuplot $column.do &amp;&amp; gnuplot 2d-$column.do&quot;) )
    {
        print STDERR &quot;(failed) &quot;;
    }
    else
    {
        print STDERR &quot;(ok) &quot;;
    }
}

print STDERR &quot;done.\n&quot;;
</pre>
<div class="shr-publisher-906"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2011/11/03/iozone-and-gnuplot-4-x/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Servlet containers, startup time</title>
		<link>http://blog.hgomez.net/2011/07/15/servlet-containers-startup-time/</link>
		<comments>http://blog.hgomez.net/2011/07/15/servlet-containers-startup-time/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 00:11:03 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[OpenJDK]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=861</guid>
		<description><![CDATA[With the release of JBoss AS7, we see many comments around about the startup time of Application Servers. Even if this appears marginal in real life (an application server is expected to run 24/24 7/7), there is area where startup time is still important like for developpers. In developpment phase, when you have to start/stop [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F07%2F15%2Fservlet-containers-startup-time%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F07%2F15%2Fservlet-containers-startup-time%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>With the release of JBoss AS7, we see many comments around about the startup time of Application Servers.<br />
Even if this appears marginal in real life (an application server is expected to run 24/24 7/7), there is area where startup time is still important like for developpers. In developpment phase, when you have to start/stop your server dozens of times by day, you need fastest start time as possible.</p>
<p>I conducted a very basic and simple test on my MacBook Pro, take various application servers and servlet containers and measure their startup time.</p>
<p>And in this days of Java 7 fever, try these servers with OpenJDK 7 (OS/X version).</p>
<h3>Results on MacBook Pro &#8211; Core2Duo 2.66Ghz</h3>
<p><a href="http://blog.hgomez.net/wp-content/uploads/2011/07/Startup6.png"><img src="http://blog.hgomez.net/wp-content/uploads/2011/07/Startup6-1024x473.png" alt="Startup Time of App Servers (3rd try)" title="Startup Time of App Servers" width="1024" height="473" class="alignnone size-large wp-image-892" /></a></p>
<p>all time in millisecondes </p>
<h3>Remarks</h3>
<li>JBoss AS 6 (minimal profile) startup time was about 27s. I didn&#8217;t include it in graph to keep a good scale for others engines</li>
<li>JBoss AS6 seems to start well with OpenJDK 7 but was a bit long to stop, so I had to kill the process</li>
<li>JBoss AS7 web-profile and non certified full edition came with no webapp, so a bit less works at startup since no webapp has to be deployed and managed. Injecting a basic webapp take an extra 30ms on next starts.</li>
<li>All servers performed pretty the same under Apple JDK 1.6.0-26 and OpenJDK 7.</li>
<h3>Conclusions</h3>
<li>Jetty is still the fastest container to start around.</li>
<li>Apache Tomcat team does a good job on Apache Tomcat 7, near twice faster than Apache Tomcat 6 in startup time and not too far than Jetty.</li>
<li>JBoss AS7 startup speed improvements are tremendous, about 13 times faster than its predecessor JBoss AS6, congrats guys !</li>
<p>Raw startup time data available <a href='http://blog.hgomez.net/wp-content/uploads/2011/07/appserver-startup2.txt'>here</a></p>
<div class="shr-publisher-861"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2011/07/15/servlet-containers-startup-time/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Building Universal Apache Tomcat Native Library on OS/X</title>
		<link>http://blog.hgomez.net/2011/07/13/building-universal-apache-tomcat-native-library-on-osx/</link>
		<comments>http://blog.hgomez.net/2011/07/13/building-universal-apache-tomcat-native-library-on-osx/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 15:41:08 +0000</pubDate>
		<dc:creator>Henri Gomez</dc:creator>
				<category><![CDATA[OS/X]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://blog.hgomez.net/?p=849</guid>
		<description><![CDATA[I recently notice that my Apache Tomcat running on OS/X 10.6.8 couldn&#8217;t use Apache Tomcat Native Library. After digging around and with the help of ASFer Mladen Turk, I figure my previous build was stick to 64bits mode only and I switched my JVM to 32bits mode using -d32. The fix was then easy, just [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F07%2F13%2Fbuilding-universal-apache-tomcat-native-library-on-osx%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.hgomez.net%2F2011%2F07%2F13%2Fbuilding-universal-apache-tomcat-native-library-on-osx%2F&amp;source=hgomez&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently notice that my Apache Tomcat running on OS/X 10.6.8 couldn&#8217;t use Apache Tomcat Native Library. </p>
<pre class="brush: bash; title: ; notranslate">
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jul 13, 2011 11:02:30 AM org.apache.coyote.http11.Http11Protocol init
</pre>
<p>After digging around and with the help of ASFer Mladen Turk, I figure my previous build was stick to 64bits mode only and I switched my JVM to 32bits mode using -d32.</p>
<p>The fix was then easy, just had to rebuild tomcat-native and asking OS/X gcc to produce both 32/64 bits model library using the following CLFAGS/APXSLDFLAGS.</p>
<pre class="brush: bash; title: ; notranslate">
CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386-arch x86_64'
</pre>
<p>Here is a small script I&#8217;m using now to produce Apache Tomcat Native Library on OS/X.</p>
<pre class="brush: bash; title: ; notranslate">
curl http://mir2.ovh.net/ftp.apache.org/dist/tomcat/tomcat-connectors/native/1.1.23/source/tomcat-native-1.1.23-src.tar.gz -o tomcat-native-1.1.23-src.tar.gz
tar xvzf tomcat-native-1.1.23-src.tar.gz
cd tomcat-native-1.1.23-src/jni/native

CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386 -arch x86_64' ./configure --with-apr=/usr --with-ssl=/usr --with-java-home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home --with-apxs=/usr/sbin/apxs
make clean
make

sudo cp .libs/libtcnative-1.0.1.23.dylib /usr/lib/java
sudo rm -f  /usr/lib/java/libtcnative-1.dylib
sudo ln -s /usr/lib/java/libtcnative-1.0.1.23.dylib /usr/lib/java/libtcnative-1.dylib
</pre>
<h3>A note about Lion</h3>
<p>If you get Java on Lion using the java command on terminal or via the Java Developer Package for Mac OS X 10.7, Java headers are not on the usual location and you could find them under <strong>/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers</strong></p>
<p>You should then update the <strong>configure</strong> command line like this :</p>
<pre class="brush: bash; title: ; notranslate">
CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386 -arch x86_64' ./configure --with-apr=/usr --with-apxs=/usr/sbin/apxs --with-ssl=/usr --with-java-home=/System/Library/Frameworks/JavaVM.framework/Versions/A/
</pre>
<p>Lion came with Xcode 4.1 and there is also an impact on linker side, libtcnative is now produced as <strong>libtcnative-1.0.dylib</strong></p>
<p>Commands became so :</p>
<pre class="brush: bash; title: ; notranslate">
curl http://mir2.ovh.net/ftp.apache.org/dist//tomcat/tomcat-connectors/native/1.1.23/source/tomcat-native-1.1.23-src.tar.gz -o tomcat-native-1.1.23-src.tar.gz
tar xvzf tomcat-native-1.1.23-src.tar.gz
cd tomcat-native-1.1.23-src/jni/native

CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386 -arch x86_64' ./configure --with-apr=/usr --with-apxs=/usr/sbin/apxs --with-ssl=/usr --with-java-home=/System/Library/Frameworks/JavaVM.framework/Versions/A/
make clean
make

sudo cp .libs/libtcnative-1.0.dylib /usr/lib/java
sudo rm -f  /usr/lib/java/libtcnative-1.dylib
sudo ln -s /usr/lib/java/libtcnative-1.0.dylib /usr/lib/java/libtcnative-1.dylib
</pre>
<div class="shr-publisher-849"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.hgomez.net/2011/07/13/building-universal-apache-tomcat-native-library-on-osx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

