Comments (9)
maybe systemd-analyze blame
will come in handy
from norns-image.
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.
from norns-image.
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.
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.
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.
holy smokes!!! 5.5gb though?
from norns-image.
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.
sub-goal of #22
from norns-image.
Related Issues (20)
- GPIO Pins incorrect? HOT 4
- Kernel download url comes back AccessDenied HOT 2
- build instructions for raspberry pi 3 HOT 13
- Using other DAC's outputs on Raspberry Pi HOT 4
- norns.catfact.net offline HOT 3
- service switch to scsynth? HOT 1
- Wifi (Realtek 8192cu) issues HOT 18
- CM3+ temperature measurement not working HOT 5
- IP address not shown in "stats" menu
- Determine how to install/update raspberry firmware files HOT 4
- Ensure JACK uses the monome-snd soundcard even when USB devices are plugged in HOT 1
- broken display & controls on 200424 HOT 2
- battery monitor driver may be misconfigured
- ~/norns-image contains local changes in 220306 release image HOT 1
- daemon.log fills up with xrun log lines HOT 7
- Opportunity to save image space: remove non-English locales from /usr/share
- daemon.log shouldn't log OSC modulation HOT 3
- On RPi 4, current udev makes Matron unable to discover Grids HOT 2
- daemon.log shouldn't be filling up HOT 5
- Pre-211028 Raspi 3 updated to 231114 does not display anything. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from norns-image.