7 ms·
This may be a stupid question, but is there an actual use case for building clusters of raspberry pi's?
by elcapitan 9y ago
This may be a stupid question, but is there an actual use case for building clusters of raspberry pi's?
- zeta0134 9y agoPart of me wants to believe that a solar powered raspberry pi cluster has a legitimate use case. The things use like ~1W of power, so the board itself is surprisingly efficient compared to a "real" server. But really, I think the primary use case is cost. Actually having access to that many physical machines to play with in a classroom or home learning environment is sort of new! The market hasn't really had such accessible linux computers at "Ehh, if it breaks I'll just buy a new one, no big deal" prices. It's educational, and the more stable the ARM support is, the better a student's skills will transfer over into the real world of systems administration.
- creshal 9y ago> The things use like ~1W of power, so the board itself is surprisingly efficient compared to a "real" server. Try 3.5 watts[1], not counting overhead of most USB power bricks being incredibly inefficient. A current-gen 35W laptop CPU will be some 10 times faster[2] as a RasPi, have much faster storage available (SATA3 or NVMe versus… USB2), much faster I/O (GBit LAN and GBit Wifi versus… USB2), and a lot of other benefits. (Like an integrated screen and battery and keyboard and …) It also won't need external hardware to communicate with other cluster members – that 10-port ethernet switch will need power, too. One RasPi is relatively energy efficient; RasPi clusters… not so much. > But really, I think the primary use case is cost. Indeed. [1] http://raspi.tv/2016/how-much-power-does-raspberry-pi3b-use-how-fast-is-it-compared-to-pi2b http://raspi.tv/2016/how-much-power-does-raspberry-pi3b-use-... , see the numbers for "Multi-threaded CPU Tests", which is the most applicable for server workloads [2] Running that script manages ~9 runs/second on an i7-6700HQ, vs. ~0.9 run/second on a RPi3.
- marmaduke 9y agoIf you had ten of them, ideally you'd use a USB power supply where that overhead is a much lower percentage.
- marmaduke 9y ago6700HQ is 45 W TDP?
- jtuente 9y agoThere are 35W configurations http://ark.intel.com/products/88967/Intel-Core-i7-6700HQ-Processor-6M-Cache-up-to-3_50-GHz http://ark.intel.com/products/88967/Intel-Core-i7-6700HQ-Pro...
- wulfklaue 9y ago/Looks at price... Gets you 11 Pi's ... Gets you only 1 Intel CPU, no memory, motherboard, heatsink, fans. Reminds me of the Celeron® Processor J3455... 10W rating on Intel there page. On AVERAGE! Then when you see the real power usage under load for MB + CPU + 16GB memory, its actually doing 35W. Where as the Pi's are doing 3.7W max per piece. So even with 4 pieces to match the performance, your still half the wattage. If Intel really scaled that good in power vs performance, why are we not seeing x86 phones all the time?
- omgwtfbyobbq 9y agoYou can probably shave off another .2W by disabling the HDMI and LEDs, but an RPi3 at load will probably be at 4+W from the wall. At the same time, you're comparing the power consumption of lets say 10 whole RPis/platforms to the consumption of a single processor. Stick that processor in a platform (laptop), and it's going to use much more than 40W. Like you said, you get a lot more with the laptop, but given your benchmark (10x difference), my guess is that 10x RPis would still be more power efficient than a laptop with a 6700HQ at that specific task.
- ineedasername 9y agoThey're using Pi Zero's in this post, which draw much less than others, between 0.4W and 1.0W, probably safe to assume 0.7W as an average load [1] And at $5 each, if we're talking hardware costs for setting up a "toy" cluster for, say, self-learning or student labs, that's hard to beat. I suppose you could do better using VMs for a virtual cluster, but that adds other complications unrelated to the clustering task. But I agree there doesn't otherwise seem to be much practical purpose here, and the overhead of running an OS on each Pi really cuts into performance compared to a single chip w/ multicores instead. [1] https://www.jeffgeerling.com/blogs/jeff-geerling/raspberry-pi-zero-power https://www.jeffgeerling.com/blogs/jeff-geerling/raspberry-p...
- deelowe 9y agoIf you do a TCO calc against TDP and performance, you'll find that a cluster of RPIs is lower TCO than a more traditional low power intel solution.
- deelowe 9y agoThat should be higher tco...
- deleted 9y ago[deleted]
- gkya 9y agoLearning how to work with computer clusters is an actual use case I believe.
- snarfy 9y agoIf you used the gpu maybe, but in reality you are better off using a modern intel or amd cpu. Not only do they have much better performance, but they even have better performance per watt.
- vorpalhex 9y agoIt's a cheap way to play with clusters while still using pretty common hardware and operating system choices. In addition the pi is small, the hardware is pretty simple and available, and it has enough flexibility for any basic project. In terms of any performance benefit? No.
- marmaduke 9y agoIs that very different from run a dozen containers on a single machine?
- tyingq 9y agoProbably better models bandwidth constraints, being able to simulate network splits easily, etc.
- vorpalhex 9y agoContainers come with their own set of expectations, needs, requirements and problems. They can be a useful tool but I suspect the cluster of Pis is a much more accurate model for multi-computer modeling.
- iuguy 9y agoI have a Clusterhat[1] and a Pi Zero cluster in an MPI (Beowulf) configuration. It's the 3rd beowulf cluster I've ever built, the 2nd being from recycled PowerMacs and the 1st being built with Pentium IIs. It's the most powerful Beowulf I've ever built. It's also the smallest. It fits in my hand and it runs off USB. Now you know what it is, I'll tell you about what I use it for. The first problem I used it for was to approximate 1 billion digits of Pi. I started with Monte Carlo methods, but while they scale well they're non-optimal. Eventually I managed to implement a Chudnovsky-type algorithm that worked despite the limitations of the Pi 3 head node and Pi zero nodes. Most recently I wrote code to explore the Mandelbrot set. Using some custom software I knocked up, I set a start and finish x,y,z,w and h coordinate set and it renders individual frames which are then stitched together with ffmpeg. I need to rebuild the cluster because I made some booboos with how it was set up, and there's been substantial advances in the HAT configuration. I'm thinking of doing it over christmas. What I've found works best are: * Learning about problems * Learning about scaling problems * Learning about scaling problems with solution constraints * Learning about scaling problems with solution constratints over a very long period of time. As long as you're not in a rush to finish calculations and don't mind picking something up, pecking at it and coming back later (like say, a week or so) the Pi is mostly fine. Although ISTR my final Pi approximation was in the order of minutes to run to a million digits. I know other people host sites, I just like doing basic maths problems to improve my maths and algorithms knowledge. [1] - https://clusterhat.com/ https://clusterhat.com/