Improve Raspberry Pi performance with USB stick

As you know I’ve been testing the boundaries of the basic hardware that makes up the Raspberry Pi. In my recent post I overclocked my Pi to 1GHz with some great results. Although under┬ámathematical┬ábench marks a considerable power gain was noted, I felt this didn’t make a huge improvement to the overall speed of the RPi as a web server.

Also running Raspbian off an SD card did start to highlight the flaws in having an OS operate from one; mine became corrupt and this site went offline as a result, bad times. I’m guessing it’s down to the many movements of small data. It didn’t take long for MySQL databases to start corrupting, then the system stopped log entries, and stopped booting altogether. My immediate thought was that maybe the overclocking had caused poor writes and instability.

Cutting a long story short (and if you’ve read this far well done) I moved the OS partition to a USB stick, and left only the boot instruction on the SD card. It’s a simple process and I’ll write up a short tutorial when I’ve got some more time! I’ve finally written the tutorial – read it here! The long and short is, stability improved, and the RPi is a hell of a lot quicker for it!

I’m disabling caching for the weekend to see how the RPi handles the 30 odd visit the site gets a day, let me know by leaving a comment your experience of the speed of the site overall.

10 thoughts on “Improve Raspberry Pi performance with USB stick

  1. Hey, it loads really fast – I’m amazed that this is running on a RaspberryPI!

    Please do write that tutorial though – I would love to try it out – Thanks!

    /Jesper

    1. Hi Jesper!

      I’m working on this tutorial at the moment, so it won’t be too long now! I’ve found the Sandisk flash drives to be pretty good, although after doing a bit of research Corsair ones have fast write and access speeds too. Get one ready for the tutorial! I really think the guys over at the Raspberry Pi foundation should make a hardware change and allow booting from USB.

    1. Hi Thomas, i’ve found it to be OK with the right USB flash drive, I tested a couple of unbranded ones which were shockingly slow and unreliable, but the sandisk I tried, followed by the Corsair Voyager GT was extremely quick and reliable. Its a USB 3 stick but works fine on a 2.0 port

    1. It’s been neglected, but it will be live this weekend! Had so many people asking about this, so I really need to get my arse into gear and get it done!

  2. Saw this post and tried it with the same Corsair USB stick… Major performance improvement. Before I used the recommende Sandisk Class4 SD card. Is now only used for booting.
    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>