REQUEST: Optimization for tmpfs-based system #149

Open
opened 2020-06-28 04:21:58 +02:00 by Kreyren · 1 comment
Kreyren commented 2020-06-28 04:21:58 +02:00 (Migrated from github.com)

Describe the feature

Some systems might be using tmpfs for / which requires additional configuration of the system

namely:

  • the kernel has to be compiled with initrc support
  • init needs to support toram option
  • The system has to have sufficient amount of tmpfs

Why would anyone want to do this?

  • Mostly tmpfs takes less power
  • tmpfs is usually much faster compared to HDD and SSD (could be even 100x faster)
  • On portable systems the tmpfs configuration might make the system much smaller allowing for more features alike bigger battery
  • Some RAM sticks are cheaper then HDD/SSD

Disadvantage

If your system loses power while being configured to run on tmpfs then you will lose ALL YOUR DATA, because tmpfs are not made to store memory without power

  • Note: Some systems might be configured to provide power to RAM even when it halts or turns off.

Expected behavior

Making zernit to run as small as possible from an SD card and create the system only from it's configuration directory to keep the size as small as possible.

The configuration directory should be mounted with persistance in case the end-user wants to do permanent changes to the system.

Vision

less then 10Mb/s file on SD card capable of booting the whole system anywhere.

Additional context

Debian has a live CD that does a decent job with this

### Describe the feature <!-- Give us a **short** summary of your proposed feature --> Some systems might be using tmpfs for `/` which requires additional configuration of the system namely: - the kernel has to be compiled with initrc support - init needs to support `toram` option - The system has to have sufficient amount of tmpfs ### Why would anyone want to do this? - Mostly tmpfs takes less power - tmpfs is usually much faster compared to HDD and SSD (could be even 100x faster) - On portable systems the tmpfs configuration might make the system much smaller allowing for more features alike bigger battery - Some RAM sticks are cheaper then HDD/SSD ### Disadvantage If your system loses power while being configured to run on tmpfs then you will lose **ALL YOUR DATA**, because tmpfs are not made to store memory without power - Note: Some systems might be configured to provide power to RAM even when it halts or turns off. ### Expected behavior <!-- What do you expect to happend instead of current behavior? --> Making zernit to run as small as possible from an SD card and create the system only from it's configuration directory to keep the size as small as possible. The configuration directory should be mounted with persistance in case the end-user wants to do permanent changes to the system. ### Vision less then 10Mb/s file on SD card capable of booting the whole system anywhere. ### Additional context <!-- Add any other context about the issue here --> Debian has a live CD that does a decent job with this
issue-label-bot[bot] commented 2020-06-28 04:22:00 +02:00 (Migrated from github.com)

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.96. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Issue-Label Bot is automatically applying the label `feature_request` to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/RXT0112/Zernit) and [code](https://github.com/hamelsmu/MLapp) for this bot.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kreyren/Zernit#149