Like every other website on the planet, SmallNetBuilder uses cookies. Our cookies track login status, but we only allow admins to log in anyway, so those don't apply to you. Any other cookies you pick up during your visit come from advertisers, which we don't control.
If you continue to use the site, you agree to tolerate our use of cookies. Thank you!

Router Charts

Click for Router Charts

Router Ranker

Click for Router Ranker

NAS Charts

Click for NAS Charts

NAS Ranker

Click for NAS Ranker

More Tools

Click for More Tools

NAS How To

Features

The R-PI NAS can be looked at in two ways when compared to a commercial NAS. Commercial NASes are crammed with features that can do anything from serving media to recording from network cameras. The R-Pi NAS inherently has none of that. However, since it runs on Raspbian, an operating system based on Debian that is optimized for Raspberry Pi hardware, the possibilities to expand it with other software, such as minidlna, is always present.

That said however, it's not nearly as user-friendly as a commercial NAS. Although the commands are relatively easy, a lot of configuration of files and command-line knowledge are needed to install, configure and maintain a Raspberry Pi NAS. With a commercial NAS, one could get away with never touching the command-line in most cases and have loads of functionality at their disposal.

Performance

To test the performance of the R-Pi NAS, I set it up against a Synology DS111 we use for PC backups and other tasks in the house. The Synology has a little speedier processor and a Gigabit network interface, but otherwise it is a relatively close comparison.

I first ran a test with LAN Speed Test version 3.4.0 from Totusoft. The test sent 100, 1 MB packets. The Synology DS111 wrote at 34 MB/s and read at 47 MB/s. Not really all that awe-inspiring. The ext3 filesystem on this NAS is several years old and had probably suffered a little slowdown over time.

I next ran the same test against the R-Pi NAS, which only has a 100 Mbps network interface. Reads would always come back as 8.5 MB/s test after test, consistently across exfat, ext3 and ext4 filesystems. I had a little more trouble with write, however. It would start around 10 MB/s, but somewhere between packet 50 and packet 88, the test would always hang, which would in turn drop write speed results to anywhere from 8 - 5.4 MB/s. I poked around on some Samba forums and saw similiar issues, suggesting a write cache problem, but no concrete solutions.

On a whim, I decided to run rpi-update, which updates the Rapsberry Pi's firmware. I did this after completing the tests below. I had done this prior to setting up R-Pi NAS, but decided to do it again since I was having problems. After updating, the write pauses went away. I don't know if something to specifically address the write pauses was included in the update, but I do know that the community is constantly refining and improving code. Table 1 summarizes the results after the firmware update.

Device Write (MB/s) Read (MB/s)
R-Pi 8.9 8.5
Synology DS111 34.0 47.4
Table 1: Throughput Comparison - LAN Speed Test

I thought some real world directory copy tests were in also in order. I tried three directory copies, whose results are summarized in Table 2:

  • 28 MB directory, 126 small files (29 KB to 2135 KB each)
  • 108 MB directory, 34 files (3-5 MB each)
  • Very large backup test (314 GB, 248,777 files, 13,363 folders)
Device 28 MB
Write (MB/s)
108 MB
Write (MB/s)
314 GB
Write (MB/s)
R-Pi NAS 3.3 6.2 3.5
Synology DS111 1.8 30 6.2
Table 2: Directory copy - R-Pi NAS

The 28 MB directory consisted of several GPX files, but it could very easily have been a web directory with tiny files, which often takes quite some time to back up when size is considered. To my surprise, the R-Pi NAS handily beat the Synology DS111 at this test, with copy throughput of 3.3 MB/s vs. 1.8 MB/s.

The 108 MB directory consisted of music files, all 3-5 MB each. The R-Pi NAS chugged along at only 6.2 MB/s on this test vs. 30 MB/s for the Synology. This performance number was after running the rpi-update.

