Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to see lsmod and make kernel lighter?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
zerop2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2006
Posts: 95

PostPosted: Thu Apr 27, 2006 12:16 pm    Post subject: How to see lsmod and make kernel lighter? Reply with quote

i do not want to make genkernel menuconfig all

i want to make genkernel only , how to make it lighter
i use install cd , see it load the following thing


Module Size Used by
parport_pc 27716 0
parport 22472 1 parport_pc
floppy 47076 0
pcspkr 2052 0
rtc 9908 0
yenta_socket 19084 0
rsrc_nonstatic 9472 1 yenta_socket
pcmcia_core 24724 2 yenta_socket,rsrc_nonstatic
ipw2100 67380 0
ieee80211 23624 1 ipw2100
ieee80211_crypt 3584 1 ieee80211
firmware_class 7168 1 ipw2100
e100 30084 0
mii 3840 1 e100
eth1394 15496 0
dm_mirror 15440 0
dm_mod 37784 1 dm_mirror
pdc_adma 7172 0
sata_mv 13444 0
ata_piix 7428 0
ahci 10116 0
sata_qstor 7428 0
sata_vsc 6276 0
sata_uli 5636 0
sata_sis 6148 0
sata_sx4 10884 0
sata_nv 6916 0
sata_via 6660 0
sata_svw 5892 0
sata_sil24 8580 0
sata_sil 7172 0
sata_promise 8580 0
libata 36104 15 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise
sbp2 17412 0
ohci1394 26036 0
ieee1394 57656 3 eth1394,sbp2,ohci1394
sl811_hcd 10240 0
ohci_hcd 15748 0
uhci_hcd 24976 0
usb_storage 50624 0
usbhid 29792 0
ehci_hcd 23688 0
usbcore 80516 7 sl811_hcd,ohci_hcd,uhci_hcd,usb_storage,usbhid,ehci_hcd
_________________
>>>>>>>>>>>>>>>
Kenerl Hacking Babie
>>>>>>>>>>>>>>>
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Thu Apr 27, 2006 12:38 pm    Post subject: Reply with quote

well, either you go through the menuconfig route and deactivate everything you deem unnecessary, or you'll have to live with modules you don't need. it's pretty much as simple as that. genkernel simply tries to compile as much as possible and the coldplug/hotplug scripts will try to get everything loaded for your hardware, thus it's logical to see lots of modules in lsmod.

i suggest you take the .config of that genkernel kernel and then do the make menuconfig thing and deactivate everything you're sure you won't need.
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Thu Apr 27, 2006 12:39 pm    Post subject: Reply with quote

I think if you want a lighter kernel, you're going to have to do a manual configuration instead of using genkernel. Take a look at the Handbook chapter on building your kernel and see the instructions for a manual install.
Back to top
View user's profile Send private message
zerop2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2006
Posts: 95

PostPosted: Thu Apr 27, 2006 12:44 pm    Post subject: Reply with quote

what is coldplug/hotplug ?
_________________
>>>>>>>>>>>>>>>
Kenerl Hacking Babie
>>>>>>>>>>>>>>>
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Thu Apr 27, 2006 12:50 pm    Post subject: Reply with quote

some programs that I think the installation guide tells you to install. to put it (very) simple, coldplug will initialise your hardware upon boot, and hotplug does the same during normal operation of the system with hot-pluggable devices (usb sticks, sata drives, ...).
[I know that's not 100% accurate, but it should be accurate enough in this case]
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
zerop2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2006
Posts: 95

PostPosted: Thu Apr 27, 2006 1:55 pm    Post subject: Reply with quote

if i missed tick something when make menuconfig

coldplug will add for me?
_________________
>>>>>>>>>>>>>>>
Kenerl Hacking Babie
>>>>>>>>>>>>>>>
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Thu Apr 27, 2006 2:18 pm    Post subject: Reply with quote

uhm, no, hotplug and colplug are limited to the modules the kernel provides, they just make sure the right modules are loaded
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
zerop2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2006
Posts: 95

PostPosted: Fri Apr 28, 2006 6:56 am    Post subject: Reply with quote

i read handbook said that hotplug
is like plug and play


if i plug my usb key

will there anything show?
_________________
>>>>>>>>>>>>>>>
Kenerl Hacking Babie
>>>>>>>>>>>>>>>
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Fri Apr 28, 2006 7:49 am    Post subject: Reply with quote

that is correct, hotplug can somewhat be connected to plug&play....

whether something will show up or not will depend on your desktop environment and how you set things up. I believe KDE can be told to do something when usb devices are plugged in, at least that works on my girllfriend's computer (which uses kubuntu)
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum