Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Blacklisting useless modules

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
Danielsan
Posts: 659
Joined: 2010-10-10 22:36
Has thanked: 5 times

Blacklisting useless modules

#1 Post by Danielsan »

Hi guys, I have just noticed my kernel is loading some useless modules like the parallel port module, I think I can disable many others, about my modules what do you think I can blacklist? I found these:

parport_pc
parport_pc
btrfs -- I am not using this filesystem
psmouse -- If this doesn't affect usb mouse

Code: Select all

lsmod
Module                  Size  Used by
pci_stub               16384  1
vboxpci                24576  0
vboxnetadp             28672  0
vboxnetflt             28672  0
vboxdrv               450560  3 vboxnetadp,vboxnetflt,vboxpci
binfmt_misc            20480  1
uvcvideo               90112  0
ath3k                  20480  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
bluetooth             512000  1 ath3k
videobuf2_core         49152  1 uvcvideo
v4l2_common            16384  1 videobuf2_core
videodev              163840  3 uvcvideo,v4l2_common,videobuf2_core
media                  24576  2 uvcvideo,videodev
hp_wmi                 16384  0
sparse_keymap          16384  1 hp_wmi
amdkfd                122880  1
arc4                   16384  2
radeon               1490944  3
kvm_amd                65536  0
snd_hda_codec_realtek    81920  1
kvm                   507904  1 kvm_amd
ath9k                  94208  0
ath9k_common           32768  1 ath9k
ath9k_hw              446464  2 ath9k_common,ath9k
ath                    32768  3 ath9k_common,ath9k,ath9k_hw
pcspkr                 16384  0
mac80211              626688  1 ath9k
joydev                 20480  0
evdev                  20480  14
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     49152  1
serio_raw              16384  0
k10temp                16384  0
snd_hda_intel          36864  10
rtsx_pci_ms            20480  0
memstick               20480  1 rtsx_pci_ms
cfg80211              540672  4 ath,ath9k_common,ath9k,mac80211
snd_hda_codec         135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
ttm                    94208  1 radeon
rfkill                 24576  5 cfg80211,hp_wmi,bluetooth
drm_kms_helper        131072  1 radeon
snd_hda_core           65536  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
sg                     32768  0
snd_hwdep              16384  1 snd_hda_codec
snd_pcm_oss            49152  0
drm                   348160  6 ttm,drm_kms_helper,radeon
shpchp                 36864  0
sp5100_tco             16384  0
snd_mixer_oss          24576  3 snd_pcm_oss
wmi                    20480  1 hp_wmi
snd_pcm               102400  5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
i2c_algo_bit           16384  1 radeon
i2c_piix4              24576  0
snd_timer              32768  1 snd_pcm
ac                     16384  0
video                  36864  0
button                 16384  0
battery                16384  0
snd                    81920  26 snd_hda_codec_realtek,snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_mixer_oss
soundcore              16384  3 snd
acpi_cpufreq           20480  0
tpm_tis                20480  0
tpm                    40960  1 tpm_tis
processor              36864  3 acpi_cpufreq
loop                   28672  0
parport_pc             28672  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,ppdev,parport_pc
autofs4                40960  2
ext4                  577536  2
crc16                  16384  2 ext4,bluetooth
mbcache                20480  1 ext4
jbd2                  106496  1 ext4
crc32c_generic         16384  1
btrfs                 954368  0
xor                    24576  1 btrfs
raid6_pq              102400  1 btrfs
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  2 hid_generic,usbhid
sr_mod                 24576  0
cdrom                  57344  1 sr_mod
sd_mod                 40960  3
rtsx_pci_sdmmc         24576  0
mmc_core              126976  1 rtsx_pci_sdmmc
ohci_pci               16384  0
psmouse               126976  0
ehci_pci               16384  0
ohci_hcd               49152  1 ohci_pci
r8169                  81920  0
mii                    16384  1 r8169
ehci_hcd               77824  1 ehci_pci
rtsx_pci               53248  2 rtsx_pci_ms,rtsx_pci_sdmmc
mfd_core               16384  1 rtsx_pci
ahci                   36864  3
libahci                32768  1 ahci
libata                233472  2 ahci,libahci
usbcore               233472  7 ath3k,uvcvideo,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid
scsi_mod              229376  4 sg,libata,sd_mod,sr_mod
usb_common             16384  1 usbcore
thermal                20480  0

User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: Blacklisting useless modules

#2 Post by edbarx »

You can experiment with:

Code: Select all

modprobe -r kernel-module
provided modprobe has not been devoured by systemd. If that is the case, use what systemd offers you. Be aware if you have systemd installed, that Debian is concentrating its energy and motivation to have that working.

modprobe -r may result in unresponsive hardware if essential drivers are unloaded.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

Post Reply