You are not logged in.

#1 2008-03-26 21:07:16

Misbah
Member
Registered: 2008-02-27
Posts: 218

Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:47:45)

Offline

#2 2008-03-26 21:27:24

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Mod Autoload and modules in rc.conf / boot time

To answer the first question: not all modules CAn be autodetected, and not all are related to hardware. For instance, I have the following (and more) in my MODULES array

MODULES=(!pcspkr fuse)

This blacklists the speaker module (beep beep beep) AND loads the fuse module.

To answer the second question, you CAN turn it off, but you are going to lose the ability to plug things in later. What you're going to gain is minimal compared to what you will lose. You are welcome to do it, but it's going to make your life a pain if you use anything USB, firewire, or even bluetooth based. You will have to manually load modules yourself.

Offline

#3 2008-03-26 22:25:55

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Mod Autoload and modules in rc.conf / boot time

Run "hwdetect --show-modules" to see most of the modules pertaining to your hardware.

Offline

#4 2008-03-26 23:59:39

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:47:33)

Offline

#5 2008-03-27 00:06:05

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Mod Autoload and modules in rc.conf / boot time

Misbah wrote:

EDIT: I know I'm logged in as root. Please don't yell at me. It's kind of silly.. but I don't know how to shutdown when logged in as a regular user.. because halt and reboot dont work in xterm.. and there is no menu entry for it in flux, and I cant kick myself out to a console when logged in as a reg user. errr.

Unless i'm missing something and your system is in fact completely broken, you need to do the commands as root user.

### either
su
reboot

### or
sudo reboot

You might want to see this article too: http://wiki.archlinux.org/index.php/All … o_shutdown


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#6 2008-03-27 00:10:35

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:47:21)

Offline

#7 2008-03-27 00:16:47

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Mod Autoload and modules in rc.conf / boot time

To answer your original questions:

Misbah wrote:

If the module is preloaded will it work that way?

Yes. What I do is compile my own kernel with just the modules I need built into the kernel itself. You'll need to do some research into what modules you need for certain tasks though.

Misbah wrote:

if i didnt blacklist or remove anything, and just put them all under the modules= list, would it be any faster?

Test it and find out. It's not always consistant across everyone's hardware/system.

Misbah wrote:

If i add a module into modules=, i dont have to add the modules it calls on right? It will load those automatically? ie) I just have to add rt2500pci and it will call on rt2x00pci and rt2x00lib itself right? And those in turn will call on other modules that it uses?

Dependencies are called automatically.

Misbah wrote:

but I'm wondering if I can also gain any speed from simply having the same modules manually loaded as opposed to being autodetected and then loaded.

How long does module loading take at the moment? If it's not a completely unreasonable time, I would say you are going to gain a negligable boot speed increase comparable to the effort involved. If you are really wanting to pursue a quicker bootspeed, then compiling your own custom kernel is the way to go. Even then, if bootspeed from GRUB to login prompt is less than 30seconds, gains are pretty much negligable.


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#8 2008-03-27 00:20:14

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Mod Autoload and modules in rc.conf / boot time

Misbah wrote:

I haven't installed sudo yet, so that might be the issue.

You don't need sudo. What's wrong with typing 'su' in xterm before issuing the shutdown command?

If you really dont want to type a password in:

chmod +s /sbin/halt

flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#9 2008-03-27 01:17:10

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:47:06)

Offline

#10 2008-03-27 04:45:55

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:46:14)

Offline

#11 2008-03-27 09:55:01

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Mod Autoload and modules in rc.conf / boot time

Misbah wrote:

Can't really do anything about wireless

I would background it with a @
The only ones I don't have backgrounded are syslog-ng and iptables.


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#12 2008-03-27 10:17:44

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Mod Autoload and modules in rc.conf / boot time

Misbah wrote:

Your right, su root, pw, shutdown -h now works. I don't know why I thought it didn't.

I shut down my box by just pushing the power button on my machines (laptop, desktop, server). Look at the wiki for setting that up smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#13 2008-03-27 14:00:42

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: Mod Autoload and modules in rc.conf / boot time

dyscoria wrote:
Misbah wrote:

Can't really do anything about wireless

I would background it with a @
The only ones I don't have backgrounded are syslog-ng and iptables.

