It has been a long time since I played with creating Linux Live CDs
so, correct me if I'm wrong on this.

Couldn't one (perhaps myself) write a script that ran as a final step
in INIT runlevel 3 and check which modules were in use (via the "Used
By" section of LSMOD) and remove every module which is not being used
?

That way someone could just enable it in the "DAEMONS" section and it
would get rid of all those unneeded modules.

Please lemme know is I said anything nonsense.

Alexandre Moreira.

2006/5/5, Arjan Timmerman <[EMAIL PROTECTED]>:
> In out non initrd, you also had 100+ modules loaded :P but you never saw
> them due to the fact they were compiled in the kernel.
>
> On Fri, 2006-05-05 at 10:32 +0200, Mr FUBAR wrote:
> > Aaah, the wonders of initrd. The new Arch kernels rely on a ramdisk
> > that contains "every possible" module you could need. Search the
> > forums on how to cut down on the ramdisk.
> >
> > Or, compile your own kernel.
> >
> > On 5/5/06, Chris Hilton <[EMAIL PROTECTED]> wrote:
> > > I don't have sata, scsi, a raid, or almost any of this crap....
> > > I'm not really concerned with wasted RAM, but my computer hasn't exactly 
> > > been
> > > a model of stability lately.
> > > Since I know few will make it to the bottom, thanks in advance.
> > >
> > > [EMAIL PROTECTED] ~]$ lsmod | wc
> > >    147     500    6120
> > >
> > >
> > > [EMAIL PROTECTED] ~]$ grep MODULE /etc/rc.conf
> > > MODULES=(!usbserial !ide-scsi joydev)
> > >
> > >
> > > [EMAIL PROTECTED] ~]$ grep DAEMON /etc/rc.conf
> > > DAEMONS=(!pcmcia network crond inetd sshd syslog-ng klogd kdm)
> > >
> > > Any idea why this butt load of modules is being loaded?
> > > [EMAIL PROTECTED] ~]$ lsmod
> > > Module                  Size  Used by
> > > radeon                112160  1
> > > drm                    64532  2 radeon
> > > kafs                   57604  0
> > > rxrpc                  68164  1 kafs
> > > ohci_hcd               19076  0
> > > nls_cp437               5760  1
> > > vfat                   11008  1
> > > fat                    48540  1 vfat
> > > ppdev                   7812  0
> > > usb_storage            78656  0
> > > usbhid                 47392  0
> > > lp                      9856  0
> > > snd_seq_oss            31716  0
> > > snd_seq_midi_event      6400  1 snd_seq_oss
> > > snd_seq                49996  4 snd_seq_oss,snd_seq_midi_event
> > > shpchp                 43872  0
> > > pci_hotplug            25668  1 shpchp
> > > snd_pcm_oss            38048  0
> > > snd_mixer_oss          16384  1 snd_pcm_oss
> > > snd_via82xx            24344  0
> > > 8139too                23936  0
> > > 8139cp                 19456  0
> > > mii                     5376  2 8139too,8139cp
> > > snd_ac97_codec         94624  1 snd_via82xx
> > > snd_ac97_bus            2176  1 snd_ac97_codec
> > > snd_pcm                78084  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
> > > snd_timer              20100  2 snd_seq,snd_pcm
> > > snd_page_alloc          8200  2 snd_via82xx,snd_pcm
> > > parport_pc             25196  1
> > > i2c_viapro              7700  0
> > > i2c_core               17792  1 i2c_viapro
> > > via_ircc               20372  0
> > > irda                  126648  1 via_ircc
> > > crc_ccitt               2176  1 irda
> > > uhci_hcd               29712  0
> > > via_agp                 8320  1
> > > ppp_generic            27156  0
> > > slhc                    6656  1 ppp_generic
> > > agpgart                27108  2 drm,via_agp
> > > evdev                   8192  0
> > > ehci_hcd               29960  0
> > > usbcore               116256  6 
> > > ohci_hcd,usb_storage,usbhid,uhci_hcd,ehci_hcd
> > > snd_mpu401              6368  0
> > > snd_mpu401_uart         6528  2 snd_via82xx,snd_mpu401
> > > rtc                    10932  0
> > > snd_rawmidi            20512  1 snd_mpu401_uart
> > > snd_seq_device          6924  3 snd_seq_oss,snd_seq,snd_rawmidi
> > > snd                    46432  12
> > > snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401,snd_mpu401_uart,snd_rawmidi,snd_seq_device
> > > analog                 10144  0
> > > pcspkr                  2948  0
> > > soundcore               7776  1 snd
> > > ns558                   4100  0
> > > gameport               11656  4 snd_via82xx,analog,ns558
> > > serio_raw               5892  0
> > > joydev                  8512  0
> > > xfs                   593004  0
> > > reiserfs              256880  1
> > > jfs                   187004  0
> > > ext3                  127880  0
> > > jbd                    56212  1 ext3
> > > sata_qstor              7556  0
> > > sata_promise            9092  0
> > > sata_sil24              9476  0
> > > sata_nv                 7044  0
> > > sata_mv                16008  0
> > > sata_vsc                6148  0
> > > sata_via                6020  0
> > > sata_uli                4868  0
> > > sata_svw                5764  0
> > > sata_sx4               11780  0
> > > sata_sis                5636  0
> > > sata_sil                7432  0
> > > DAC960                 71360  0
> > > cciss                  29984  0
> > > sx8                    15756  0
> > > cpqarray               19172  0
> > > mptfc                  10120  0
> > > mptspi                  6536  0
> > > mptsas                 16652  0
> > > mptctl                 23044  0
> > > mptscsih               32336  3 mptfc,mptspi,mptsas
> > > mptbase                46308  5 mptfc,mptspi,mptsas,mptctl,mptscsih
> > > megaraid_mbox          25232  0
> > > megaraid_sas           24492  0
> > > megaraid_mm             9380  1 megaraid_mbox
> > > ata_piix                8324  0
> > > osst                   51616  0
> > > megaraid               37700  0
> > > sym53c8xx              74260  0
> > > atp870u                30848  0
> > > aha152x                37304  0
> > > aic79xx               272596  0
> > > aic7xxx               177840  0
> > > ahci                   11396  0
> > > pdc_adma                7556  0
> > > libata                 54284  15
> > > sata_qstor,sata_promise,sata_sil24,sata_nv,sata_mv,sata_vsc,sata_via,sata_uli,sata_svw,sata_sx4,sata_sis,sata_sil,ata_piix,ahci,pdc_adma
> > > raid_class              4992  0
> > > nsp32                  23828  0
> > > aacraid                56832  0
> > > ipr                    59424  0
> > > imm                    11016  0
> > > parport                33864  4 ppdev,lp,parport_pc,imm
> > > 3w_xxxx                25248  0
> > > tmscsim                20800  0
> > > dc395x                 33552  0
> > > 3w_9xxx                31520  0
> > > a100u2w                 9408  0
> > > BusLogic               23332  0
> > > sr_mod                 15140  0
> > > qlogicfas408            6664  0
> > > st                     35744  0
> > > sg                     27804  0
> > > dmx3191d               11392  0
> > > lpfc                  157120  0
> > > scsi_transport_sas     15360  1 mptsas
> > > qla1280               117132  0
> > > sd_mod                 14976  0
> > > ide_floppy             16000  0
> > > ide_cd                 37792  0
> > > cdrom                  36144  2 sr_mod,ide_cd
> > > ide_disk               14336  4
> > > via82cxxx               8836  0 [permanent]
> > > trm290                  4228  0 [permanent]
> > > triflex                 3328  0 [permanent]
> > > slc90e66                5248  0 [permanent]
> > > sis5513                13196  0 [permanent]
> > > siimage                10624  0 [permanent]
> > > serverworks             8328  0 [permanent]
> > > sc1200                  6656  0 [permanent]
> > > rz1000                  2560  0 [permanent]
> > > piix                    9476  0 [permanent]
> > > pdc202xx_old            9984  0 [permanent]
> > > pdc202xx_new            8448  0 [permanent]
> > > ns87415                 4012  0 [permanent]
> > > it821x                  7684  0 [permanent]
> > > hpt366                 18048  0 [permanent]
> > > hpt34x                  4608  0 [permanent]
> > > generic                 4356  0 [permanent]
> > > cy82c693                4228  0 [permanent]
> > > cs5530                  5120  0 [permanent]
> > > cmd64x                 10780  0 [permanent]
> > > atiixp                  5520  0 [permanent]
> > > amd74xx                14364  0 [permanent]
> > > alim15x3               11280  0 [permanent]
> > > aec62xx                 6912  0 [permanent]
> > > ide_core              116940  28
> > > usb_storage,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
> > >
> > >
> > > --
> > > "The only winning move is not to play."
> > >
> > > _______________________________________________
> > > arch mailing list
> > > [email protected]
> > > http://www.archlinux.org/mailman/listinfo/arch
> > >
> >
> > _______________________________________________
> > arch mailing list
> > [email protected]
> > http://www.archlinux.org/mailman/listinfo/arch
> >
>
>
> _______________________________________________
> arch mailing list
> [email protected]
> http://www.archlinux.org/mailman/listinfo/arch
>

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to