You are not logged in.

#1 2007-08-18 10:58:10

hudson
Member
Registered: 2004-07-06
Posts: 78

bootchartd error

Hi,

I have installed bootchart and added the line init=/sbin/bootchartd at the end of the kernel line in grub. When I reboot I get the following error:

/sbin/bootchartd: line 69: cannot redirect standart input from /dev/null no such file or directory

I have checked /var/log for bootchart but it is not there, so what do I do wrong?

Last edited by hudson (2007-08-19 11:56:40)

Offline

#2 2007-08-19 11:57:23

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: bootchartd error

Anyone got an idea?

Offline

#3 2007-08-19 12:15:40

1311219
Member
From: Sweden
Registered: 2007-01-09
Posts: 121

Re: bootchartd error

I think I've experienced that error to, but it didn't affect the result of bootchart for me.
Do you get a kernel panic? if not, and the system starts like it should, then (hopefully) all you need to do is to run bootchart-render which will give you an image in you working directory.

Offline

#4 2007-08-19 20:29:06

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: bootchartd error

I get that one during the module loading part, but it doesn't seem to make a difference, everything starts just fine.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#5 2007-08-20 18:35:29

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: bootchartd error

Well, after the boot-up part I run bootchart-render and it say that it can not find any file. So, I check my processes and I find several of bootchartd's are running for some reason. It also made me start thinking, maybut bootchartd don't know when to stop..since I'm using xdm as a display manager...hmm..:/

Last edited by hudson (2007-08-20 18:36:34)

Offline

#6 2007-08-20 20:03:40

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: bootchartd error

Odd, it works just fine here even though I get that error (which is probably just redirecting some output), both the OS and bootchart-render.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#7 2007-08-21 07:25:49

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: bootchartd error

I will do some reading on bootchart since I think it does'nt know when to stop..

Offline

#8 2007-08-21 07:36:56

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: bootchartd error

I found this in http://www.bootchart.org/docs.html

The logger will try to detect the end of the boot process by looking for specific processes. 
For example, when in runlevel 5 (multi-user graphical mode), it will look for gdmgreeter, kdm_greet, etc. 
As soon as one of these processes is found running, the logger will stop collecting data, package the log files 
and store them to /var/log/bootchart.tgz.

Which agree with my assumtion that it might not know when to stop if xdm is used.

I also found this which might be useful

Alternative init processes
--------------------------

Alternative init processes (e.g. initng) may be specified using the
bootchart_init kernel command line option, e.g.:

  init=/sbin/bootchartd bootchart_init=/sbin/initng

In this case, bootchartd will execute /sbin/initng instead of the default
/sbin/init.

I will also try to get a profile of the system in general, by running

     $ /sbin/bootchartd start; sleep 5; /sbin/bootchartd stop

Last edited by hudson (2007-08-21 07:37:46)

Offline

#9 2007-08-22 17:51:48

hudson
Member
Registered: 2004-07-06
Posts: 78

Re: bootchartd error

okey, my tought were not correct...it still dont work, maybe if I would be able to change the order at boot up would make a difference...

Offline

#10 2008-02-20 11:12:42

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: bootchartd error

When installing bootchart it says:
Bootchart usage :
  make sure to append init=/sbin/bootchartd to your
  kernel parameters (it is recommended that you
  create another entry specifically for bootchart
  logging).
  Run bootchart-render to render your bootchart

So I just make a copy of the current entry for Arch in my grub menu but add that line? Also where do i run bootchart-render from?

Offline

#11 2008-02-20 14:27:40

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: bootchartd error

Okay I have the same problem now, no bootchart generated until i manually stop it after logging in. Maybe we need to modify line 120:

local exit_proc="gdmgreeter gdm-binary kdm_greet kdm"

To include our login manager, im using slim with xfce.

Offline

#12 2008-02-21 05:32:39

gorn
Member
Registered: 2008-02-01
Posts: 56

Re: bootchartd error

ST.x wrote:

Okay I have the same problem now, no bootchart generated until i manually stop it after logging in. Maybe we need to modify line 120:

local exit_proc="gdmgreeter gdm-binary kdm_greet kdm"

To include our login manager, im using slim with xfce.

You got it. Add slim in there and it should work.

Offline

#13 2008-02-21 07:35:49

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: bootchartd error

gorn wrote:
ST.x wrote:

Okay I have the same problem now, no bootchart generated until i manually stop it after logging in. Maybe we need to modify line 120:

local exit_proc="gdmgreeter gdm-binary kdm_greet kdm"

To include our login manager, im using slim with xfce.

You got it. Add slim in there and it should work.

okay that works for me. I get 21s smile

Offline

Board footer

Powered by FluxBB