Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ensonic opened this issue Mar 14, 2016 · 6 comments

Comments

@ensonic
Copy link

ensonic commented Mar 14, 2016

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.

@sofar
Copy link
Contributor

sofar commented Mar 14, 2016

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.

@ensonic
Copy link
Author

ensonic commented Mar 15, 2016

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.

@sofar
Copy link
Contributor

sofar commented Mar 15, 2016

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

clock_gettime(CLOCK_MONOTONIC, &n);

@dlech
Copy link

dlech commented Mar 15, 2016

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.

@sofar
Copy link
Contributor

sofar commented Apr 5, 2017

395d046 could be related, and fix this issue.

@gk4
Copy link

gk4 commented Jul 21, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants