Linux 2.6.31内核优化-2

阅读更多

Device Drivers  --->

Generic Driver Options  --->

(/sbin/hotplug) path to uevent helper

[*] Prevent firmware from being built

-*- Userspace firmware loading support

[*]   Include in-kernel firmware blobs in kernel binary

()    External firmware blobs to build into the kernel binary

[ ] Driver Core verbose debug messages

[ ] Managed device resources verbose debug messages <=== 管理设备资源的冗长调试信息,我不需要

<*> Connector - unified userspace <-> kernelspace linker  --->// 内核空间与用户空间的信道

[*]   Report process events to userspace // 报告处理时间给用户空间

< > Memory Technology Device (MTD) support  --->

< > Parallel port support  --->

-*- Plug and Play support  --->

[ ]   PNP debugging messages <=== 调试信息,老规矩

[ ] Block devices  ---> <=== 我没有想要支持的块设备,比如ramdisk, 磁盘阵列,CD/DVD刻录等,详见内部选项

[ ] Misc devices  ---> <=== 没有需要支持的杂项设备

< > ATA/ATAPI/MFM/RLL support  --->

SCSI device support  --->

< > RAID Transport Class

-*- SCSI device support

[] legacy /proc/scsi/ support <=== 我没有SCSI设备

*** SCSI support type (disk, tape, CD-ROM) ***

<*> SCSI disk support // 就算你用SATA,此选项也必选

< > SCSI tape support

< > SCSI OnStream SC-x0 tape support

<> SCSI CDROM support <=== 我没有SCSI设备

<> SCSI generic support <=== 我没有SCSI设备

< > SCSI media changer support

[ ] Probe all LUNs on each SCSI device

[] Verbose SCSI error reporting (kernel size +=12K) <=== 我没有SCSI设备

[ ] SCSI logging facility

[ ] Asynchronous SCSI scanning

SCSI Transports  --->

<> Parallel SCSI (SPI) Transport Attributes <=== 我没有SCSI设备

< > FiberChannel Transport Attributes

< > iSCSI Transport Attributes

< > SAS Domain Transport Attributes

< > SRP Transport Attributes

[ ] SCSI low-level drivers  --->

< > SCSI Device Handlers  --->

< > OSD-Initiator library

Serial ATA (prod) and Parallel ATA (experimental) drivers  --->

[*]   ATA ACPI Support

[ ]   SATA Port Multiplier support <=== 我只有一枚SATA设备,没有使用 多路SATA/SATA Hub 的需求。Port Multiplier是南桥芯片提供的一种支持多块SATA设备,并共享总带宽的技术。

<*>   AHCI SATA support

< >   Silicon Image 3124/3132 SATA support

[*]   ATA SFF support

< >     ServerWorks Frodo / Apple K2 SATA support

<*>     Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support // Intel ICHG系列chipset driver

< >     Marvell SATA support 

< >     NVIDIA SATA support  

< >     Pacific Digital ADMA support                  

< >     Pacific Digital SATA QStor support            

< >     Promise SATA TX2/TX4 support                  

< >     Silicon Image SATA support                    

< >     SiS 964/965/966/180 SATA support              

< >     ULi Electronics SATA support                  

< >     VIA SATA support     

< >     VITESSE VSC-7174 / INTEL 31244 SATA support   

< >     Initio 162x SATA support                      

< >     ACPI firmware driver for PATA                 

< >     ALi PATA support     

< >     AMD/NVidia PATA support <=== 我用的是SATA,取消PATA支持

< >     ARTOP 6210/6260 PATA support                  

< >     ATI PATA support     

< >     CMD64x PATA support  

< >     CS5510/5520 PATA support                      

< >     CS5530 PATA support

< >     CS5536 PATA support                           

< >     EFAR SLC90E66 support                         

< >     Generic ATA support                           

< >     HPT 366/368 PATA support                      

< >     HPT 343/363 PATA support                      

< >     IT8211/2 PATA support                         

< >     JMicron PATA support                           

< >     Compaq Triflex PATA support                   

< >     Marvell PATA support via legacy mode          

<>     Intel PATA MPIIX support <=== 我用的是SATA,取消PATA支持

< >     Intel PATA old PIIX support <=== 我用的是SATA,取消PATA支持

< >     NETCELL Revolution RAID support               

< >     Nat Semi NS87410 PATA support                 

< >     Nat Semi NS87415 PATA support                 

< >     Older Promise PATA controller support         

< >     PC Tech RZ1000 PATA support                   

< >     SC1200 PATA support                           

< >     SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support

< >     Promise PATA 2027x support                    

