6 ms·
There's a huge difference between an ESP32 and a RPi5 (even w/2GB of ram). If you're using it for some specific appliance that needs a decent CPU, USB, Video ou
by tiagod 2y ago
There's a huge difference between an ESP32 and a RPi5 (even w/2GB of ram). If you're using it for some specific appliance that needs a decent CPU, USB, Video output etc, but only requires 2GB of RAM, I don't see why you would pay the extra $30.
- metadat 2y agoI just really like ram, fomo, don't want to run out. You're already spending $50 + tax, $80 for 4x more ram is a bargain. I grew up on machines chronically starved, think 16MB for Mac system 5-7, and 32MB for win98 :) (which leaked like a mofo, reboot required every 20 minutes.)
- tjoff 2y agoOver 60% extra... It's only a bargain if you need it. For a general purpose computer I'm with you, but the Pi5 often isn't used as a general purpose computer so if you know the software isn't going to be using it then it is pure waste.
- alias_neo 2y agoYou're absolutely right. I'd say for a specific application, I'd guesstimate you probably want it to be using something like 80% of the RAM when it's running full-tilt, maybe you'd want some headroom for upgrades. Pi's aren't a great value for general purpose computing when cube-PCs will get you orders of magnitude more power and functionality for 2-4x the price, and people often neglect to factor in the price of a case, PSU, storage which stack up the cost rapidly. Every generation I grab a couple of the latest model-B and run a few quick desktop tests to see where they're at subjectively (no benchmarks, just boot it up and "use" it) and Pi 5 is still orders of lower than what I expect from a computer. Put them to work in a specific application and their reliability and great ubiquity shine; I have a couple of Pis in 3D printers, one powering a touch-screen dashboard, a couple in my server rack for Hashicorp Vault, Unifi Server, ARM build server, a half a dozen or so in home-made speaker/TTS devices, a couple in retro gaming-handhelds, one in a dedicated WiFi AP for MiTM/testing/traffic-inspection, and one with a NVMe HAT running a file-server for low-power network storage. Each Pi serves a purpose, and I've allocated a device a specific model based on its requirements; a couple of them are probably over-powered just due to having a specific Pi spare, but I try to shuffle them around to be using the weakest/cheapest Pi available that suits the purpose.
- nottorp 2y ago> and their reliability ... don't forget to add more cooling for that reliability
- alias_neo 2y agoYes definitely. In my experience I've only ever had to cool models from the Pi4 upwards. Of course the number of them I'm running is small, so it's anecdotal, but over years since the launch of the first Pi (which I still have), they're all still chugging along, with all but the Pi4s and Pi5s completely un-cooled (no heatsinks or fans).
- nottorp 2y agoI'm sort of whining a bit. I'd like it if they still kept a weaker Pi that doesn't require cooling in production. Not the Zeros though, full featured ones.
- fanf2 2y agoYou can still buy a Raspberry Pi 3. The more recent models can run without cooling; they will throttle if necessary.
- nottorp 2y agoDo they still manufacture it? Or is it old stock? Or is the A+ the new Raspberry PI 3? It seems to have a different form factor though. I don't see 3 Bs in stock in my usual places. 4s and 5s are plenty though.
- Marsymars 2y ago> Pi's aren't a great value for general purpose computing when cube-PCs will get you orders of magnitude more power and functionality for 2-4x the price Eh, not orders of magnitude more. An RP5 is like 25% of the speed of an Apple M3.
- rwalle 2y agoI would guess most consumer purchases of pi's are setting in a drawer gathering dust. So less RAM is less of a waste of money. (Don't ask how I know it)
- smilespray 2y agoI remember rebooting my Mac every time I went for coffee. Prevenative maintenance...
- TeMPOraL 2y agoRAM FOMO is a real thing indeed. Switching from Windows to Linux is how I caught it; suddenly, having not enough RAM was no longer a minor annoyance, but a critical problem preventing use of the machine.
- moooo99 2y agoFor me the experience was quite different. On windows I was constantly out of RAM for some reason, windows idling was already chewing through 6 GBs and didn’t seem to free a lot when memory pressure increased. On Linux I barely run into RAM issues anymore since everything seems to run more efficiently
- kalleboo 2y agoI've always wondered, has there never been an effort to add to Linux a dynamic swap file like Windows and macOS ("X") have always had?
- theblazehen 2y agoYes, I've used systemd-swap https://github.com/nefelim4ag/systemd-swap https://github.com/nefelim4ag/systemd-swap
- vbezhenar 2y agoShould be trivial with simple cron script? Just check swap usage once a minute and create/delete /swapfile-N as necessary.
- dspillett 2y agoThe problem with expanding page files is that by the time you really need them (they are expanding a lot) you might be past the point of no return where just hitting the power button is your best option. Once you are using a lot of paging, chances are performance has fallen through the floor to the point where doing anything to fix it (killing run-away processes, closing other processes (killing those that won't go willingly)) takes so long that you are fighting a losing battle. This is less of an issue with fast SD drives than it is with spinning rust (or slow SD cards / eMMC with some smaller devices) but still essentially the case. I just have enough swap defined for some small unusual circumstances and assume that if I need more than that things are falling over anyway so OOM taking things our is not going to make it worse (if they continued to thrash I'd have to kill them anyway).
- lmpdev 2y agoIs there a decent middle ground that isn’t some obscure STM or PIC chip?
- spiritplumber 2y agoThe Parallax Propeller 2. It's pretty easy to code for, has plenty of horsepower, and it's very robust electrically. I use it as standard for most of my autonomous stuff.
- daemonologist 2y agoProbably the Raspberry Pi Zero ($10, and Zero 2W - $15). The latter has 512MB RAM, quad core A53. There might be more powerful microcontrollers as well but as you say they're probably more obscure (and expensive).
- throwaway81523 2y agoRaspberry Pi Pico? Particularly the new Pico 2. Wireless version not out yet though.
- sameeee 2y agoOrange PI Zero 3 is my choice. £30 on Ali express for the 2GB model with case and fan. I got one last week. Only issue is, the distro they promote is a bit dodgy.
- H8crilA 2y agoHere's the protocol I use: for any new project first use the 8GB version. Let it settle for a while, then check what do I actually need, and swap the board for a cheaper one. Minimizing the specs makes sense it you have many RPis running a variety of projects. If you just have 1 board that is a catch-all device for your small projects/services then by all means go wild. But then I'd actually recommend an x86 NUC (if GPIO is not needed). You can buy a new or even better a used one very cheaply.
- hhh 2y agoWe have 2000 rpis and still choose the 8gb every day. Way easier to deal with.
- sgu999 2y agoOut of curiosity, what are you doing with these?
- sshine 2y agoAs someone who has worked with dozens: I worked with high-power EV chargers. Each system had 4 RPi 4s. (Some due to 3rd-party hardware, some powering touch displays). The main system started out with 4GB, but 8GB was more convenient for developing. The systems generated a massive amount of metrics that got buffered in memory. 8GB memory is convenient when your only alternatives are SD-card and EEPROM.
- rwalle 2y agoSounds like this is a use case where none of size, power & cost matters very much, and faster development is desired. It may even prefer "heavier" libraries if it makes development easier. Which is completely different from most consumer devices and many commercial devices. Well, if that's true, have to agree raspberry pi may be better than esp32.
- hhh 2y agorunning an electron app (and the x server and more) in a container
- spiritplumber 2y agoThe Propeller 2 sits nicely between the two. I use it for autopilot things. The only bad thing is that it doesn't have integrated wifi, so it wants an esp8266 or similar to talk to.
- HeyLaughingBoy 2y agoTime! If someone's paying me to build something and spending that $30 saves me a day, I'm doing it.
- tiagod 2y agoOf course. I meant that once you have your product working, if you see 2GB is more than enough you can save a bunch of money in production without spending much or any extra time. Moving your product to an MCU, even when it would support it well (which is not the case for a lot of RPi uses) will usually be a lengthy endeavor. But it's just HN being HN, I guess.
- HeyLaughingBoy 2y agoLike everything else, it depends. Here's an example. A few years ago I was contracted to build a device that would input some data, do real time signal processing, and output the data in a different format. The quickest and probably cheapest way to get it done was to use a $15 analog chip to do the bulk of the processing. I based that board on an Arduino Nano (clone, of course!). A year or two later, much faster microcontrollers like ESP32 had arduino support and were trivial to use. A single ESP32 would probably have replaced most of the other components on my board, reduced inventory required, reduced power consumption and a host of other benefits. But I never bothered because there was no economic pressure to do so. I was selling a $300 device to a single customer who didn't care about the price, and I had better things to do with my time than redesign a board that worked perfectly. TBH, if I wanted to, I could probably have increased the price of the current board by the same amount that redesigning with an ESP32 would have gained me. This is one reason I avoid consumer products like the plague. I'd rather work with people to whom there's no effective difference in cost between $300 hardware and $700 hardware because the benefit to them far exceeds what I'm charging. I guess I'm agreeing with you :-)