3 ms·
The problem I found with using RaspberryPi as a server for anything, is that it kills SD cards within a few months. And I've tried with some super expensive Ult
by gambiting 11y ago
The problem I found with using RaspberryPi as a server for anything, is that it kills SD cards within a few months. And I've tried with some super expensive Ultra/Extreme cards as well, they all die in 3-4 months of running a web server off it.
- colinramsay 11y agoHave you tried using the SD card as just a pure boot device and running everything else from a USB-attached drive?
- gambiting 11y agoYep, but USB and Ethernet are on the same bus so it slows down both significantly.
- mvip 11y agoThis is a very valid point. We've encountered a lot of issues around this when developing Screenly (https://www.screenlyapp.com https://www.screenlyapp.com). Firstly, do careful due diligence on the SD cards (quality between different vendors/models varies a lot). Secondly, make sure to move all directories with frequent writes (such as /var/log) to ramdisk. This will increase the life span by a lot.
- fookyong 11y agoas someone who might be using the Pi in a somewhat high-availability environment pretty soon, this frightens me! What do you think is the main variable here - SD card quality? amount of I/O? or is it simply that the Pi is not meant for high availability? If the answer leans to the latter, what other choices are there? My goals is to find a small computer (very small) that has reliable uptime and can do 1080p video.
- gambiting 11y agoActual SSDs have multiple memory chips in them, and not only they spread writes between them, they do actual wear leveling, so once certain cells become unwritable they are marked as such and the controller starts using cells from the reserved area(which can be few or even several gigabytes on larger drives). SD cards on the other hand have only one chip, and although they have a controller that monitors the wear level, they have an extremely limited number of spare cells, so it's very easy to kill an SD card by repeatedly writing to the same address. As others have mentioned - you could solve this by serving the content from a USB drive, but because Ethernet and USB share a bus, you will essentially halve the speed of each, which is not ideal. If you have the money to spend, I would recommend a different board, but with a dedicated SATA port, so you can use an actual SSD or a regular hard drive for serving content. So....TK1? https://developer.nvidia.com/jetson-tk1 https://developer.nvidia.com/jetson-tk1
- jononor 11y agoSome friends working with installations have said that power outtages kills SD cards very quickly with RPi, and that changing to a BeagleBone Black improved things. Another alternative is https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME-4GB/open-source-hardware https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-...
- rasz_pl 11y agonoatime + logs into ramdisk with periodic flushes, or log into network share