bootchart icon indicating copy to clipboard operation
bootchart copied to clipboard

Does not work with LXC

Open CameronNemo opened this issue 9 years ago • 3 comments

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).

CameronNemo avatar May 27 '15 08:05 CameronNemo

Hi, thanks for reporting! Am not sure there's much to profile on a container boot, what's the use case?

xrmx avatar May 27 '15 10:05 xrmx

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.

CameronNemo avatar May 31 '15 17:05 CameronNemo

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.

fabled avatar Oct 09 '15 12:10 fabled