LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2015, 05:15 AM   #1
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
How to know the loading sequence/time of modules during boot?


Hello,
the "lsmod" give the list of the loaded modules/drivers.
How to know when was theier loading time (start/end) ?
Is there any existing log file where that information can be seen ?
For another topic, see http://www.linuxquestions.org/questi...ml#post5362257, I am thinking the unfinished loading of a specific module (ehci-pci or other pci driver) or the loading of a module before another one, could disturb the loading of a module e1000e during a cold boot.
Thanks a lot for any help.

Printing a bootchart? http://www.bootchart.org/images/bootchart.png
Something else?

Last edited by floppy_stuttgart; 05-17-2015 at 07:45 AM.
 
Old 05-17-2015, 12:11 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,572

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
The sort of thing you ask about is designed to work automatically.

Presuming you are using modules, and not compiled in kernel options, each module is loaded as required. There is a file, modules.dep for each kernel module tree, stored in /lib/modules/<kernel-version>. That file lists all the modules dependencies for each module. I don't have the e1000e module. Here is the listing for my wifi nic, which uses the ath9k module.
Code:
bash-4.3$ grep ath9k.ko /lib/modules/3.19.0-rc6/modules.dep
kernel/drivers/net/wireless/ath/ath9k/ath9k.ko: kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko kernel/drivers/net/wireless/ath/ath.ko kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/net/rfkill/rfkill.ko
All those modules must complete loading (along with any dependencies) before ath9k is loaded.
 
Old 05-17-2015, 01:15 PM   #3
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
Hello,
I dont understand. I mean each module is not loaded in the same time but they are loaded the one before the others. When are the audio modules loaded? at which time? When are the ethernet modules loaded? How to know the time when all modules were loaded?
 
Old 05-18-2015, 04:52 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,572

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
What do you need that information for? What's your concern?
 
Old 05-18-2015, 11:30 AM   #5
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
In order to see if between a cold boot and a hot boot, the start/end-time for loading some modules are different. Perhaps a pci module should be completely loaded (and wait 5s?) before an e1000e module can be loaded (a question of voltage/energy). I could perhaps see it with such timer in a logfile.
 
Old 05-19-2015, 06:30 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,572

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
There's a lot written on this already. Differences are in the boot system (systemd and init-ng being faster than SystemV). Boots on some machines are achievable in under 10 secs. The idea of modules having to 'warm up' is not a valid concern. Remember, the support modules are loaded first, and many hardware options like pci, pcie are compiled in, not modules at all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to control the sequence for loading modules? floppy_stuttgart Linux - Hardware 4 03-14-2015 05:50 PM
can't boot laptop - sequence halts while loading syslogd nass Slackware 6 01-02-2011 01:45 PM
No Modules loading at boot. mpyusko Slackware 11 09-25-2006 04:39 PM
loading modules at boot triley Linux - General 3 08-23-2006 09:24 AM
loading modules at boot schatoor Linux - General 2 11-29-2002 05:16 AM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration