You are not logged in.

#1 2005-11-30 02:41:24

Mikos
Member
From: Prague, Czech Republic
Registered: 2005-05-03
Posts: 228
Website

A lot of useless modules loaded after latest kernel update

Hello,
after latest system update (with pacman -Syu), I have a lot of useless modules loaded, although I have this in /etc/rc.conf:

MOD_AUTOLOAD="no"
MODULES=(!usbserial !ide-scsi rtc i2c-isa w83627hf ehci_hcd uhci_hcd parport_pc lp pcspkr b44 snd_via82xx bttv)

Maybe something is wrong with newly introduced initrd? How can I fix it? I don't want to have too many modules loaded. This is output from lsmod:

Module                  Size  Used by
nvidia               3708136  12
agpgart                30032  1 nvidia
tuner                  38440  0
tvaudio                22812  0
bttv                  160464  0
video_buf              18180  1 bttv
i2c_algo_bit            8968  1 bttv
v4l2_common             5120  1 bttv
btcx_risc               4488  1 bttv
tveeprom               12432  1 bttv
videodev                7808  1 bttv
snd_via82xx            25536  1
gameport               12424  1 snd_via82xx
snd_ac97_codec         95484  1 snd_via82xx
snd_ac97_bus            2176  1 snd_ac97_codec
snd_pcm_oss            51104  0
snd_mixer_oss          18048  1 snd_pcm_oss
snd_pcm                84612  3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer              22404  1 snd_pcm
snd_page_alloc          8840  2 snd_via82xx,snd_pcm
snd_mpu401_uart         6656  1 snd_via82xx
snd_rawmidi            21152  1 snd_mpu401_uart
snd_seq_device          7436  1 snd_rawmidi
snd                    49252  11 snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               8160  1 snd
b44                    21508  0
mii                     5120  1 b44
pcspkr                  3688  0
lp                      9860  0
parport_pc             26436  1
uhci_hcd               31888  0
ehci_hcd               33416  0
w83627hf               25616  0
hwmon_vid               2560  1 w83627hf
i2c_isa                 3840  1 w83627hf
i2c_core               18688  7 tuner,tvaudio,bttv,i2c_algo_bit,tveeprom,w83627hf,i2c_isa
rtc                    10808  0
usbcore               115328  3 uhci_hcd,ehci_hcd
nls_iso8859_2           4736  1
nls_cp852               4992  1
vfat                   11904  1
fat                    48540  1 vfat
xfs                   562592  0
reiserfs              270064  2
jfs                   193148  0
ext3                  133640  0
jbd                    58132  1 ext3
sata_qstor              7556  0
sata_promise            8836  0
sata_nv                 7044  0
sata_mv                 7300  0
sata_vsc                5764  0
sata_via                6276  3
sata_uli                4864  0
sata_svw                5764  0
sata_sx4               12164  0
sata_sis                5632  0
sata_sil                6788  0
mptfc                   5508  0
mptspi                  6408  0
mptsas                 11532  0
mptctl                 23040  0
mptscsih               33684  3 mptfc,mptspi,mptsas
mptbase                46048  5 mptfc,mptspi,mptsas,mptctl,mptscsih
megaraid_mbox          32528  0
megaraid_sas           25644  0
megaraid_mm            10020  1 megaraid_mbox
ata_piix                7684  0
osst                   55072  0
sym53c8xx              82452  0
atp870u                30336  0
aha152x                37584  0
aic79xx               271960  0
aic7xxx               182580  0
ahci                    9988  0
libata                 44936  13 sata_qstor,sata_promise,sata_nv,sata_mv,sata_vsc,sata_via,sata_uli,sata_svw,sata_sx4,sata_sis,sata_sil,ata_piix,ahci
raid_class              4224  0
nsp32                  26132  0
aacraid                56704  0
ipr                    53024  0
imm                    12040  0
parport                33736  3 lp,parport_pc,imm
3w_xxxx                27680  0
tmscsim                21824  0
dc395x                 36492  0
3w_9xxx                32516  0
a100u2w                10304  0
BusLogic               24756  0
sr_mod                 15652  0
qlogicfas408            6792  0
st                     39328  0
sg                     31648  0
dmx3191d               14080  0
qla6312               115072  0
qla2322               134144  0
qla2300               124416  0
qla2200                87168  0
qla2100                79488  0
qla2xxx               128220  5 qla6312,qla2322,qla2300,qla2200,qla2100
lpfc                  153660  0
scsi_transport_sas     12928  1 mptsas
qla1280               119436  0
sd_mod                 15488  4
ide_floppy             18176  0
ide_cd                 39812  0
cdrom                  38688  2 sr_mod,ide_cd
ide_disk               16128  0
via82cxxx              13468  0 [permanent]
trm290                  4228  0 [permanent]
triflex                 3456  0 [permanent]
slc90e66                5376  0 [permanent]
sis5513                15624  0 [permanent]
siimage                11264  0 [permanent]
serverworks             8840  0 [permanent]
sc1200                  6784  0 [permanent]
rz1000                  2560  0 [permanent]
piix                    9732  0 [permanent]
pdc202xx_old           10240  0 [permanent]
pdc202xx_new            8704  0 [permanent]
ns87415                 4040  0 [permanent]
it821x                  8196  0 [permanent]
hpt366                 18688  0 [permanent]
hpt34x                  4736  0 [permanent]
generic                 4356  0 [permanent]
cy82c693                4356  0 [permanent]
cs5530                  5120  0 [permanent]
cmd64x                 11164  0 [permanent]
atiixp                  5520  0 [permanent]
amd74xx                14364  0 [permanent]
alim15x3               11276  0 [permanent]
aec62xx                 6912  0 [permanent]
ide_core              119376  27 ide_floppy,ide_cd,ide_disk,via82cxxx,trm290,triflex,slc90e66,sis5513,siimage,serverworks,sc1200,rz1000,
piix,pdc202xx_old,pdc202xx_new,ns87415,it821x,hpt366,hpt34x,generic,cy82c693,cs5530,cmd64x,atiixp,amd74xx,alim15x3,aec62xx

