康柏C500的合理内核减少

时间:2019-02-13 06:24:53

标签: optimization module linux-kernel kernel

我正在旧的Compaq C500笔记本电脑上运行Debian Testing发行版。 我正在使用的内核是4.9.130,我将其缩减为3.5 mb,使用localmodconfig给出的.config对其进行编译。 我还能做些什么来进一步减小尺寸? 我说的是禁用功能或排除模块,这将在不妨碍正常桌面安装功能的情况下显着减少大小和内存占用。 以下是有关当前加载的硬件和模块的重要数据。

lsmod
Module                  Size  Used by
nls_iso8859_1          16384  1
nls_cp437              16384  1
jfs                   176128  0
vfat                   20480  1
fat                    65536  1 vfat
isofs                  40960  0
uas                    24576  0
usb_storage            53248  2 uas
ctr                    16384  2
ccm                    20480  1
arc4                   16384  2
b43                   389120  0
rng_core               16384  1 b43
bcma                   45056  1 b43
snd_hda_codec_conexant    16384  1
mac80211              548864  1 b43
snd_hda_codec_generic    65536  1 snd_hda_codec_conexant
cfg80211              446464  2 b43,mac80211
snd_hda_intel          28672  0
snd_hda_codec          94208  3 
snd_hda_intel,snd_hda_codec_conexant,snd_hda_codec_generic
snd_hwdep              16384  1 snd_hda_codec
snd_hda_core           57344  4 
i915                 1179648  5
snd_pcm                81920  3 
snd_hda_intel,snd_hda_codec,snd_hda_core
ssb                    57344  1 b43
snd_timer              28672  1 snd_pcm
i2c_algo_bit           16384  1 i915
drm_kms_helper        114688  1 i915
hp_wmi                 16384  0
sparse_keymap          16384  1 hp_wmi
rfkill                 20480  4 hp_wmi,cfg80211
pcmcia                 49152  1 ssb
pcmcia_core            20480  1 pcmcia
coretemp               16384  0
mmc_core              122880  2 b43,ssb
drm                   249856  7 i915,drm_kms_helper
evdev                  20480  10
pcspkr                 16384  0
snd                    53248  7 
snd_hda_intel,snd_hwdep,snd_hda_codec_conexant,
 snd_hda_codec,snd_timer,snd_hda_codec_generic,snd_pcm
shpchp                 32768  0
ac                     16384  0
soundcore              16384  1 snd
video                  36864  1 i915
wmi                    16384  1 hp_wmi
button                 16384  1 i915
acpi_cpufreq           20480  0
ip_tables              20480  0
x_tables               20480  1 ip_tables
autofs4                36864  0
ext4                  495616  2
crc16                  16384  1 ext4
jbd2                   81920  1 ext4
crc32c_generic         16384  4
fscrypto               24576  1 ext4
ecb                    16384  0
xts                    16384  0
lrw                    16384  0
gf128mul               20480  2 lrw,xts
ablk_helper            16384  0
cryptd                 20480  1 ablk_helper
aes_i586               20480  2
mbcache                16384  3 ext4
sd_mod                 40960  6
psmouse               118784  0
ahci                   36864  3
libahci                28672  1 ahci
libata                192512  2 ahci,libahci
scsi_mod              180224  4 sd_mod,usb_storage,libata,uas
i2c_i801               24576  0
i2c_smbus              16384  1 i2c_i801
8139too                32768  0
8139cp                 28672  0
mii                    16384  2 8139cp,8139too
ehci_pci               16384  0
uhci_hcd               40960  0
ehci_hcd               65536  1 ehci_pci
usbcore               184320  5 
usb_storage,ehci_hcd,uhci_hcd,uas,ehci_pci
usb_common             16384  1 usbcore
thermal                20480  0

lshw