A primary task for the NAS in our residence is to sync user profiles from desktops and laptops after hours so that if anything were to happen to the drive in the system such things as documents, pictures, music and even profile settings would not be lost. Our Synology has served us well for this usage, but some profiles are very large. The Synology NAS with its faster throughput and Gigabit network interface can still sometimes take a very long time to complete the tasks.

In fact, the Synology took 860 minutes (14+ hours) to copy this very large directory, copying 289 files\min and clocking in at only 6.2 MB/s. The 3.5 MB/s throughput for the R-Pi NAS shown in Table 2 is what I measured before I ran the firmware update. But because this test takes so long, I didn't rerun it. I doubt if the results would have changed significantly, given the large number of small files in this test.

Closing Thoughts

When considering the R-Pi NAS compared to a commercial NAS, it really comes down to several things. The first being how comfortable you are with Linux. If you don't like installing software from the command-line and manually configuring files, then the R-PI NAS is not for you. Commercial NASes have a plethora of ready-to-go applications that compliment their file serving capabilities. While you can find many of the same types of applications for the Raspberry Pi, you have to install, configure and often debug them.

Speed is also a consideration. While the Raspberry Pi did ok when compared to the DS111 when copying lots of small files, the Synology definitely was significantly faster with larger media files and speed can really matter with large backups. When used as a media repository serving files to a media player, the R-Pi NAS would do just fine, however.

Something I thought would matter, but really didn't was power consumption. The Raspberry Pi draws almost no power—I measured around 3W in the Raspbmc article. And with a USB drive attached, about 8W was typical. The DS111, on the other hand, takes about 18W in use. While that difference is large in comparison, the Synology also finished tasks more quickly, allowing it to hibernate at 8W for much of the time that the R-PI NAS was working on my multi-Gigabyte backup.

For cost, an R-Pi isn't as cheap as you would think given its $35 starting cost for just the board. My price breakdown was:

  • $35 for Raspberry Pi B board from official vendor
  • $6.47 Clear case
  • $16.19 4 GB preloaded SD card
  • $12.78 Micro USB power adapter
  • $19.99 for Rosewill USB enclosure
  • $74.99 2 TB Toshiba drive from Newegg

Grand total $165.42 before tax and shipping.

The DS111 is no longer for sale on Newegg, but that DS112 is. Current cost without tax and shipping is $209.99. Add $74.99 for the same Toshiba 2 TB 3.5" drive used in the R-Pi, for a grand total $284.98. While this is still almost twice the cost of the R-Pi NAS, it isn't the 8X implied by the R-Pi's $35 board cost.

Of course all of my testing was with a single drive. Since R-Pi NAS runs on Debian optimized for the Pi, it theoretically should be able to use the same Linux utilities and techniques seen in the SNB forums to create multiple drive arrays in a more ambitious build. But keep in mind access to that storage will still be through a relatively small USB 2.0 pipe.

The bottom line is that commercial NASes can rest easy that that are in no danger of being replaced by R-Pi DIY NASes. But where simple, basic shared storage is needed, an R-Pi NAS could be a great choice.

More NAS

Wi-Fi System Tools
Check out our Wi-Fi System Charts, Ranker and Finder!

Support Us!

If you like what we do and want to thank us, just buy something on Amazon. We'll get a small commission on anything you buy. Thanks!

Over In The Forums

Our household has four Macs and one Windows computer. I set up a an attached USB drive as a Network Place (Samba) Share using Asus' router setup facil...
Anyone know what this means?BWDPI: fun bitmap = 7f
Continuation of:https://www.snbforums.com/threads/custom-firmware-build-for-r9000.40125/. . .https://www.snbforums.com/threads/c...4-13hf-hw-and-1-0-4...
Hello,Could you please help me with a compile for grive2 file in order to include the changes available on Github, here https://github.com/Entware/rtn...
Hi.I'm now using the AC66_B1 router mainly as a bridge/repeater. The TV, receiver, nas, tv-box ... are connected through the lan ports (fixed IP) and ...

Don't Miss These

  • 1
  • 2
  • 3