The officially official Devuan Forum!

You are not logged in.

#1 2022-06-21 20:05:40

deepforest
Member
Registered: 2020-03-24
Posts: 83  

how on Devuan analyze boot time?

?

Offline

#2 2022-06-22 04:40:16

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,391  

Re: how on Devuan analyze boot time?

!


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#3 2022-06-22 20:12:44

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

?!

Last edited by deepforest (2022-06-22 20:13:40)

Offline

#4 2022-06-23 19:30:57

xinomilo
Member
Registered: 2017-07-02
Posts: 243  

Re: how on Devuan analyze boot time?

bootlogd or bootchart? never really bothered with that tbh.
there's also systemd-bootchart, not sure if it's dependent on systemd, if not, maybe it can be used in devuan too.

Offline

#5 2022-06-26 16:23:59

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

xinomilo wrote:

bootlogd or bootchart? n

thx, how to use them?

Offline

#6 2022-06-26 17:31:10

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,391  

Re: how on Devuan analyze boot time?

Links to the .debs are in my exclamation mark (see fsmithred's post just above mine for bootlogd), along with an explanation of how to get bootchart working in chimaera.


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#7 2022-06-26 18:27:44

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

And where is your exclamation mark?

Last edited by deepforest (2022-06-26 18:28:28)

Offline

#8 2022-06-26 18:29:57

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

root@devuan:/etc# apt install bootchart
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package bootchart
root@devuan:/etc# 

Offline

#9 2022-06-26 18:49:44

golinux
Administrator
Registered: 2016-11-25
Posts: 2,519  

Re: how on Devuan analyze boot time?

deepforest wrote:

And where is your exclamation mark?

https://dev1galaxy.org/viewtopic.php?pid=36356#p36356

Offline

#10 2022-06-26 19:01:39

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

freeartist@devuan:~/Downloads/bootchart$ ./pybootchartgui.py
bash: ./pybootchartgui.py: /usr/bin/python: bad interpreter: No such file or directory
freeartist@devuan:~/Downloads/bootchart$ 

Offline

#11 2022-06-26 19:07:02

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

freeartist@devuan:/usr/bin$ sudo ln -fs python3 python
freeartist@devuan:/usr/bin$ 
freeartist@devuan:~/Downloads/bootchart$ ./pybootchartgui.py
/home/freeartist/Downloads/bootchart/pybootchartgui/parsing.py:101: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if pid is 0:
/home/freeartist/Downloads/bootchart/pybootchartgui/draw.py:511: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if (OPTIONS.show_pid or OPTIONS.show_all) and ipid is not 0:
/home/freeartist/Downloads/bootchart/pybootchartgui/draw.py:609: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if i is not 0:
No path given, trying /var/log/bootchart.tgz
warning: path '/var/log/bootchart.tgz' does not exist, ignoring.
Parse error: empty state: '/var/log/bootchart.tgz' does not contain a valid bootchart
freeartist@devuan:~/Downloads/bootchart$ 

Offline

#12 2022-06-26 19:36:56

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

root@devuan:/home/freeartist/Downloads# dpkg -i bootchart2_0.14.4-3+b1_amd64.deb 
Selecting previously unselected package bootchart2.
(Reading database ... 461869 files and directories currently installed.)
Preparing to unpack bootchart2_0.14.4-3+b1_amd64.deb ...
Unpacking bootchart2 (0.14.4-3+b1) ...
Setting up bootchart2 (0.14.4-3+b1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: stop runlevel arguments (6 0) do not match bootchart-done Default-Stop values (none)
Processing triggers for man-db (2.10.2-1) ...
root@devuan:/home/freeartist/Downloads# 
freeartist@devuan:/var/log$ 
freeartist@devuan:~/Downloads$ bootchart2
bash: bootchart2: command not found
freeartist@devuan:~/Downloads$ 

Last edited by deepforest (2022-06-26 19:37:26)

Offline

#13 2022-06-27 17:20:26

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,391  

Re: how on Devuan analyze boot time?

deepforest wrote:
bash: ./pybootchartgui.py: /usr/bin/python: bad interpreter: No such file or directory
deepforest wrote:
freeartist@devuan:/usr/bin$ sudo ln -fs python3 python

It would have been *much* better to change the shebang in pybootchartgui.py instead of mangling your system. Remove that symlink.

deepforest wrote:
No path given, trying /var/log/bootchart.tgz
warning: path '/var/log/bootchart.tgz' does not exist, ignoring.

So I presume you didn't boot with the required initcall_debug printk.time=y init=/sbin/bootchartd kernel parameters then?

This is like pulling teeth... roll

Last edited by Head_on_a_Stick (2022-06-27 17:21:14)


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#14 Yesterday 10:49:46

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

I see now
/var/log/bootchart.tgz
but

freeartist@devuan:~/Downloads/bootchart$ ./pybootchartgui.py
bash: ./pybootchartgui.py: /usr/bin/python: bad interpreter: No such file or directory
freeartist@devuan:~/Downloads/bootchart$
freeartist@devuan:/var/log$ bootchart /var/log/bootchart.tgz
bash: bootchart: command not found
freeartist@devuan:/var/log$ bootchart2 /var/log/bootchart.tgz
bash: bootchart2: command not found
freeartist@devuan:/var/log$ 

Last edited by deepforest (Yesterday 10:55:08)

Offline

#15 Yesterday 10:53:01

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,391  

Re: how on Devuan analyze boot time?

sed -i 's|#!/usr/bin/python|&3|' pybootchartgui.py
./pybootchartgui.py

EDIT: monkey patching ftw! big_smile

Last edited by Head_on_a_Stick (Yesterday 10:54:33)


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#16 Yesterday 10:58:55

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

Head_on_a_Stick wrote:
sed -i 's|#!/usr/bin/python|&3|' pybootchartgui.py
./pybootchartgui.py

EDIT: monkey patching ftw! big_smile

Wow! Thanks! Its magic! What is trick?

https://i.imgur.com/ynv1HKU.png

ps understood python>python3 in pybootchartgui.py

Last edited by deepforest (Yesterday 11:02:47)

Offline

#17 Yesterday 11:02:38

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,391  

Re: how on Devuan analyze boot time?

deepforest wrote:

What is trick?

The first line of pybootchartgui.py was #!/usr/bin/python, my sed command just added 3 to the end so the correct Python version could be found.

Glad you got it working.


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#18 Yesterday 11:03:51

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

Thanks! And how analyze that? I see hdd is bottleneck?

Offline

#19 Yesterday 11:05:30

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,391  

Re: how on Devuan analyze boot time?

Looks like eudev takes forever. Do you have many devices connected?

You could try udev instead but that's from the systemd crowd so people might throw rotten fruit at you.


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#20 Yesterday 11:14:06

deepforest
Member
Registered: 2020-03-24
Posts: 83  

Re: how on Devuan analyze boot time?

Yes, thx. i see long udevd.

Looks like eudev takes forever. Do you have many devices connected?

usb mouse and usb hub, 2 sata hdd, nothing else

You could try udev instead but that's from the systemd crowd so people might throw rotten fruit at you.

Noo, i am here because sysvinit

Offline

Board footer