xrmx / bootchart

merge of bootchart-collector and pybootchartgui
GNU General Public License v2.0
233 stars 87 forks source link

Does not work with LXC #64

Open CameronNemo opened 9 years ago

CameronNemo commented 9 years ago

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

xrmx commented 9 years ago

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

CameronNemo commented 9 years ago

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.

fabled commented 8 years ago

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.