<?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>benchmarking | LogikDevelopment</title>
	<atom:link href="https://www.logikdev.com/tag/benchmarking/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.logikdev.com</link>
	<description>&#34;Il n&#039;y a pas de problème, il n&#039;y a que des solutions. L&#039;esprit de l&#039;homme invente ensuite le problème.&#34; André Gide</description>
	<lastBuildDate>Tue, 25 Apr 2017 13:57:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>Samba vs NFS on DNS-323</title>
		<link>https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/</link>
					<comments>https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/#respond</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Mon, 09 Sep 2013 22:04:07 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[benchmarking]]></category>
		<category><![CDATA[CIFS]]></category>
		<category><![CDATA[DNS-323]]></category>
		<category><![CDATA[IOzone]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Samba]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=2019</guid>

					<description><![CDATA[<p>So far, I was using Samba to share the files stored on my D-Link DNS-323. However, people tend to say that NFS is quicker than Samba. So let&#8217;s benchmark those two protocols and figure out which one is actually quicker. First of all, here is my configuration: Server Client D-Link DNS-323 Linux dlink-5610E5 2.6.12.6-arm1 Samba [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/">Samba vs NFS on DNS-323</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>So far, I was using Samba to share the files stored on my D-Link DNS-323. However, people tend to say that NFS is quicker than Samba. So let&#8217;s benchmark those two protocols and figure out which one is actually quicker.</p>
<p>First of all, here is my configuration:</p>
<table width="450px">
<tr>
<th>Server</th>
<th>Client</th>
</tr>
<tr>
<td>
<a href="http://dns323.kood.org/" target="_blank">D-Link DNS-323</a><br />
Linux dlink-5610E5 2.6.12.6-arm1<br />
Samba 3.0.24<br />
UNFS3 0.9.20
</td>
<td>
<a href="http://www.raspberrypi.org/" target="_blank">Raspberry Pi</a><br />
Linux alarmpi 3.6.11-15-ARCH+<br />
CIFS utils 6.1-1<br />
NFS utils 1.2.8-9
</td>
</tr>
</table>
<p>I used IOzone to benchmark these protocols from the Raspberry Pi. You can find the package for Arch Linux ARM on one of my <a href="https://www.logikdev.com/2013/06/08/iozone-for-arch-linux-arm/" title="IOzone for Arch Linux ARM">previous post</a>.</p>
<p>I first mounted the Samba and NFS share drives in the two respective folders <code>/mnt/storage_smb</code> and <code>/mnt/storage_nfs</code>.</p>
<p>I then ran the following commands (not at the same time):</p>
<pre class="brush: bash; light: true; title: ; notranslate">
iozone -RazcR -U /mnt/storage_smb -f /mnt/storage_smb/testfile -b smb_excel_output.xls
iozone -RazcR -U /mnt/storage_nfs -f /mnt/storage_nfs/testfile -b nfs_excel_output.xls
</pre>
<p>You can download the output files <a href="https://www.logikdev.com/wp-content/uploads/2013/09/smb_excel_output.xls">here</a> and <a href="https://www.logikdev.com/wp-content/uploads/2013/09/nfs_excel_output.xls">here</a>.</p>
<p>Or, you can simply have a look at a summary of these two files in the following table which basically compare the average speed (in Kbytes per second) for both Samba and NFS:</p>
<table width="500px">
<tr>
<th></th>
<th>Samba</th>
<th>NFS</th>
</tr>
<tr>
<td><b>Write</b></td>
<td><strong>7683</strong></td>
<td>6676</td>
</tr>
<tr>
<td><b>Re-write</b></td>
<td><strong>7544</strong></td>
<td>6795</td>
</tr>
<tr>
<td><b>Read</b></td>
<td>21862</td>
<td><strong>50464</strong></td>
</tr>
<tr>
<td><b>Re-read</b></td>
<td>22383</td>
<td><strong>50210</strong></td>
</tr>
<tr>
<td><b>Random read</b></td>
<td>6348</td>
<td><strong>6444</strong></td>
</tr>
<tr>
<td><b>Random write</b></td>
<td><strong>7603</strong></td>
<td>6751</td>
</tr>
<tr>
<td><b>Backward read</b></td>
<td><strong>5909</strong></td>
<td>5246</td>
</tr>
<tr>
<td><b>Record rewrite</b></td>
<td>80294</td>
<td><strong>87225</strong></td>
</tr>
<tr>
<td><b>Stride read</b></td>
<td><strong>15629</strong></td>
<td>11868</td>
</tr>
<tr>
<td><b>Fwrite</b></td>
<td><strong>7471</strong></td>
<td>6700</td>
</tr>
<tr>
<td><b>Re-fwrite</b></td>
<td><strong>7494</strong></td>
<td>6671</td>
</tr>
<tr>
<td><b>Fread</b></td>
<td><strong>7739</strong></td>
<td>7685</td>
</tr>
<tr>
<td><b>Re-fread</b></td>
<td>7596</td>
<td><strong>7639</strong></td>
</tr>
</table>
<p>As you can see, it looks like NFS is quicker for read operations but slower for write operations than Samba. But please remember that this is true for this very specific configuration ; It could be completely different for another one.</p>
<p>In conclusion, I personally decided to use both Samba and NFS depending of what I need. If I need a read only access to my data, I use NFS. However, if I need to write data, I use Samba.</p>
<p><strong>NB:</strong> Another reason why I didn&#8217;t completely stop using Samba is because symbolic links don&#8217;t work with NFS. Instead, you need to use binding (mounting a folder inside another folder), but this is kind of incompatible with my use of rsync to backup my data. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p><p>The post <a href="https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/">Samba vs NFS on DNS-323</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SD Card Benchmark on a Raspberry Pi</title>
		<link>https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/</link>
					<comments>https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Mon, 01 Jul 2013 20:55:03 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[benchmarking]]></category>
		<category><![CDATA[IOzone]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[SD card]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1990</guid>

					<description><![CDATA[<p>Some time ago, I bought a Raspberry Pi. I am not going to describe what it is here, but you can read more about it on this page. The first thing you need to buy when you&#8217;ve got a Raspberry Pi is a SD card. But the question I asked myself is: &#8220;Which one?&#8221;. Indeed, [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/">SD Card Benchmark on a Raspberry Pi</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Some time ago, I bought a <a href="http://www.raspberrypi.org/" target="_blank">Raspberry Pi</a>. I am not going to describe what it is here, but you can read more about it on <a href="http://en.wikipedia.org/wiki/Raspberry_Pi" target="_blank">this page</a>.</p>
<p>The first thing you need to buy when you&#8217;ve got a Raspberry Pi is a SD card. But the question I asked myself is: &#8220;Which one?&#8221;. Indeed, there are so many models with different type, capacity and speed. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>I first checked the compatibility list found on the <strong>Embedded Linux Wiki</strong>:<br />
<a href="http://elinux.org/RPi_SD_cards#Working_.2F_Non-working_SD_cards" target="_blank">http://elinux.org/RPi_SD_cards#Working_.2F_Non-working_SD_cards</a><br />
But this list didn&#8217;t help me much. Indeed, out of them, which one should I buy?</p>
<p>This is why I decided to test two SD cards with two different speed:</p>
<ul>
<li>SanDisk SDSDXPA-008G-X46 8GB 95MB/S Extreme Pro SDHC Class10</li>
<li>SanDisk SDSDX-032G-FFP 32GB 45MB/S Extreme SDHC Class10</li>
</ul>
<p>As you can see, the speed of the first one is <strong>95MB/S</strong> against <strong>45MB/S</strong> for the second one. Does it mean the Raspberry Pi will run twice quicker?<br />
Let&#8217;s check it by benchmarking the cards.</p>
<p>I used <a href="http://www.iozone.org/" target="_blank">IOzone</a> to benchmark these cards. Unfortunately, IOzone is not available for ARM on ArchLinux. I wrote a <a href="/2013/06/08/iozone-for-arch-linux-arm/" title="IOzone for Arch Linux ARM">separate article</a> about it.</p>
<p>I ran the exact same command for both cards:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
iozone -e -I -a -s 50M -r 4k -r 512k -r 16M -i 0 -i 1 -i 2
</pre>
<p>Please find below the result for the SD card with a speed of 95MB/S:</p>
<pre>
                                                    random  random    bkwd   record   stride                                   
      KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
   51200       4    1422    1502     5841     5838    5688     878                                                          
   51200     512   20743   20924    22094    22130   22121    8313                                                          
   51200   16384   20090   21349    22413    22514   22458   21351                                                          
</pre>
<p>The full output can be found <a href="https://www.logikdev.com/wp-content/uploads/2013/06/iozone-SDSDXPA-008G-X46.txt">here</a>.</p>
<p>And the following is the result for the SD card with a speed of 45MB/S:</p>
<pre>
                                                    random  random    bkwd   record   stride                                   
      KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
   51200       4    1653    1858     4566     4716    3996     755                                                          
   51200     512   20515   19534    21953    22031   21867    4722                                                          
   51200   16384   15841   21240    22311    22390   22384   21177                                                          
</pre>
<p>The full output can be found <a href="https://www.logikdev.com/wp-content/uploads/2013/06/iozone-SDSDX-032G-FFP.txt">here</a>.</p>
<p>So, it looks like the difference is not that big. Indeed, the SD card with a speed of 95MB/S is not twice quicker than the other one. Why is that? In my opinion, this is directly linked to the actual speed of the SD card reader within the Raspberry Pi.<br />
Which means that it doesn&#8217;t matter which card you are using, you won&#8217;t go further than 22MB/S anyway.</p>
<p>Finally, please find below some other benchmarks on the same topic:</p>
<ul>
<li><a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?p=137164" target="_blank">http://www.raspberrypi.org/phpBB3/viewtopic.php?p=137164</a></li>
<li><a href="http://itsacleanmachine.blogspot.fr/2012/08/sd-card-benchmark-on-raspberry-pi.html" target="_blank">http://itsacleanmachine.blogspot.fr/2012/08/sd-card-benchmark-on-raspberry-pi.html</a>
</ul><p>The post <a href="https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/">SD Card Benchmark on a Raspberry Pi</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
