UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Any service that starts at roughly 3s until the end of the chart and is not a kernel thread?
Then time is just one aspect. For instance note a huge I/O wait spike at 9s when the system runs fsck? This should not happen every boot but running it does affect other processes. Also note I/O wait and CPU utilization increase at 40s when NFS starts to Do Stuff. Besides the chart will never be complete as similar parallel running processes are collapsed and idle background and short-lived processes removed.
Quote:
Originally Posted by mahmoodn
Where is the network service? I want to know when it is started?
(Something driving) "ifup" at 11.5?
Quote:
Originally Posted by mahmoodn
Can you explain why the ssh service start with such a long delay?
No. Unless the startup script gives you clues you'll need ssh daemon log, 'ssh -d -d -d' or strace output.
For instance note a huge I/O wait spike at 9s when the system runs fsck?
There is a fsck and fsck.ext3 activity around 9s
Is that really a huge gap?
Quote:
Also note I/O wait and CPU utilization increase at 40s when NFS starts to Do Stuff.
Sorry it seems that we read the chart differently. at 40s, there is no activity.
Quote:
No. Unless the startup script gives you clues you'll need ssh daemon log, 'ssh -d -d -d' or strace output.
As you can see at 57s the sshd is started. The question is which process causes the delay for sshd? in another word, the sshd service is dependent on which service(s)?
No it is not "a big gap". But when a process hogs resources other processes experience starvation, albeit for a short period of time.
Quote:
Originally Posted by mahmoodn
at 40s, there is no activity.
So what is your explanation for the colored thingies in the bottom nfsd process bar then?
Quote:
Originally Posted by mahmoodn
As you can see at 57s the sshd is started.
No, the service starts at 13 something seconds.
Quote:
Originally Posted by mahmoodn
The question is which process causes the delay for sshd? in another word, the sshd service is dependent on which service(s)?
You have not shown any diagnostics to be able to conclude any other process is the cause of the delay. Anyway, check the "start on" line in /etc/init/ssh.conf to find out after which services the sshd service is started.
So what is your explanation for the colored thingies in the bottom nfsd process bar then?
You are right. I didn't notice that
Quote:
No, the service starts at 13 something seconds.
So why there is a really a huge gap for sshd from 13s to 57s ?
the ssd.conf file is:
Code:
description "OpenSSH server"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
umask 022
# 'sshd -D' leaks stderr and confuses things in conjunction with 'console log'
console none
pre-start script
test -x /usr/sbin/sshd || { stop; exit 0; }
test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; }
test -c /dev/null || { stop; exit 0; }
mkdir -p -m0755 /var/run/sshd
end script
# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
# 'exec' line here instead
exec /usr/sbin/sshd -D
There are "pre-start scripts" but I can not figure out them
So why there is a really a huge gap for sshd from 13s to 57s ?
See the last line of my first post. Unless syslog shows clues set SSHD_OPTS in /etc/default/ssh for debug mode and change the "exec" line switches in /etc/init/ssh.conf to the same, reboot and use bootchartd again.
As I modify the scripts (adding -d -d -d), I can no longer ssh to the server. Hopefully there is a web interface...
In the syslog, I see:
Code:
cat /var/log/syslog | grep ssh
Jul 31 22:45:47 hpclab kernel: [ 221.396508] init: ssh main process ended, respawning
Jul 31 22:45:52 hpclab kernel: [ 227.030543] init: ssh main process (2857) terminated with status 255
Jul 31 22:45:52 hpclab kernel: [ 227.030620] init: ssh main process ended, respawning
Jul 31 22:45:57 hpclab kernel: [ 231.846283] init: ssh main process (2862) terminated with status 255
Jul 31 22:45:57 hpclab kernel: [ 231.846357] init: ssh main process ended, respawning
Jul 31 22:46:04 hpclab kernel: [ 238.296699] init: ssh main process (2866) terminated with status 255
Jul 31 22:46:04 hpclab kernel: [ 238.296772] init: ssh main process ended, respawning
Jul 31 22:46:07 hpclab kernel: [ 242.059518] init: ssh main process (2881) terminated with status 255
Jul 31 22:46:07 hpclab kernel: [ 242.059592] init: ssh main process ended, respawning
Jul 31 22:46:11 hpclab kernel: [ 245.377472] init: ssh main process (2903) terminated with status 255
Jul 31 22:46:11 hpclab kernel: [ 245.377556] init: ssh main process ended, respawning
Jul 31 22:46:15 hpclab kernel: [ 250.058691] init: ssh main process (2983) terminated with status 255
Jul 31 22:46:15 hpclab kernel: [ 250.058768] init: ssh main process ended, respawning
Jul 31 22:46:19 hpclab kernel: [ 253.948648] init: ssh main process (2987) terminated with status 255
Jul 31 22:46:19 hpclab kernel: [ 253.948719] init: ssh main process ended, respawning
Jul 31 22:46:25 hpclab kernel: [ 260.103095] init: ssh main process (2991) terminated with status 255
Jul 31 22:46:25 hpclab kernel: [ 260.103174] init: ssh main process ended, respawning
Jul 31 22:46:28 hpclab kernel: [ 263.077324] init: ssh main process (2995) terminated with status 255
Jul 31 22:46:28 hpclab kernel: [ 263.077400] init: ssh main process ended, respawning
Jul 31 22:46:32 hpclab kernel: [ 266.464170] init: ssh main process (2999) terminated with status 255
Jul 31 22:46:32 hpclab kernel: [ 266.464238] init: ssh main process ended, respawning
Jul 31 22:46:35 hpclab kernel: [ 270.124561] init: ssh main process (3003) terminated with status 255
Jul 31 22:46:35 hpclab kernel: [ 270.124636] init: ssh main process ended, respawning
Jul 31 22:46:39 hpclab kernel: [ 273.897050] init: ssh main process (3007) terminated with status 255
Jul 31 22:46:39 hpclab kernel: [ 273.897124] init: ssh main process ended, respawning
Jul 31 22:46:43 hpclab kernel: [ 277.403355] init: ssh main process (3011) terminated with status 255
Jul 31 22:46:43 hpclab kernel: [ 277.403427] init: ssh main process ended, respawning
Jul 31 22:46:49 hpclab kernel: [ 283.814673] init: ssh main process (3015) terminated with status 255
Jul 31 22:46:49 hpclab kernel: [ 283.814745] init: ssh main process ended, respawning
Jul 31 22:46:52 hpclab kernel: [ 286.418994] init: ssh main process (3019) terminated with status 255
Jul 31 22:46:52 hpclab kernel: [ 286.419067] init: ssh main process ended, respawning
Jul 31 22:46:55 hpclab kernel: [ 289.787432] init: ssh main process (3023) terminated with status 255
Jul 31 22:46:55 hpclab kernel: [ 289.787506] init: ssh main process ended, respawning
Jul 31 22:46:58 hpclab kernel: [ 293.078468] init: ssh main process (3031) terminated with status 255
Jul 31 22:46:58 hpclab kernel: [ 293.078559] init: ssh main process ended, respawning
Jul 31 22:47:02 hpclab kernel: [ 296.678693] init: ssh main process (3041) terminated with status 255
Jul 31 22:47:02 hpclab kernel: [ 296.678773] init: ssh main process ended, respawning
Jul 31 22:47:07 hpclab kernel: [ 301.814097] init: ssh main process (3045) terminated with status 255
Jul 31 22:47:07 hpclab kernel: [ 301.814181] init: ssh main process ended, respawning
Jul 31 22:47:10 hpclab kernel: [ 305.187638] init: ssh main process (3069) terminated with status 255
Jul 31 22:47:10 hpclab kernel: [ 305.187718] init: ssh main process ended, respawning
Jul 31 22:47:14 hpclab kernel: [ 308.759234] init: ssh main process (3074) terminated with status 255
Jul 31 22:47:14 hpclab kernel: [ 308.759310] init: ssh main process ended, respawning
Jul 31 22:47:18 hpclab kernel: [ 312.734980] init: ssh main process (3078) terminated with status 255
Jul 31 22:47:18 hpclab kernel: [ 312.735052] init: ssh main process ended, respawning
Jul 31 22:47:22 hpclab kernel: [ 316.840610] init: ssh main process (3082) terminated with status 255
Jul 31 22:47:22 hpclab kernel: [ 316.840687] init: ssh main process ended, respawning
Jul 31 22:47:26 hpclab kernel: [ 320.423302] init: ssh main process (3086) terminated with status 255
Jul 31 22:47:26 hpclab kernel: [ 320.423377] init: ssh main process ended, respawning
Jul 31 22:47:29 hpclab kernel: [ 323.789630] init: ssh main process (3090) terminated with status 255
Jul 31 22:47:29 hpclab kernel: [ 323.789704] init: ssh main process ended, respawning
Jul 31 22:47:33 hpclab kernel: [ 327.489133] init: ssh main process (3094) terminated with status 255
Jul 31 22:47:33 hpclab kernel: [ 327.489201] init: ssh main process ended, respawning
Jul 31 22:47:36 hpclab kernel: [ 331.205637] init: ssh main process (3098) terminated with status 255
Jul 31 22:47:36 hpclab kernel: [ 331.205708] init: ssh main process ended, respawning
Jul 31 22:47:39 hpclab kernel: [ 334.097717] init: ssh main process (3102) terminated with status 255
Jul 31 22:47:39 hpclab kernel: [ 334.097784] init: ssh main process ended, respawning
Jul 31 22:47:43 hpclab kernel: [ 337.910792] init: ssh main process (3106) terminated with status 255
Jul 31 22:47:43 hpclab kernel: [ 337.910857] init: ssh main process ended, respawning
Jul 31 22:47:46 hpclab kernel: [ 341.012934] init: ssh main process (3110) terminated with status 255
Jul 31 22:47:46 hpclab kernel: [ 341.013008] init: ssh main process ended, respawning
Jul 31 22:47:49 hpclab kernel: [ 344.211480] init: ssh main process (3114) terminated with status 255
Jul 31 22:47:49 hpclab kernel: [ 344.211567] init: ssh main process ended, respawning
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.