Diet Pi run in RAM?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
CJ01
Posts: 29
Joined: Sat Jun 23, 2018 12:40 am

Diet Pi run in RAM?

Post by CJ01 »

I'm new to Diet pi. I have a few (a lot) of wireless Raspberry Pi Zero W security cameras. Currently using RPi WebCam interface distro, Apache server for the web page display. I use Raspian Stretch. I want to go to a lower resource intensive OS.
I heard of Tiny Core and Diet Pi. Does Diet Pi run on RAM as Tiny Core?

What are the pros and cons : DietPi vs. Tiny Core.

Any info would be appreciated.
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: Diet Pi run in RAM?

Post by MichaIng »

@CJ01
Tiny Core and DietPi are hard to compare, as they are totally different concepts:
  • Tiny Core is a completely independent own Linux distribution that really brings not much more than the Linux kernel, busybox which brings a purged down set of usual Linux commands you would expect within the shell, and it's own supporting commands, a bid similar perhaps to the ones DietPi offers (/boot/dietpi/ files). If you check the size of /boot, you see that the Linux kernel itself + bootloader + custom kernel addition and the whole bunch of DietPi scripts does not take much space. All DietPi scripts is about 1.3M. Busybox is ~2M AFAIK. For this Tiny Core is extremely tiny and can run completely inside RAM. DietPi in comparison just runs it's own scripts inside ram disk: /DietPi/. What really takes space is hardware drivers and software blobs that you will find on common Linux systems.
  • DietPi is based on Debian/Raspbian, thus brings the whole (although very purged down to the system minimum) Debian APT and systemd system. Thus you are able to do all core system, networking and software configurations and installation as you expect from a Debian (or Ubuntu) system. Most importantly the official Debian/Raspbian APT repository is used, thus you can install the extremely wide range of software packages from there, which makes DietPi very flexible from the comfortable end user perspective, which just wants to have its forum, sync- and share server, web page or media streaming server etc. at home.
  • On Tiny Core, there is a (compared) very limited own maintained software repository, so you will find the most important things there but clearly you will often run into the situation that a specific software title you expect on Linux systems will be not available and you need to install manually from source code. I somehow can't open the repo browser, but here you get an idea: http://wiki.tinycorelinux.net/wiki:applications. And for sure, as the Linux kernel does not natively support much hardware, e.g. GPU support for SBCs, network dongles, audio and all such needs to be installed manually as well.
  • If you really have a specific use case for your device, and you know that the needed software and hardware drivers are available with Tiny Core, then it is an extremely lightweight and fast. But if you used other Linux distributions before, don't expect it to behave too similar and many stuff surely needs to be applied/installed manually.
CJ01
Posts: 29
Joined: Sat Jun 23, 2018 12:40 am

Re: Diet Pi run in RAM?

Post by CJ01 »

@MichaIng
Thanks so much for the detailed explanation of both. For my current project mentioned I believe I'll use Diet Pi. It seems less space and less overhead than the Raspian lite (headless mode) but will most likely have more default packages installed that I need. Plus I can install only what I need. I was not so much concerned with the actual space on the SD card but the resources being used as I plan to make them solar, charging the batteries during sunlight and run on the batteries at night. I also have found code that will power off the HDMI and USB port saving more power when it's running on batteries. I also plan on using RSYNC instead of OWNCloud /NextCloud or other cloud packages. It's good enough for my needs.

Thanks again.
Post Reply