当前位置: 主页 > 操作系统 > FreeBSD > FreeBSD 5-CURRENT内核配置与优化

FreeBSD 5-CURRENT内核配置与优化

时间:2010-5-19来源:互联网 点击:

# 优化SMP性能,把mutex(互斥体)变为自旋锁。我不敢用……
options ADAPTIVE_MUTEXES

# ATA 和 ATAPI 设备
device ata
device atadisk # ATA 磁盘驱动器
device atapicd # ATAPI光驱
device atapifd # ATAPI软驱
device atapist # ATAPI磁带机(财主的玩意
options ATA_STATIC_ID #静态设备标号

# SCSI 控制器
device ahb # EISA AHA1742 family
device ahc # AHA2940 and onboard AIC7xxx devices
device ahd # AHA39320/29320 and onboard AIC79xx devices
device amd # AMD 53C974 (Tekram DC-390(T))
device isp # Qlogic family
device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
device sym # NCR/Symbios Logic (newer chipsets those of `ncr‘)
device trm # Tekram DC395U/UW/F DC315U adapters

device adv # Advansys SCSI adapters
device adw # Advansys wide SCSI adapters
device aha # Adaptec 154x SCSI adapters
device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
device bt # Buslogic/Mylex MultiMaster SCSI adapters

device ncv # NCR 53C500
device nsp # Workbit Ninja SCSI-3
device stg # TMC 18C30/18C50

# 通过SCSI接口的RAID控制器
device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID
device ciss # Compaq Smart RAID 5*
device dpt # DPT Smartcache III, IV - See NOTES for options!
device iir # Intel Integrated RAID
device mly # Mylex AcceleRAID/eXtremeRAID

# SCSI设备
device scbus # SCSI bus (required)
device ch # SCSI media changers
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
device ses # SCSI Environmental Services (and SAF-TE)

# RAID控制器
device aac # Adaptec FSA RAID
device aacp # SCSI passthrough for aac (requires CAM)
device amr # AMI MegaRAID
device ida # Compaq Smart RAID
device mlx # Mylex DAC960 family
device pst # Promise Supertrak SX6000
device twe # 3ware ATA RAID

# atkbdc0同时用于控制键盘和PS/2鼠标器
device atkbdc # AT键盘控制器
device atkbd # AT键盘
device psm # PS/2 mouse

device vga # VGA显示卡

# 启动画面和屏幕保护程序[我的服务器平时不接显示器]
device splash

# syscons是默认的控制台驱动
device sc

# 启用VT220兼容的控制台驱动pcvt
#device vt
#options XSERVER # support for X server on a vt console
#options FAT_CURSOR # start with block cursor

device agp # AGP支持

# 浮点运算支持-必须保留
device npx

# 电源管理
#device apm
# i8254挂起及恢复支持
device pmtimer
# PCCARD (PCMCIA)支持
device cbb # cardbus (yenta) bridge
#device pcic # ExCA ISA and PCI bridges
device pccard # PC Card (16-bit) bus
device cardbus # CardBus (32-bit) bus

# 串口(COM)支持
device sio # 8250, 16[45]50 based serial ports

# 并口支持
device ppc
device ppbus # Parallel port bus (required)
device lpt # Printer
device plip # TCP/IP over parallel
device ppi # Parallel port interface device
#device vpo # Requires scbus and da


# 独立 PCI 以太网卡支持,这些设备不需要miibus,
# 非SMP情况下还支持DEVICE_POLLING,可惜我一个也没有
device de # DEC/Intel DC21x4x (``Tulip‘‘)
device em # Intel PRO/1000 adapter Gigabit Ethernet Card
device txp # 3Com 3cR990 (``Typhoon‘‘)
device vx # 3Com 3c590, 3c595 (``Vortex‘‘)

device miibus # MII bus支持

# 以下PCI以太网卡需要MII bus支持才能用
device dc # DEC/Intel 21143 and various workalikes
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
device pcn # AMD Am79C97x PCI 10/100 (precedence over ‘lnc‘)
device rl # RealTek 8129/8139
device sf # Adaptec AIC-6915 (``Starfire‘‘)
device sis # Silicon Integrated Systems SiS 900/SiS 7016
device ste # Sundance ST201 (D-Link DFE-550TX)
device tl # Texas Instruments ThunderLAN
device tx # SMC EtherPower II (83c170 ``EPIC‘‘)
device vr # VIA Rhine, Rhine II
device wb # Winbond W89C840F
device xl # 3Com 3c90x (``Boomerang‘‘, ``Cyclone‘‘)
device bge # Broadcom BCM570xx 千兆以太网卡

# ISA网卡
device cs # Crystal Semiconductor CS89x0 NIC
# ‘device ed‘ 需要 ‘device miibus‘
device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards
device ex # Intel EtherExpress Pro/10 and Pro/10
device ep # Etherlink III based cards
device fe # Fujitsu MB8696x based cards
device lnc # NE2100, NE32-VL Lance Ethernet cards
device sn # SMC‘s 9000 series of ethernet chips
device xe # Xircom pccard ethernet

# ISA设备,有个性的代码……
#device le

# Wireless NIC cards
device wlan # 802.11 support
device an # Aironet 4500/4800 802.11 wireless NICs.
device awi # BayStack 660 and others
device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
#device wl # Older non 802.11 Wavelan wireless NIC.

# 伪设备
device random # 随机数采集发生器(/dev/random, /dev/urandom)
device loop # 自环网络
device ether # 以太网支持
device sl # 内核级 SLIP
device ppp # 内核级 PPP
device tun # 包隧道(ppp, nos-tun
device pty # 伪tty (telnet等等)
device md # 虚拟盘
device gif # IPv6对IPv4隧道
device faith # IPv6对IPv4转发

# `bpf‘伪设备将启用伯克利数据包过滤器。
# 小心由此带来的管理问题
pseudo-device bpf #Berkeley packet filter

# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device urio # Diamond Rio 500 MP3 player
device uscanner # Scanners
# USB Ethernet, requires mii
device aue # ADMtek USB ethernet
device cue # CATC USB ethernet
device kue # Kawasaki LSI USB ethernet

粗略地说说上面的选择。COM, PPC这些东西不用我说,这台机器并不需要连接打印设备,也不需要连接COM口键盘,所以一律去掉。使用ULE调度器的原因是为了给FreeBSD的开发做点贡献,如果你不喜欢冒险的话,可以考虑使用4BSD的,当然,话说回来,如此在意稳定性的话,用4-STABLE可能是更好的选择。

站长资讯网
.
分页: [1] [2]
TAG: freebsd 内核 配置优化
推荐内容最近更新人气排行
关于我们 | 友情链接 | 网址推荐 | 常用资讯 | 网站地图 | RSS | 留言