Exactly, you can also bring the 'slim login deamon' (I guess it's a deamon like kdm, gdm) to load before wireless, so you don't have to wait for it to be up. I have all deamons backgrounded. Why was it again you shouldn't background syslog-ng?

Offline

#14 2008-03-27 14:04:31

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Mod Autoload and modules in rc.conf / boot time

ibendiben wrote:

Why was it again you shouldn't background syslog-ng?

you might miss some logs probably

Last edited by carlocci (2008-03-27 14:04:52)

Offline

#15 2008-03-27 14:05:55

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Mod Autoload and modules in rc.conf / boot time

ibendiben wrote:
dyscoria wrote:
Misbah wrote:

Can't really do anything about wireless

I would background it with a @
The only ones I don't have backgrounded are syslog-ng and iptables.

Exactly, you can also bring the 'slim login deamon' (I guess it's a deamon like kdm, gdm) to load before wireless, so you don't have to wait for it to be up. I have all deamons backgrounded. Why was it again you shouldn't background syslog-ng?

Perfectly plausable to background syslog, but I was just thinking it's better if the logger is activated before everything else in order to catch any errors (not that I check my logs very often tongue).


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#16 2008-03-27 14:26:28

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

Re: Mod Autoload and modules in rc.conf / boot time

I found that firestarter fails to load if I background 'network' but I think it can be fixed with http://ubuntuforums.org/showthread.php?t=542756

Offline

#17 2008-03-27 20:09:30

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:45:40)

Offline

#18 2008-03-27 20:13:54

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: Mod Autoload and modules in rc.conf / boot time

Misbah wrote:

I can safely background everything except for syslog-ng?

Do you use a network filesystem? If not you can get rid of netfs altogether. But yes, all the ones you mentioned can be backgrounded (including crond and netfs).

Misbah wrote:

do I still have to do the disable ipv6 thing

Only if any ipv6 modules are loading automatically.

Last edited by dyscoria (2008-03-27 20:15:44)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#19 2008-03-28 04:08:31

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

Re: Mod Autoload and modules in rc.conf / boot time

Misbah wrote:

So far I've kicked out only a few modules, but I've been barely working on it since last night. I threw out ipv6 (do I still have to do the disable ipv6 thing http://wiki.archlinux.org/index.php/IPv … the_Module if I just remove the module) threw out pcspkr, st, pci_hotplug, shpchp, those are the only ones I've figured out what they are and that I don't need them so far. Looks like most of them I need. Also I noticed, I don't need to necessarily blacklist the module with a ! or add it to mod blacklist.. if I remove it from the modules list.. it doesnt seem to load, so, that seems good enough.

Do you mean you did:

MODULES=(....!ipv6 !net-pf-10)

or the

alias net-pf-10 off
alias ipv6 off

in /etc/modprobe.conf. Does anyone know which is the proper method?

Offline

#20 2008-03-28 05:44:14

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:45:16)

Offline

#21 2008-03-28 12:38:41

rusty
Member
Registered: 2008-03-04
Posts: 9

Re: Mod Autoload and modules in rc.conf / boot time

I'm curious to how this is affecting bootup times, have you seen much of an increase since altering rc, mkinitcpio and modprobe.conf?
The reason I ask is, my average udev time is 3.5 secs, if I alter rc.conf or mkinitcpio.conf I gain in udev time, for example, blackilisting "pcspkr psmouse ac fan battery" in rc.conf saw udev increase to 7.6secs.
However if I stop those modues through modprobe.conf my udev time stays ~ 3.5secs

Is this just a weird anomoly of my system or are you seeing gains without custom kernel compiling?

Offline

#22 2008-03-28 12:43:52

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

Re: Mod Autoload and modules in rc.conf / boot time

rusty wrote:

I'm curious to how this is affecting bootup times, have you seen much of an increase since altering rc, mkinitcpio and modprobe.conf?
The reason I ask is, my average udev time is 3.5 secs, if I alter rc.conf or mkinitcpio.conf I gain in udev time, for example, blackilisting "pcspkr psmouse ac fan battery" in rc.conf saw udev increase to 7.6secs.
However if I stop those modues through modprobe.conf my udev time stays ~ 3.5secs

Is this just a weird anomoly of my system or are you seeing gains without custom kernel compiling?

I disabled some like the OP in MODULES with a ! and my udev time shows its a tiny bit quicker i.e. 1.2 to 1.08 sec

Offline

#23 2008-03-28 23:11:36

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Mod Autoload and modules in rc.conf / boot time

deleted

Last edited by Misbah (2012-02-14 05:46:40)

Offline

#24 2008-07-29 19:50:49

simion314
Member
Registered: 2008-07-29
Posts: 34

Re: Mod Autoload and modules in rc.conf / boot time

Hu. i hava an ideea
What about starting only the base modules(drivers) like video scsi , then start kd/gdm that will start the desktop environment and edit kdm to load a script that will do something like this
-load the sound modules
-load the network modules and start the network
-start te other modules (like acpi bluetooth and others)

This method will load all modules
Will start the desktop envirnoment faster

We should identify the base modules requierd to start X and the desktop environment (this is dependent of the hardware) ad write that script to load the rest

Please tell me what you all think about this ideea

Offline

Board footer

Powered by FluxBB