Offline

#2 2005-11-30 03:00:02

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: A lot of useless modules loaded after latest kernel update

It is initrd. To get rid of the useless modules, you'll have to read and edit /etc/mkinitrd.conf, run mkinitrd auto, and be sure you menu.list point to the initrd26.img file.

I have an IDE system with reiserfs:

REMOVE_IDE=
REMOVE_SCSI=1
REMOVE_SATA=1
REMOVE_CDROM=1
REMOVE_USB=1
REMOVE_FW=1
REMOVE_RAID=1
REMOVE_CRYPT=1
REMOVE_FS=

# Define which modules are needed by adding "moduleX moduleY"
# empty means all modules are included if they are not disabled above!
HOSTCONTROLLER_IDE="via82cxxx"
HOSTCONTROLLER_SCSI=
HOSTCONTROLLER_SATA=
HOSTCONTROLLER_USB=
FILESYSTEMS="reiserfs"

# Define Crypt device here
CRYPT_DEVICE=

# Define additional modules here
ADD_MODULE=
REMOVE_MODULE=

you can run lshwd |grep ide or hwdetect --show-ide after a reboot with the new kernel to show the proper modules for your HOSTCONTROLLER.

Offline

#3 2005-11-30 03:12:45

Mikos
Member
From: Prague, Czech Republic
Registered: 2005-05-03
Posts: 228
Website

Re: A lot of useless modules loaded after latest kernel update

Thank you, it works, I added this to /etc/mkinitrd.conf:

HOSTCONTROLLER_IDE=via82cxxx
HOSTCONTROLLER_SCSI=sd_mod
HOSTCONTROLLER_SATA=sata_via
HOSTCONTROLLER_USB=
FILESYSTEMS=ext3 reiserfs