description: Computer
width: 32 bits
*-core
   description: Motherboard
   physical id: 0
 *-memory
      description: System memory
      physical id: 0
      size: 481MiB
 *-cpu
      product: Genuine Intel(R) CPU           T2080  @ 1.73GHz
      vendor: Intel Corp.
      physical id: 1
      bus info: cpu@0
      version: 6.14.12
      serial: 0000-06EC-0000-0000-0000-0000
      size: 1733MHz
      capacity: 1733MHz
      width: 32 bits
      capabilities: fpu fpu_exception wp vlshwme de pse tsc msr pae 
     mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse 
    sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts aperfmperf pni 
    monitor est tm2 xtpr pdcm dtherm cpufreq
      configuration: id=1
    *-logicalcpu:0
         description: Logical CPU
         physical id: 1.1
         width: 32 bits
         capabilities: logical
    *-logicalcpu:1
         description: Logical CPU
         physical id: 1.2
         width: 32 bits
         capabilities: logical
    *-pci
      description: Host bridge
      product: Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub
      vendor: Intel Corporation
      physical id: 100
      bus info: pci@0000:00:00.0
      version: 03
      width: 32 bits
      clock: 33MHz
      configuration: driver=agpgart-intel
      resources: irq:0
    *-display:0
         description: VGA compatible controller
         product: Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller
         vendor: Intel Corporation
         physical id: 2
         bus info: pci@0000:00:02.0
         version: 03
         width: 32 bits
         clock: 33MHz
         capabilities: vga_controller bus_master cap_list rom
         configuration: driver=i915 latency=0
         resources: irq:16 memory:d0200000-d027ffff ioport:1800(size=8) memory:c0000000-cfffffff memory:d0300000-d033ffff
    *-display:1 UNCLAIMED
         description: Display controller
         product: Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller
         vendor: Intel Corporation
         physical id: 2.1
         bus info: pci@0000:00:02.1
         version: 03
         width: 32 bits
         clock: 33MHz
         capabilities: bus_master cap_list
         configuration: latency=0
         resources: memory:d0280000-d02fffff
    *-multimedia
         description: Audio device
         product: NM10/ICH7 Family High Definition Audio Controller
         vendor: Intel Corporation
         physical id: 1b
         bus info: pci@0000:00:1b.0
         version: 01
         width: 64 bits
         clock: 33MHz
         capabilities: bus_master cap_list
         configuration: driver=snd_hda_intel latency=0
         resources: irq:27 memory:d0340000-d0343fff
    *-pci:0
         description: PCI bridge
         product: NM10/ICH7 Family PCI Express Port 1
         vendor: Intel Corporation
         physical id: 1c
         bus info: pci@0000:00:1c.0
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: pci normal_decode bus_master cap_list
         configuration: driver=pcieport
         resources: irq:24 ioport:3000(size=4096) memory:20000000-201fffff ioport:20200000(size=2097152)
    *-pci:1
         description: PCI bridge
         product: NM10/ICH7 Family PCI Express Port 3
         vendor: Intel Corporation
         physical id: 1c.2
         bus info: pci@0000:00:1c.2
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: pci normal_decode bus_master cap_list
         configuration: driver=pcieport
         resources: irq:25 ioport:4000(size=4096) memory:20400000-206fffff ioport:20700000(size=2097152)
       *-network
            description: Network controller
            product: BCM4311 802.11b/g WLAN
            vendor: Broadcom Corporation
            physical id: 0
            bus info: pci@0000:06:00.0
            version: 01
            width: 32 bits
            clock: 33MHz
            capabilities: bus_master cap_list
            configuration: driver=b43-pci-bridge latency=0
            resources: irq:18 memory:20400000-20403fff
    *-usb:0
         description: USB controller
         product: NM10/ICH7 Family USB UHCI Controller #1
         vendor: Intel Corporation
         physical id: 1d
         bus info: pci@0000:00:1d.0
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: uhci bus_master
         configuration: driver=uhci_hcd latency=0
         resources: irq:23 ioport:1820(size=32)
    *-usb:1
         description: USB controller
         product: NM10/ICH7 Family USB UHCI Controller #2
         vendor: Intel Corporation
         physical id: 1d.1
         bus info: pci@0000:00:1d.1
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: uhci bus_master
         configuration: driver=uhci_hcd latency=0
         resources: irq:19 ioport:1840(size=32)
    *-usb:2
         description: USB controller
         product: NM10/ICH7 Family USB UHCI Controller #3
         vendor: Intel Corporation
         physical id: 1d.2
         bus info: pci@0000:00:1d.2
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: uhci bus_master
         configuration: driver=uhci_hcd latency=0
         resources: irq:18 ioport:1860(size=32)
    *-usb:3
         description: USB controller
         product: NM10/ICH7 Family USB2 EHCI Controller
         vendor: Intel Corporation
         physical id: 1d.7
         bus info: pci@0000:00:1d.7
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: ehci bus_master cap_list
         configuration: driver=ehci-pci latency=0
         resources: irq:23 memory:d0544000-d05443ff
    *-pci:2
         description: PCI bridge
         product: 82801 Mobile PCI Bridge
         vendor: Intel Corporation
         physical id: 1e
         bus info: pci@0000:00:1e.0
         version: e1
         width: 32 bits
         clock: 33MHz
         capabilities: pci subtractive_decode bus_master cap_list
         resources: ioport:2000(size=4096) memory:d0100000-d01fffff
       *-network
            description: Ethernet interface
            product: RTL-8139/8139C/8139C+
            vendor: Realtek Semiconductor Co., Ltd.
            physical id: 8
            bus info: pci@0000:08:08.0
            logical name: eth0
            version: 10
            serial: 00:1b:38:2f:6a:db
            size: 10Mbit/s
            capacity: 100Mbit/s
            width: 32 bits
            clock: 33MHz
            capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
            configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=32 link=no maxlatency=64 mingnt=32 multicast=yes port=MII speed=10Mbit/s
            resources: irq:16 ioport:2000(size=256) memory:d0100000-d01000ff
    *-isa
         description: ISA bridge
         product: 82801GBM (ICH7-M) LPC Interface Bridge
         vendor: Intel Corporation
         physical id: 1f
         bus info: pci@0000:00:1f.0
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: isa bus_master cap_list
         configuration: driver=lpc_ich latency=0
         resources: irq:0
    *-ide
         description: IDE interface
         product: 82801G (ICH7 Family) IDE Controller
         vendor: Intel Corporation
         physical id: 1f.1
         bus info: pci@0000:00:1f.1
         version: 01
         width: 32 bits
         clock: 33MHz
         capabilities: ide bus_master
         configuration: driver=ata_piix latency=0
         resources: irq:19 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:1810(size=16)
    *-storage
         description: SATA controller
         product: 82801GBM/GHM (ICH7-M Family) SATA Controller [AHCI mode]
         vendor: Intel Corporation
         physical id: 1f.2
         bus info: pci@0000:00:1f.2
         version: 01
         width: 32 bits
         clock: 66MHz
         capabilities: storage ahci_1.0 bus_master cap_list
         configuration: driver=ahci latency=0
         resources: irq:26 ioport:18b0(size=8) ioport:18a4(size=4) ioport:18a8(size=8) ioport:18a0(size=4) ioport:1890(size=16) memory:d0544400-d05447ff
    *-serial
         description: SMBus
         product: NM10/ICH7 Family SMBus Controller
         vendor: Intel Corporation
         physical id: 1f.3
         bus info: pci@0000:00:1f.3
         version: 01
         width: 32 bits
         clock: 33MHz
         configuration: driver=i801_smbus latency=0
         resources: irq:19 ioport:18c0(size=32)
 *-scsi:0
      physical id: 2
      logical name: scsi0
      capabilities: emulated
    *-disk
         description: ATA Disk
         product: ST9120822AS
         vendor: Seagate
         physical id: 0.0.0
         bus info: scsi@0:0.0.0
         logical name: /dev/sda
         version: D
         serial: 5LZ3FCPE
         size: 111GiB (120GB)
         capabilities: partitioned partitioned:dos
         configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=0008e06f
       *-volume:0
            description: EXT4 volume
            vendor: Linux
            physical id: 1
            bus info: scsi@0:0.0.0,1
            logical name: /dev/sda1
            version: 1.0
            serial: 41326814-4778-4a70-a9b3-742ffe966cd6
            size: 58GiB
            capacity: 58GiB
            capabilities: primary journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized
            configuration: created=2017-07-21 19:29:40 filesystem=ext4 lastmountpoint=/run/media/mac/41326814-4778-4a70-a9b3-742ffe966cd6 modified=2017-07-28 09:50:31 mounted=2017-07-28 06:21:44 state=clean
       *-volume:1
            description: Linux swap volume
            physical id: 2
            bus info: scsi@0:0.0.0,2
            logical name: /dev/sda2
            version: 1
            serial: 14487d0d-6dfe-42e5-89c5-059183caf988
            size: 920MiB
            capacity: 920MiB
            capabilities: primary nofs swap initialized
            configuration: filesystem=swap pagesize=4096
       *-volume:2
            description: EXT4 volume
            vendor: Linux
            physical id: 3
            bus info: scsi@0:0.0.0,3
            logical name: /dev/sda3
            logical name: /
            version: 1.0
            serial: 577e787e-c3fb-480d-80af-7401a95a563e
            size: 52GiB
            capacity: 52GiB
            capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
            configuration: created=2017-07-27 16:41:48 filesystem=ext4 lastmountpoint=/ modified=2017-07-27 16:57:29 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2017-07-29 02:11:38 state=mounted
 *-scsi:1
      physical id: 3
      logical name: scsi4
      capabilities: emulated
    *-cdrom
         description: DVD-RAM writer
         product: DVD RW AD-7530A
         vendor: Optiarc
         physical id: 0.0.0
         bus info: scsi@4:0.0.0
         logical name: /dev/cdr
         logical name: /dev/cdr0
         logical name: /dev/cdrom
         logical name: /dev/cdrom0
         logical name: /dev/cdrw
         logical name: /dev/cdrw0
         logical name: /dev/cdwriter
         logical name: /dev/cdwriter0
         logical name: /dev/dvd
         logical name: /dev/dvd0
         logical name: /dev/dvdr
         logical name: /dev/dvdr0
         logical name: /dev/dvdrw
         logical name: /dev/dvdrw0
         logical name: /dev/dvdwriter
         logical name: /dev/dvdwriter0
         logical name: /dev/sr0
         version: EH31
         capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
         configuration: ansiversion=5 status=nodisc
   *-network:0
   description: Wireless interface
   physical id: 1
   logical name: wlan0
   serial: 00:1a:73:67:e0:ab
   capabilities: ethernet physical wireless
   configuration: broadcast=yes driver=b43 driverversion=4.4.76 
   firmware=410.2160 ip=10.0.0.12 link=yes multicast=yes wireless=IEEE 
   802.11bg
   *-network:1
   description: Wireless interface
   physical id: 2
   bus info: usb@1:1
   logical name: wlan1
   serial: 32:47:a3:df:2a:98
   capabilities: ethernet physical wireless
   configuration: broadcast=yes driver=mt7601u driverversion=4.4.76 
   firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn

0 个答案:

没有答案