Code Monkey home page Code Monkey logo

Comments (9)

ranch-verdin avatar ranch-verdin commented on August 21, 2024

maybe systemd-analyze blame will come in handy

from norns-image.

ranch-verdin avatar ranch-verdin commented on August 21, 2024

here are the outputs from systemd-analyze & systemd-analyze blame

pi@norns:~$ sudo systemd-analyze
Startup finished in 3.055s (kernel) + 1min 31.100s (userspace) = 1min 34.156s

output from systemd-analyze blame:

     8.837s rc-local.service
          3.348s dev-mmcblk0p2.device
          1.356s cairotest.service
          1.165s nginx.service
          1.079s keyboard-setup.service
          1.008s dphys-swapfile.service
           760ms raspi-config.service
           641ms systemd-udev-trigger.service
           614ms plymouth-start.service
           549ms ssh.service
           490ms systemd-timesyncd.service
           416ms rsyslog.service
           397ms systemd-fsck@dev-disk-by\x2dpartuuid-adeaab52\x2d01.service
           395ms triggerhappy.service
           296ms systemd-logind.service
           280ms systemd-fsck-root.service
           264ms systemd-journald.service
           248ms systemd-remount-fs.service
           224ms avahi-daemon.service
           221ms networking.service
           180ms systemd-udevd.service
           175ms sys-kernel-debug.mount
           170ms alsa-restore.service
           167ms screentest.service
           159ms systemd-tmpfiles-setup-dev.service
           143ms dev-mqueue.mount
           129ms kmod-static-nodes.service
           124ms fake-hwclock.service
           122ms systemd-tmpfiles-clean.service
           122ms systemd-tmpfiles-setup.service
           122ms systemd-modules-load.service
           122ms nfs-config.service
           121ms systemd-rfkill.service
           118ms console-setup.service
           111ms [email protected]
           109ms plymouth-read-write.service
            77ms systemd-sysctl.service
            70ms systemd-update-utmp.service
            66ms boot.mount
            64ms systemd-update-utmp-runlevel.service
            64ms systemd-journal-flush.service
            58ms plymouth-quit.service
            57ms systemd-user-sessions.service
            52ms plymouth-quit-wait.service
            47ms run-rpc_pipefs.mount
            40ms systemd-random-seed.service
            28ms sys-kernel-config.mount
            17ms dhcpcd.service

from norns-image.

tehn avatar tehn commented on August 21, 2024

from norns-image.

ranch-verdin avatar ranch-verdin commented on August 21, 2024

Just flashed a clean raspbian_lite stretch image, then:

sudo systemctl disable dhcpcd
sudo systemctl disable avahi-daemon.service
sudo systemctl disable networking.service
sudo systemctl disable raspi-config.service
sudo systemctl disable triggerhappy.service
sudo systemctl disable plymouth-start
sudo systemctl disable plymouth-start.service
sudo systemctl disable plymouth-read-write.service
sudo systemctl disable plymouth-quit-wait.service
sudo systemctl disable plymouth-quit.service
sudo systemctl disable rc.local.service

total boot time = 16s (seems pretty repeatable). As with the supplied norns image, there's a stuck systemd job which confuses systemd-analyze for 90s after boot.

from norns-image.

ranch-verdin avatar ranch-verdin commented on August 21, 2024

with arch linux http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz:

systemctl disable sshd
systemd disable systemd-networkd.service 
systemctl disable systemd-timesyncd.service
systemctl disable systemd-modules-load.service
systemctl disable tmp.mount

total boot time = 16s

and the output of systemd-analyze makes more sense than on raspbian:


[root@alarmpi ~]# systemd-analyze
Startup finished in 6.853s (kernel) + 2.625s (userspace) = 9.478s
graphical.target reached after 2.624s in userspace
[root@alarmpi ~]# systemd-analyze blame
          1.063s lvm2-monitor.service
           929ms dev-mmcblk0p2.device
           369ms systemd-resolved.service
           252ms systemd-journal-flush.service
           199ms [email protected]
           194ms systemd-udev-trigger.service
           181ms systemd-logind.service
           134ms systemd-remount-fs.service
           132ms systemd-tmpfiles-setup-dev.service
           128ms systemd-user-sessions.service
           122ms sys-kernel-debug.mount
           120ms systemd-modules-load.service
           116ms ldconfig.service
           108ms systemd-sysusers.service
           108ms systemd-journald.service
           104ms kmod-static-nodes.service
            80ms tmp.mount
            78ms systemd-journal-catalog-update.service
            70ms systemd-update-utmp.service
            65ms systemd-sysctl.service
            63ms systemd-udevd.service
            58ms systemd-tmpfiles-setup.service
            55ms dev-mqueue.mount
            39ms systemd-random-seed.service
            32ms systemd-update-done.service
            31ms sys-kernel-config.mount
            13ms boot.mount

from norns-image.

ranch-verdin avatar ranch-verdin commented on August 21, 2024

buildroot's default build for rpi3 boots the norns in 7 seconds into a minimalist linux system, woot!

steps:

git clone git://git.buildroot.net/buildroot
cd buildroot
make raspberrypi3_defconfig

## I skipped this stage
# make menuconfig 

make

several hours & 5.5Gb later a linux distro pops out - magic!

On the device I did:

mv /etc/init.d/s40network /etc/init.d/disable.s40network

from norns-image.

tehn avatar tehn commented on August 21, 2024

holy smokes!!! 5.5gb though?

from norns-image.

ranch-verdin avatar ranch-verdin commented on August 21, 2024

yes, that's not a typo!

the image is 93Mb (http://rickvenn.com/sdcard.img), 5.5Gb is all the cruft buildroot has to download in order to cross-compile a whole linux system

output/images [master] ยป sha1sum sdcard.img 
88dd267cf6b4af2abb5591a8b1fac133451996f0  sdcard.img

from norns-image.

tehn avatar tehn commented on August 21, 2024

sub-goal of #22

from norns-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.