OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Testing : Minirc And Busybox, A lean alternative to systemd
greguu
post Nov 6 2016, 11:09 PM
Post #1





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



Hi all,

some may have already noticed that the current systemd on ArchLinuxARM uses a lot of the available 64MB RAM.
This thread is about testing and implementing minirc and busybox to replace most of systemd.

Note :
- systemd will be still required for systemd-udev at this stage.
- Keep in mind that moving away from systemd may bring some changes for users that are not familiar with a "traditional" init system.
- The following steps are just a brief guide and may not work if you have a customized setup.
- You will find more information on this topic using the ArchLinux Wiki : https://wiki.archlinux.org/index.php/Minirc
- Stick with the systemd setup on the current rootfs if you do not have a reason to change!
- A new rootfs without systemd or partly used systemd will be released at a later stage after more testing.
- If you like to help testing, take it a step further and compile eudev or test using mdev from busybox !


CODE
1. Boot to a new rootfs installation on a SD or CF card.
2. Make sure you have a backup if you choose to install minirc and busybox on you current system !
3. On a fresh rootfs or your current setup with network access do the following steps :
    3.1 Log on as root and set up your network
    3.2 pacman -Syu
    3.3 pacman -S busybox syslog-ng crond
    3.4 copy/download the attached file (minirc-git) to a SD or CF card
    3.5 install it using "pacman -U minirc-git-rest-of-filename.tar.xz"
    3.6 agree to remove systemd-syscompat package
    3.7 edit /etc/minirc.conf (eg: nano /etc/minirc.conf)
    3.8 uncomment UDEV="systemd" (minirc.conf)
    3.9 save and reboot using "systemctl reboot"
4. Boot back into ArchLinuxARM and you may notice quite a bit more free RAM and a very quick boot up process.
5. Continue your initial setup (alsa, other packages etc). X11 may not work with this setup as dbus may rely on systemd. Testing and feedback welcome.
6. Keep in mind that from now on many instructions in ArchLinux guides will not apply as they refer to a systemd setup.
7. You are on you own now. Feel free to ask here but have a look at the ArchLinux forums first if you have issues as this is not a Zaurus specific topic.


Cheers!
Attached File(s)
Attached File  minirc_git_127.128a23f_1_any.pkg.tar.xz ( 9.45K ) Number of downloads: 110
 
Go to the top of the page
 
+Quote Post
greguu
post Nov 11 2016, 09:07 PM
Post #2





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



Just some memory usage observations using minirc vs systemd :

- minirc, busybox, systemd-udev, dhcpd and sshd ~ 12M used

- minirc, busybox, mdev, dhcpd, sshd ~8M used

- systemd, journald (Storage=none), dropbear ~ 16M used

- systemd, ssh (ArchLinuxARM default) ~20M used
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
4 User(s) are reading this topic (4 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 8th December 2019 - 05:57 PM