AnsweredAssumed Answered

How to reduce boot/systemd time?

Question asked by ming liao on Apr 24, 2019
Latest reply on Jun 14, 2019 by ming liao

Hi,

I want to reduce boot time in i.mx8M mini,i find systemd consume more time,i use yocto to build my image,is there any way to disable systemd-xxx.service in image rather than in runtime?

 

 

root@imx8mmevk:~# systemd-analyze
Startup finished in 1.852s (kernel) + 3.861s (userspace) = 5.714s
multi-user.target reached after 3.657s in userspace

 

root@imx8mmevk:~# systemd-analyze blame

2.814s dev-mmcblk2p2.device
1.006s systemd-networkd.service
1.004s psplash-start.service
893ms systemd-hwdb-update.service
478ms klogd.service
384ms systemd-user-sessions.service
379ms rc-local.service
368ms systemd-vconsole-setup.service
368ms kmod-static-nodes.service
351ms systemd-udev-trigger.service
348ms ldconfig.service
337ms dev-hugepages.mount
337ms connman.service
334ms ofono.service
302ms sys-kernel-debug.mount
292ms systemd-modules-load.service
267ms tmp.mount
258ms systemd-logind.service
250ms dev-mqueue.mount
207ms rpcbind.service
192ms systemd-timesyncd.service
188ms dev-mmcblk2p1.device
164ms systemd-journal-flush.service
128ms systemd-remount-fs.service
125ms avahi-daemon.service
110ms psplash-quit.service
108ms syslogd.service
107ms ntpdate.service

Outcomes