# # DELPHIJ -- Kernel configuration file for FreeBSD/i386 # machine i386 cpu I486_CPU # 默认已经没有i386了,但i486… cpu I586_CPU # 还有这个i586都不适应我的情况 cpu I686_CPU ident DELPHIJ # 签上我的名 maxusers 0 # VMWare对于这条指令的模拟有问题。加上这个选项可以大大地 # 提高系统速度;我没有选中它,因为我的系统需要SMP,而且 # 不是VMWare虚拟机 SMP和这条选项的连用结果是系统崩溃! options CPU_DISABLE_CMPXCHG #静态连接device.hints,而不是从/boot/device.hints加载 #hints "GENERIC.hints" #默认的文件 makeoptions DEBUG=-g # 在内核中包括gdb(1)调试符号- # 出问题之前,不管我事儿…… # SCHED_4BSD是传统的、经过证明的BSD调度器。它使用全局的 # 运行队列,它与CPU关系不密切,对SMP的性能不是最好的。 # 它有非常好的交互性和优先级选择机制。 # # SCHED_ULE是新的试验性的调度器,它是为SMP设计的,但在单 # 处理器上运行一样出色。使用这个调度器的用户需要有对出现 # 非预期的崩溃和进行反馈做好心理准备。 options SCHED_4BSD #4BSD scheduler options SCHED_ULE #ULE scheduler,SMP上快许多 options INET #ipv4协议 options INET6 #IPv6通讯协议-外围设备不让我这么干:~( options FFS #必须有的FFS(Unix文件系统) options SOFTUPDATES #SoftUpdates支持,相信我,加上没错的 options UFS_ACL #ACL(访问控制表)支持 options UFS_DIRHASH #访问大目录时,以少量内存为代价提高性能 options MD_ROOT #MD作为根设备 options NFSCLIENT #NFS客户 options NFSSERVER #NFS服务 options NFS_ROOT #NFS作为跟文件系统; 需要NFSCLIENT options MSDOSFS #MSDOS文件系统 options CD9660 #ISO 9660文件系统 options PROCFS #进程文件系统(需要PSEUDOFS) options PSEUDOFS #伪文件系统框架 options COMPAT_43 #兼容 BSD 4.3 [必须保留!] options COMPAT_FREEBSD4 #兼容FreeBSD4 options SCSI_DELAY=2000 #探测SCSI前的延时 options KTRACE #ktrace(1)支持 options SYSVSHM #SYSV共享内存 options SYSVMSG #SYSV消息队列 options SYSVSEM #SYSV信号量 options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B实时扩展 options KBD_INSTALL_CDEV #/dev中安装CDEV options AHC_REG_PRETTY_PRINT # 调试时显示寄存器bit域 # 驱动程序将因此增大约128K options AHD_REG_PRETTY_PRINT # 同上,将增大约215K
# current分支调试[我不打算翻译了,如果你到了能调试内核 # 的层次,应该能看懂] options DDB #Enable the kernel debugger options INVARIANTS #Enable calls of extra sanity checking options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS options WITNESS #Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed # SMP支持 options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O device isa device eisa device pci # 软驱支持 device fdc
# DEVICE_POLLING可以让dc, fxp和sis设备更平稳地运行,不幸 # 的是它不能和SMP连用。 options DEVICE_POLLING options AUTO_EOI_1 # 8259A自动中断结束控制方式。 # 可以提高系统性能 options AUTO_EOI_2 # 没证明过这东西能用,我的机器崩了 # 将这个文件保存到内核,这样将来可以用 # strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p' # 找回 options INCLUDE_CONFIG_FILE options IPSEC #IPSec内核级支持,与IPSec互斥 options FAST_IPSEC # 快速IPSEC实现(需要相关硬件) options IPFILTER # ipfilter支持。 options RANDOM_IP_ID # 此选项有效阻止远程探测TCP报文生成 options TCP_DROP_SYNFIN #丢弃SYN+FIN的TCP包 options ZERO_COPY_SOCKETS # 这是对4.4BSD设计缺陷的重大改进 # 可以极大地提高网络性能 device crypto # 核心crypto(加密)支持 device cryptodev # /dev/crypto硬件访问支持
device hifn # Hifn 7951, 7781, etc. options PANIC_REBOOT_WAIT_TIME=0 # panic时重启等待时间 # 请参考tuning(7) options NMBCLUSTERS=4096 # 对于我的服务器合适的NMBCLUSTER makeoptions CONF_CFLAGS=-fno-builtin #不允许使用 memcmp等 # 应用程序最大、堆栈、默认内存大小。内存2GB options MAXDSIZ=(2047UL*1024*1024) options MAXSSIZ=(128UL*1024*1024) options DFLDSIZ=(2047UL*1024*1024) # ufs1 扩展属性支持。Ufs2不需要 options UFS_EXTATTR options UFS_EXTATTR_AUTOSTART # GEOM支持 options GEOM_AES options GEOM_APPLE options GEOM_BDE options GEOM_BSD options GEOM_GPT options GEOM_MBR options GEOM_PC98 options GEOM_SUNLABEL options QUOTA # 磁盘配额支持 # 优化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 |