bootchart
bootchart copied to clipboard
Does not work with LXC
It gives this error:
/sbin/bootchartd: line 170: /lib/bootchart/tmpfs/kmsg: Operation not permitted
Then /sbin/bootchartd stop
gives "Can't extract boot chart from collector" (fails on the collector dump).
Hi, thanks for reporting! Am not sure there's much to profile on a container boot, what's the use case?
I wanted to optimize how the system boots without complications like mounting of hard drives or bringing up physical devices distracting the data.
In the container I just see things that I can control.
ptrace is probably not allowed inside the container. It maybe possible to enable this system capability on per-lxc basis in configuration. However, it would be better if bootchartd used unix socket (with abstract name, so it works after switch_root too) to dump state between the two processes. This would enable bootchartd to work on hardened linux kernels where ptrace is disabled in kernel config.