<?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>Schadenfreude &#187; benchmark</title>
	<atom:link href="http://www.ralree.com/tag/benchmark/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:49:15 +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>Fill an LVM volume group completely with a single logical volume</title>
		<link>http://www.ralree.com/2011/08/25/fill-an-lvm-volume-group-completely-with-a-single-logical-volume/</link>
		<comments>http://www.ralree.com/2011/08/25/fill-an-lvm-volume-group-completely-with-a-single-logical-volume/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 21:29:52 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ralree.com/?p=23180</guid>
		<description><![CDATA[I learned a cool LVM trick today &#8211; how to resize a logical volume to use a certain percentage of a volume group.  Since I just have one logical volume in the group, I did the following: [root@nyu ~]# lvextend -l +100%FREE /dev/diclonius/vector Extending logical volume vector to 7.28 TiB Logical volume vector successfully resized Thanks Redhat Documentation! In other news, I ran a performance test on my 5-drive RAID-5 using HD204UI drives from Samsung: [root@nyu tmp]# dd if=/dev/zero of=foo [...]]]></description>
			<content:encoded><![CDATA[<p>I learned a cool LVM trick today &#8211; how to resize a logical volume to use a certain percentage of a volume group.  Since I just have one logical volume in the group, I did the following:</p>
<pre><code>[root@nyu ~]# lvextend -l +100%FREE /dev/diclonius/vector
  Extending logical volume vector to 7.28 TiB
  Logical volume vector successfully resized</code></pre>
<p>Thanks <a title="lvextend documentation from Redhat" href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/lv_extend.html" target="_blank">Redhat Documentation!</a></p>
<p>In other news, I ran a performance test on my 5-drive RAID-5 using HD204UI drives from Samsung:</p>
<pre><code>[root@nyu tmp]# dd if=/dev/zero of=foo count=5 bs=$((1024*1024*1024))
5+0 records in
5+0 records out
5368709120 bytes (5.4 GB) copied, 18.1434 s, 296 MB/s
[root@nyu tmp]# dd if=foo of=/dev/null
10485760+0 records in
10485760+0 records out
5368709120 bytes (5.4 GB) copied, 15.2682 s, 352 MB/s</code></pre>
<p>So, <b>350MB/sec reads and 296MB/sec writes!</b>  Not bad!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2011/08/25/fill-an-lvm-volume-group-completely-with-a-single-logical-volume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Giganews vs. Astraweb</title>
		<link>http://www.ralree.com/2009/01/17/giganews-vs-astraweb/</link>
		<comments>http://www.ralree.com/2009/01/17/giganews-vs-astraweb/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 06:15:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[astraweb]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[giganews]]></category>
		<category><![CDATA[newsgroups]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[usenet]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2009/01/17/giganews-vs-astraweb</guid>
		<description><![CDATA[Recently, I’ve been a bit low on money thanks to 2-3 expensive hobbies I’ve picked up. So, I took a look at my bills, and remembered I was spending $30 per month on usenet. Well, that’s too much, but high-speed unlimited usenet providers with 200 day + retention and SSL are hard to find. Then, I noticed that Astraweb is moving to 270+ retention soon, making the $11/month worth it (almost 1/3 of the cost of Giganews). Currently, they still [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I’ve been a bit low on money thanks to 2-3 expensive hobbies I’ve picked up.  So, I took a look at my bills, and remembered I was spending $30 per month on usenet.  Well, that’s too much, but high-speed unlimited usenet providers with 200 day + retention and SSL are hard to find.  Then, I noticed that Astraweb is moving to 270+ retention soon, making the $11/month worth it (almost 1/3 of the cost of Giganews).  Currently, they still only have 170 days, but hopefully the upgrade will kick in soon.  The monthly price of the plan stays as long as you keep it even though it’s a special that may expire soon.  The question is, how’s the performance?</p>
<h2>The Setup</h2>
<p>Though their web interface isn’t nearly as polished as Giganews, why would you need polished for usenet?  I decided on <a href="http://beta.legaltorrents.com/torrents/208-star-wreck---legacy">Star Wreck Legacy</a>, which is a free and legal collection of films.</p>
<table border="0">
<tbody>
<tr>
<th>Filename</th>
<th>Size</th>
<th>Number of Files</th>
<th>Percent Uploaded</th>
<th>Age</th>
<th>Group</th>
</tr>
<tr>
<td>starwrecklegacy.par2</td>
<td>6.6 GB</td>
<td>135</td>
<td>102.4</td>
<td>132.0d</td>
<td>a.b.dvd</td>
</tr>
</tbody>
</table>
<p>It’s a hefty 6.6GB, so it should eliminate any short-term bursting, etc. that may skew measurements.  It even has an overabundance of par2 files.  Nice…</p>
<p>I use stunnel to create SSL tunnels to the secure news servers, and connect to the unencrypted news port on my local machine that stunnel provides.  This tricks hellanzb, my client, into thinking it’s just using a regular news server, while all my traffic just looks like normal SSL traffic, indifferentiable from normal secure web traffic save the ports.  Both the tests will be conducted with the SSL on using 18 connections.</p>
<p>I have relatively high bandwidth for this country (20Mbits Down, 8Mbits up), but it’s from Comcast, so we’ll see how that holds up.  It’s currently working pretty well consistently.  Here’s a recent test I did at <a href="http://www.speedtest.net">Speedtest.net</a>:</p>
<p><img src="http://ralree.com/assets/2009/1/17/391323910.png" alt="" /></p>
<h2><a href="http://www.news.astraweb.com/">Astraweb</a></h2>
<pre><code>
Transferred 5957.2MB in 49m 43s at 2044.5KB/s (starwrecklegacy.par2)
</code></pre>
<h2><a href="http://www.giganews.com/">Giganews</a></h2>
<pre><code>
Transferred 5958.6MB in 49m 45s at 2043.5KB/s (starwrecklegacy.par2)
</code></pre>
<h2>Conclusion</h2>
<p>So, as you can see above, there’s no significant difference between the speed of the 2 services.  Yet, Astraweb is massively cheaper.  Get it cheap while you can!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2009/01/17/giganews-vs-astraweb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Minefield Beta is Awesome</title>
		<link>http://www.ralree.com/2008/10/29/firefox-minefield-beta-is-awesome/</link>
		<comments>http://www.ralree.com/2008/10/29/firefox-minefield-beta-is-awesome/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 04:29:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/10/29/firefox-minefield-beta-is-awesome</guid>
		<description><![CDATA[So, I tried Firefox Minefield Beta today at the suggestion of Slashdot, and I like it. It&#8217;s really speedy compared to even the previous 3.0 versions. Text shadows now work, which is really cool. SunSpider Benchmark Results]]></description>
			<content:encoded><![CDATA[<p>So, I tried Firefox Minefield Beta today at the suggestion of Slashdot, and I like it.  It&#8217;s really speedy compared to even the previous 3.0 versions.  Text shadows now work, which is really cool.</p>
<p><img src="http://ralree.info/assets/2008/10/29/whoa.jpg" alt=""/></p>
<h3><a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider-results.html?%7B%223d-cube%22:%5B50,48,47,48,48%5D,%223d-morph%22:%5B31,33,33,34,38%5D,%223d-raytrace%22:%5B38,38,38,75,38%5D,%22access-binary-trees%22:%5B40,37,37,38,44%5D,%22access-fannkuch%22:%5B134,72,98,119,109%5D,%22access-nbody%22:%5B34,28,38,28,28%5D,%22access-nsieve%22:%5B12,11,14,16,14%5D,%22bitops-3bit-bits-in-byte%22:%5B1,1,1,1,2%5D,%22bitops-bits-in-byte%22:%5B7,6,7,6,21%5D,%22bitops-bitwise-and%22:%5B2,16,16,15,15%5D,%22bitops-nsieve-bits%22:%5B23,24,24,24,23%5D,%22controlflow-recursive%22:%5B34,30,30,34,30%5D,%22crypto-aes%22:%5B26,25,26,38,32%5D,%22crypto-md5%22:%5B14,14,15,21,15%5D,%22crypto-sha1%22:%5B5,6,6,7,6%5D,%22date-format-tofte%22:%5B123,125,137,127,127%5D,%22date-format-xparb%22:%5B100,101,104,103,101%5D,%22math-cordic%22:%5B27,27,27,33,33%5D,%22math-partial-sums%22:%5B17,24,19,26,17%5D,%22math-spectral-norm%22:%5B6,6,12,15,6%5D,%22regexp-dna%22:%5B259,231,194,242,247%5D,%22string-base64%22:%5B17,17,18,21,19%5D,%22string-fasta%22:%5B78,131,130,151,140%5D,%22string-tagcloud%22:%5B103,106,131,108,110%5D,%22string-unpack-code%22:%5B134,131,141,134,141%5D,%22string-validate-input%22:%5B43,54,79,55,51%5D%7D">SunSpider Benchmark Results</a></h3>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/10/29/firefox-minefield-beta-is-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fulltext Indexing Wikipedia with Sphinx</title>
		<link>http://www.ralree.com/2007/09/15/fulltext-indexing-wikipedia-with-sphinx/</link>
		<comments>http://www.ralree.com/2007/09/15/fulltext-indexing-wikipedia-with-sphinx/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 22:17:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sphinx]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/fulltext-indexing-wikipedia-with-sphinx</guid>
		<description><![CDATA[So, earlier this year, I decided it would be cool to mirror Wikipedia. So, I successfully set up a local copy on my system, and it&#8217;s been just sitting there ever since. But lately, I&#8217;ve been interested in fulltext indexing offered by various indexing engines, and Sphinx has looked especially tasty. So, I figured I&#8217;d sit down and try it today. I pointed it at my 16GB of Wikipedia text in my MySQL database. So, earlier this year, I decided [...]]]></description>
			<content:encoded><![CDATA[<p>So, earlier this year, I decided it would be cool to mirror Wikipedia.  So, I successfully set up a local copy on my system, and it&#8217;s been just sitting there ever since.  But lately, I&#8217;ve been interested in fulltext indexing offered by various indexing engines, and <a href="http://www.sphinxsearch.com/">Sphinx</a> has looked especially tasty.  So, I figured I&#8217;d sit down and try it today.</p>
<p>I pointed it at my 16GB of Wikipedia text in my MySQL database.</p>
<p>            <span id="more-3411"></span></p>
<p>So, earlier this year, I decided it would be cool to mirror Wikipedia.  So, I successfully set up a local copy on my system, and it&#8217;s been just sitting there ever since.  But lately, I&#8217;ve been interested in fulltext indexing offered by various indexing engines, and <a href="http://www.sphinxsearch.com/">Sphinx</a> has looked especially tasty.  So, I figured I&#8217;d sit down and try it today.</p>
<p>I pointed it at my 16GB of Wikipedia text in my MySQL database like so:</p>
<h2>sphinx.conf</h2>
<pre><code>
source src1
{
  type        = mysql
  strip_html      = 0
  index_html_attrs  =
  sql_host      = localhost
  sql_user      = wikipedia
  sql_pass      = wikipedia
  sql_db        = wikidb
  sql_query_pre   =
  sql_query     = \
    SELECT old_id, old_text\
    FROM text
  sql_query_post    =
  sql_query_info    = SELECT * FROM text WHERE old_id=$id
}

</code></pre>
<h2>Next, I set up the indexing section.</h2>
<pre><code>
index wikipedia
{
  source      = src1
  path      = /nexus/rofl/sphinx/wikipedia.sphinx
  docinfo     = extern
  morphology      = none
  stopwords     =
  min_word_len    = 1
  charset_type    = utf-8
  min_prefix_len    = 0
  min_infix_len   = 0
}
index wikipediastemmed : wikipedia
{
  path      = /var/data/wikipediastemmed
  morphology    = stem_en
}
indexer
{
  mem_limit     = 512M
}

</code></pre>
<p>I left all the other options as default.  Next, I turned on the indexing and waited for about <strong>2.5 hours</strong>.  Now, bear in mind that 2.5 hours isn&#8217;t all that long to index this much data, especially given the results I&#8217;m about to show you.</p>
<h2>Now it&#8217;s time to test this out!</h2>
<pre><code>

hank@rofl:/usr/local/etc$ time search endothermic
## ....................................................................................................
## ....................................................................................................
## ....................................................................................................
= Sterling D. | title = Cold Fire® is a Hot Fire Extinguisher | publisher =
Company press release | date = Nov. 28, 2003 | url= http://www.greaterthings.com/News/ColdFire/pr031122.html | accessdate = August 21, 2006}}&lt;/ref&gt;
==References==
&lt;references/&gt;
== External links ==
* [http://www.firefreeze.com Fire Freeze Worldwide Inc.]

[[Category:Firefighting]]
        old_flags=utf-8
20. document=112594001, weight=1
        old_id=112594001
        old_text=#REDIRECT[[Endothermic]]
        old_flags=utf-8

words:
1. 'endothermic': 173 documents, 293 hits

real    0m0.831s
user    0m0.004s
sys     0m0.080s

hank@rofl:/usr/local/etc$ time search "hello &#038; world" &gt;/dev/null

real    0m0.659s
user    0m0.032s
sys     0m0.052s

</code></pre>
<h1>Look at that time!!  <strong>0.8 Seconds</strong> to search <strong>16GB of text</strong>!</h1>
<h2>Sphinx is indeed the master of the fulltexting.</h2>
<p>I&#8217;m very impressed.  I&#8217;m sure I will find a use for this soon.</p>
<h1>Update: It&#8217;s actually faster.</h1>
<p>Due to the comment from Sphinx&#8217;s author below, I ran a <code>searchd</code> instance with gets rid of all the overhead when searching from the command line.</p>
<p>Here are some results I got using the Ruby API that&#8217;s included with Sphinx:</p>
<pre><code>
irb(main):010:0&gt; t = Time.now; s.query('(Single &#038; mother) &#038; !father'); puts Time.now - t
0.016864
=&gt; nil
</code></pre>
<h2>It only took <strong>0.017 seconds</strong> to find all instances of single and mother without mention of father in Wikipedia&#8217;s database.</h2>
<p>This is indeed impressive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/09/15/fulltext-indexing-wikipedia-with-sphinx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