< >     CMD / Silicon Image 680 PATA support          

< >     SiS PATA support                              

< >     VIA PATA support                              

< >     Winbond SL82C105 PATA support                 

< >     Intel SCH PATA support <=== 我用的是SATA,取消PATA支持

[ ] Multiple devices driver support (RAID and LVM)  ---> <=== 暂时没有要使用Raid(磁盘阵列)和LVM(逻辑卷管理器,添加,删除逻辑分区)的需求

[ ] Fusion MPT device support  --->

IEEE 1394 (FireWire) support  --->

< > I2O device support  --->

[ ] Macintosh device drivers  ---> <=== Mac系统硬件设备驱动,没什么好说的,关

[*] Network device support  --->

< >   Dummy net driver support                        

< >   Bonding driver support                          

< >   EQL (serial line load balancing) support        

< >   Universal TUN/TAP device driver support         

< >   Virtual ethernet pair device                    

< >   General Instruments Surfboard 1000              

< >   ARCnet support  ---> 

<>   PHY Device support and infrastructure  ---> <=== PHY (物理层控制芯片 ,里面没有我对应的硬件

[*]   Ethernet (10 or 100Mbit)  --->

-*-   Generic Media Independent Interface device support

< >   Sun Happy Meal 10/100baseT support              

< >   Sun GEM support                                 

< >   Sun Cassini support                             

[ ]   3COM cards <=== 我不是3COM网卡

[]   "Tulip" family network device support  ---> <=== 不是 Tulip 系列

< >   HP 10/100VG PCLAN (ISA, EISA, PCI) support      

[*]   EISA, VLB, PCI and on board controllers

<*>     AMD PCnet32 PCI support  // 这是我的网卡驱动                     

< >     AMD 8111 (new PCI lance) support              

< >     Adaptec Starfire/DuraLAN support              

< >   Broadcom 440x/47xx ethernet support             

< >   nForce Ethernet support  <=== 不是 nForce 网卡       

< >   Intel(R) PRO/100+ support  <=== 不是 Intel 网卡            

< >   Myson MTD-8xx PCI Ethernet support              

< >   National Semiconductor DP8381x series PCI Ethernet support

<>   PCI NE2000 and clones support (see help) <=== NE2000无关

<>   RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support <=== 不是 RealTek 网卡

[ ]     Use PIO instead of MMIO                       

[ ]     Support for uncommon RTL-8139 rev. K (automatic channel equalization)

[ ]     Support for older RTL-8129/8130 boards        

[ ]     Use older RX-reset method

< >   RDC R6040 Fast Ethernet Adapter support         

< >   SiS 900/7016 PCI Fast Ethernet Adapter support  

< >   SMC EtherPower II                               

< >   SMSC LAN9420 PCI ethernet adapter support       

< >   Sundance Alta support                            

< >   TI ThunderLAN support                           

< >   Micrel KSZ8842                                  

< >   VIA Rhine support                               

< >   Atheros L2 Fast Ethernet support

[]   Ethernet (1000 Mbit)  ---> <=== 如果你是千M卡,请自行选择

[]   Ethernet (10000 Mbit)  ---> <=== 如果你是万M卡,请自行选择

<>   Token Ring driver support  ---> <=== IBM的令牌环网,用以太网的忽略

      Wireless LAN  --->                              

      *** Enable WiMAX (Networking options) to see the WiMAX drivers *** 

      USB Network Adapters  --->                      

[ ]   Wan interfaces support  --->                    

<>   FDDI driver support <=== 光纤卡驱动,相信没几个人能用上这玩意

< >   PPP (point-to-point protocol) support           

< >   SLIP (serial line) support                      

[ ]   Fibre Channel driver support

[ ] ISDN support  --->       

< > Telephony support  --->  

Input device support  --->

-*- Generic input layer (needed for keyboard, mouse, ...)

-*-   Support for memoryless force-feedback devices   

<>   Polled input device skeleton  <=== 一种周期性轮询硬件状态的驱动,去掉后没什么副作用

      *** Userland interfaces ***                     

-*-   Mouse interface

[ ]     Provide legacy /dev/psaux device 

(1024)  Horizontal screen resolution                  

(768)   Vertical screen resolution                    

< >   Joystick interface                              

<>   Event interface  <=== 将输入设备的事件存储到/dev/input/eventX供应用程序读取,没相关需求

< >   Event debugging                                 

      *** Input Device Drivers ***                    

-*-   Keyboards  --->

[]   Mice  ---> <=== 我是用纯字符终端,如果你想用X window,请自行选择                             

[]   Joysticks/Gamepads  --->  <=== 游戏设备

[]   Tablets  ---> <=== 平板PC

[]   Touchscreens  --->  <=== 触摸屏

[]   Miscellaneous devices  ---> <=== 杂七杂八的驱动,扬声器,笔记本扩展按键等

Hardware I/O ports  --->

Character devices  ---> 

-*- Virtual terminal         

[]   Support for binding and unbinding console drivers // 在某些系统上可以使用多个控制台驱动程序(framebuffer控制台驱动程序),该选项使得你可以选择其中之一 ,我一般只用默认的虚拟终端

[] /dev/kmem virtual device support  <=== 支持/dev/kmem设备,很少用    

[] Non-standard serial port support  <=== 我没有非标准的串口设备

 Serial drivers  --->

< > 8250/16550 and compatible serial support <=== 兼容一些老式的串口设备,我一般不用

    *** Non-8250 serial port support ***

< > Digi International NEO PCI Support

-*- Unix98 PTY support       

[ ]   Support multiple instances of devpts            

[ ] Legacy (BSD) PTY support 

< > IPMI top-level message handler  --->              

<*> Hardware Random Number Generator Core support     

< >   Timer IOMEM HW Random Number Generator support  

<*>   Intel HW Random Number Generator support    

<>   AMD HW Random Number Generator support  <=== 我是intel主板

 < >   AMD Geode HW Random Number Generator support <=== 我是intel主板

<>   VIA HW Random Number Generator support <=== 我是intel主板    

<> /dev/nvram support  <=== 直接存取CMOS,太危险,关

< > Siemens R3964 line discipline

< > Applicom intelligent fieldbus card support        

< > ACP Modem (Mwave) support

< > NatSemi PC8736x GPIO Support                      

< > NatSemi Base GPIO Support

< > AMD CS5535/CS5536 GPIO (Geode Companion Device)   

< > RAW driver (/dev/raw/rawN)

[*] HPET - High Precision Event Timer              

[ ]   Allow mmap of HPET     

< > Hangcheck timer

-*- I2C support  ---> // 感知硬件状态,比如温度,风扇转速

[ ] SPI support  --->        

    PPS support  --->        

[ ] GPIO Support  --->       

< > Dallas's 1-wire support  --->                     

-*- Power supply class support  --->                  

<*> Hardware Monitoring support  --->      

-*- Generic Thermal sysfs driver  --->                

[*] Watchdog Timer Support  --->                       

    Sonics Silicon Backplane  --->                    

    Multifunction device drivers  --->                

[ ] Voltage and Current Regulator Support  --->       

< > Multimedia support  ---> 

Graphics support  --->

<> /dev/agpgart (AGP Support)  ---> <=== 用字符终端的忽略            

<> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  ---> <=== 用字符终端的忽略

<> Lowlevel video output switch controls  <=== 用字符终端的忽略

<> Support for frame buffer devices  --->  <=== 用字符终端的忽略

[] Backlight & LCD device support  --->  <=== 用字符终端的忽略

    Display device support  ---> 

    Console display driver support  --->  

[*]   Enable Scrollback Buffer in System RAM

(64)    Scrollback Buffer Size (in KB)

<> Sound card support  --->  <=== 用不到声卡

[] HID Devices  --->  <=== 用不到人力工程学设备

[] USB support  --->  <=== 这个选项,对于跑物理机建议开启,因为有可能你的键盘是USB的,我是跑虚拟机的,所以关了

< > MMC/SD/SDIO card support  --->  

< > Sony MemoryStick card support (EXPERIMENTAL)  --->

[] LED Support  --->  <=== 发光二级管,应该是跟显示器相关的驱动,由于我运行的是虚拟机,所以我选择关闭

[ ] Accessibility support  --->

< > InfiniBand support  ---> 

[*] EDAC (Error Detection And Correction) reporting  ---> // 硬件故障repoting

<*> Real Time Clock  --->

[*] DMA Engine support  ---> 

[ ] Auxiliary Display support  --->                   

< > Userspace I/O drivers  --->                       

    TI VLYNQ  --->           

[ ] Staging drivers  --->    

[] X86 Platform Specific Device Drivers  ---> <=== 一些笔记本的驱动,我没有相关设备

 

Firmware Drivers  --->

< > BIOS Enhanced Disk Drive calls determine boot disk

< > BIOS update support for DELL systems via sysfs    

< > Dell Systems Management Base Driver               

[*] Export DMI identification via sysfs to userspace   // BIOS里的DMI区信息导出到用户空间,部分系统管理工具可能会用到

[ ] iSCSI Boot Firmware Table Attributes

 

File systems  --->

< > Second extended fs support

<> Ext3 journalling file system support <=== 我使用的是ext4 FS

<*> The Extended 4 (ext4) filesystem

[ ]   Enable ext4dev compatibility                    

[*]   Ext4 extended attributes

[*]     Ext4 POSIX Access Control Lists

[]     Ext4 Security Labels  <=== 取消 SELinux 支持

[ ] JBD (ext3) debugging support

[ ] JBD2 (ext4) debugging support                     

< > Reiserfs support         

< > JFS filesystem support   

< > XFS filesystem support   

< > OCFS2 file system support

[*] Dnotify support          

[*] Inotify file change notification support          

[*] Inotify support for userspace                     

[] Quota support <=== 磁盘配额支持,限制某个用户或者某组用户的磁盘占用空间,暂时没这个需求,你可以把它编译成模块

< > Kernel automounter support

<*> Kernel automounter version 4 support (also supports v3)  <=== 我没有要挂载远程文件系统的需求

< > FUSE (Filesystem in Userspace) support

    Caches  ---> 

    CD-ROM/DVD Filesystems  ---> 

<> ISO 9660 CDROM file system support  <=== 在虚拟机内,我不用CDROM              

< > UDF file system support

    DOS/FAT/NT Filesystems  --->

< > MSDOS fs support <=== 我没有微软fs的设备

< > VFAT (Windows-95) fs support  <=== 我没有微软fs的设备

< > NTFS file system support

    Pseudo filesystems  ---> 

[] Miscellaneous filesystems  ---> <=== 如果你没有其他FS的支持需求,关

[] Network File Systems  ---> <=== 如果你没有其他NFS的支持需求,关

    Partition Types  --->    

[ ] Advanced partition selection <=== 如果不是和其他系统共存,可以不选

-*- Native language support  ---> // 选上Chinese

 

Kernel hacking  --->

[] Show timing information on printks  <=== printk的输出中包含时间信息,可以用来分析内核启动过程各步骤所用时间 , 我不需要debug内核

[ ] Enable __deprecated logic                         

[*] Enable __must_check logic                         

(2048) Warn for stack frames larger than (needs gcc 4.4)

[] Magic SysRq key <=== 一种通过快捷键控制系统方式,除非你非常清楚这个选项,官方不推荐选择

[ ] Enable unused/obsolete exported symbols           

-*- Debug Filesystem

[ ] Run 'make headers_check' when building vmlinux    

[] Kernel debugging <=== 内核调试,关                    

[ ] Enable SLUB performance statistics                                                                           

[] Compile the kernel with frame pointers  <=== 还是跟内核开发有关

[ ] Delay each boot printk message by N milliseconds  

< > torture tests for RCU                             

[ ] Check for stalled CPUs delaying RCU grace periods 

< > Self test for the backtrace code                  

[ ] Force extended block device numbers and spread them

[ ] Fault-injection framework                          

[ ] Latency measuring infrastructure                  

[*] Sysctl checks

[] Tracers  ---> <=== 内核跟踪分析器

[] Remote debugging over FireWire early on boot  <=== 启动过程中,允许远程调试内核

[ ] Enable dynamic printk() support

[ ] Enable debugging of DMA-API usage

[ ] Sample kernel code  --->                          

[ ] Filter access to /dev/mem

[] Enable verbose x86 bootup info messages <=== 在内核镜像解压缩阶段输出启动信息,关闭后相当于无声启动(Slient Bootup)

-*- Early printk 

[]   Early printk via EHCI debug port  <=== 允许printk通过EHCI调试端口输出内核日志,调试的一律关

[ ] Use 4Kb for kernel stacks instead of 8Kb

[ ] Enable IOMMU stress-test mode

    IO delay type (port 0x80 based port-IO delay [recommended])  --->  

[*] Allow gcc to uninline functions marked 'inline'

 

Security options  --->  <=== 安全特性,我选择全关,当然,这些选项不会影响你的日常开发,办公

[] Enable access key retention support <=== 关闭

[] Enable different security models <=== 关闭

[ ] Enable the securityfs filesystem

[] File POSIX Capabilities <=== 关闭

[ ] Integrity Measurement Architecture(IMA)

 

<*> Cryptographic API  ---> // 加密API,这部分选项会根据此前的优化自动调整,默认即可

[] Virtualization  ---> <=== 我的系统已经运行在虚拟机中,不需要再支持虚拟化

Library routines  ---> // 库子程序,这部分选项会根据此前的优化自动调整,默认即可

 

你可能感兴趣的:(Linux,虚拟机,HP,Security,GCC)