systemd-bootchart icon indicating copy to clipboard operation
systemd-bootchart copied to clipboard

systemd-bootchart is not generating an image when run from init on a slow system

Open ensonic opened this issue 8 years ago • 6 comments

This is a copy of systemd/systemd#656.

As a summary: I am trying to get a detailed report on a LEGO mindstorms EV3 running debian jessie. The system is quite slow (400MHz Arm9 and 64 Mb memory). The boot is quite busy.

ensonic avatar Mar 14 '16 08:03 ensonic

from your earlier logs I caught this:

Jan 01 04:07:44 ev3dev kernel: Kernel command line: mem=64M console=ttyS1,115200n8 root=/dev/mmcblk0p2 rw rootwait splash init=/lib/systemd/systemd-bootchart
Jul 31 13:40:39 ev3dev systemd-bootchart[603]: Bootchart created: /run/log/bootchart-20150731-1340.svg

Most likely, it doesn't like starting 1-1-1970 and the subsequent time change, even though internally it mostly uses CLOCK_MONOTONIC.

sofar avatar Mar 14 '16 17:03 sofar

Thanks for pointing this out. I can check what can be done on the ev3 kernel (@dlech). In case you have ideas where bootchart is not using the monotonic clock yet, that'd be great too.

ensonic avatar Mar 15 '16 17:03 ensonic

systemd-bootchart is only ever using the CLOCK_MONOTONIC clock, but it may not be reliable on your platform?

https://github.com/systemd/systemd-bootchart/blob/e6c5e467c4b593114a4cefa17ed10afd6def1d6e/src/store.c#L56

sofar avatar Mar 15 '16 17:03 sofar

There are 2 things I have found that might help with the time change.

  1. https://packages.debian.org/jessie/fake-hwclock
  2. RTC_HCTOSYS=n in the kernel configuration

Also turning off NTP or disconnecting from the Internet while booting should keep the time from changing.

dlech avatar Mar 15 '16 21:03 dlech

395d046511c4d08ba7b6ca6b9ec17db6f7c35715 could be related, and fix this issue.

sofar avatar Apr 05 '17 17:04 sofar

I'm using bootchart 2.3.2 and I'm experiencing the same behavior. Are there any workarounds or hints to debug the issue?

gk4 avatar Jul 21 '17 17:07 gk4