It is much better, but there are still some unneeded modules, for example xfs and jfs (I don't use these filesystems). If I mount initrd26.img, I can see this in linuxrc:

insmod /lib/ide-core.ko > /dev/null 2>&1
insmod /lib/via82cxxx.ko > /dev/null 2>&1
insmod /lib/ide-disk.ko > /dev/null 2>&1
insmod /lib/cdrom.ko > /dev/null 2>&1
insmod /lib/ide-cd.ko > /dev/null 2>&1
insmod /lib/ide-floppy.ko > /dev/null 2>&1
insmod /lib/sd_mod.ko > /dev/null 2>&1
insmod /lib/sr_mod.ko > /dev/null 2>&1
insmod /lib/libata.ko > /dev/null 2>&1
insmod /lib/sata_via.ko > /dev/null 2>&1
insmod /lib/jbd.ko > /dev/null 2>&1
insmod /lib/ext3.ko > /dev/null 2>&1
insmod /lib/jfs.ko > /dev/null 2>&1
insmod /lib/reiserfs.ko > /dev/null 2>&1
insmod /lib/xfs.ko > /dev/null 2>&1

Why are jfs and xfs here if I didn't specified it in /etc/mkinitrd.conf?

EDIT: Well, I have figured it out, it was caused by missing double quotes around "ext3 reiserfs".

Offline

#4 2005-11-30 03:20:08

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: A lot of useless modules loaded after latest kernel update

I think the proper syntax to use is double quotes:
FILESYSTEMS="ext3 reiserfs"

Offline

#5 2005-11-30 03:21:42

Mikos
Member
From: Prague, Czech Republic
Registered: 2005-05-03
Posts: 228
Website

Re: A lot of useless modules loaded after latest kernel update

Yes, you are right, I have already figured it out. So it was only my stupidity :-)

Offline

#6 2005-11-30 06:49:18

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,262

Re: A lot of useless modules loaded after latest kernel update

lshwd |grep ide never run this, it's damn bugged.
via chipset's are not recognized correct with lshwd.
greetings
tpowa

Offline

#7 2005-11-30 10:35:10

Mikos
Member
From: Prague, Czech Republic
Registered: 2005-05-03
Posts: 228
Website

Re: A lot of useless modules loaded after latest kernel update

Yes, I know that lshwd is obsolete now. I have used hwdetect --show-modules, not lshwd.

Offline

#8 2005-11-30 10:56:35

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 644
Website

Re: A lot of useless modules loaded after latest kernel update

hé hé thank you Penguin, I now know how to use hwdetect big_smile

Still has to figure out what exactly is needed to boot a single sata HDD with ext3 filesystem : scsi + sata & that's all ?


Seeded week #28: Arch 25 gig (stock 12, Talking 1, Anywhere 11, Apricity 1)
Desktop @3.30GHz 8 gig RAM, Arch linux-ck
laptop1 Atom 2 gig RAM, Arch linux stock i686 (5+H battery smile) & 2: ARM Tegra K1 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#9 2005-11-30 11:42:53

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: A lot of useless modules loaded after latest kernel update

tpowa wrote:

lshwd |grep ide never run this, it's damn bugged.
via chipset's are not recognized correct with lshwd.
greetings
tpowa

hwdetect won't return this unless you've already been booted into an initrd system, otherwise I wouldn't have mentioned lshwd.
Nice job BTW. Using this initrd, I'm using up the same amount of memory on a fresh reboot as I did when I spent all that time custom compiling my own.


kozaki wrote:

hé hé thank you Penguin, I now know how to use hwdetect big_smile

Still has to figure out what exactly is needed to boot a single sata HDD with ext3 filesystem : scsi + sata & that's all ?

I would say just the sata subsystem and the ext3 module to start with. Then you can use hwdetect --show-sata to find your controller.
Be sure to have your initrd26-full.img handy in case something happens.

Offline

Board footer

Powered by FluxBB