FreeBSD 板


LINE

在下有幸接管一个不算小的 bbs站. 因为我们的系统要使用掉相当多的记忆体, 在不开 PAE时只能抓到 4GB已经不够使用. 所以就开 PAE来试试看 :p 系统配备如下: Intel Pentium III Xeon 700 x 2 Transcend 512MB SDRAM ECC Registered x 12 (6GB) (onboard)AMD PCnet/PCI 10/100BaseTX (pcn0) (详细的 dmesg 我贴在最後面) 加上FreeBSD 4.9-RC FreeBSD 4.9-RC 对 PAE似乎没有很详细的说明 (或是我没有找到?) 不若 5.1R 有 /usr/src/sys/i386/conf/PAE 告知哪些 device 不支援的, 所以还有点麻烦 :( 由 5.1R 的 PAE中得知 pcn目前似乎不支援, 故又加了一张 intel 82559. 基本上只要在 kernel conf中加入 options PAE重新 compile kernel 即可, 唯所有的 module 应该直接 link 进 kernel 中: Since KLD modules are not compiled with the same options headers that the kernel is compiled with, they must not be loaded into a kernel compiled with the PAE option. 若一开机的时候看到类似这样的讯息: real memory = 6442450944 (6291456K bytes) kmem_suballoc: bad status return of 3. panic: kmem_suballoc mp_lock = 0000000c; cpuid = 0; lapic.id = 03000000 Uptime: 0s 表示 KVA不够大, 个人目前是使用 options KVA_PAGES=512 重新 compile後即可正常启动. 比较奇怪的是一直碰到 fxp0: DMA timeout fxp0: DMA timeout fxp0: DMA timeout fxp0: device timeout 我试了 82559 以及 82558B都碰到同样的讯息, 网路完全没有办法动, 但是将 options PAE拿掉後就没有任何问题. 所以看起来应该是和 PAE不相容(?) 真是相当怪 :( 後来将 fxp拿掉, 改用 onboard的 pcn, 竟然可以动 @_@ (因为在 5.1R 的 PAE里面有写 nodevice pcn @_@) 另外, 在有使用 PAE的时候, 速度感觉比较慢. 例如说进 single user mode 时, 以往 mount /usr 按下 enter後立刻就好了, 而使用 PAE後, 却要等个一两秒钟才会跳出来. 或者是有些程式跑起来 (ex: top, bbsd) 大部份的时间十分顺, 却在某些时候 (还没有抓到 pattern) 会突然卡一下, 可以卡个一两秒到五六秒, 所以相当明显. 可是系统 load 并没有很大 (cpu idle > 70%) 相当怪 :( 目前只有这样子, 等到待会儿系统 load 大起来的时候, 也许会有一些特别的东西出现 :p 我们的系统跑在 telnet://ptt.cc 一些相关的统计在 http://mrtg.ptt.cc 我个人的联络方式是 in2 _AT_ in2home.org 若您有任何问题或建议欢迎不吝啬指教 ^_^ --- 对了, 我的 ipfw 没有办法用, 一用就出现: ipfw: getsockopt(IP_FW_ADD): Invalid argument ipfw: getsockopt(IP_FW_ADD): Invalid argument ipfw: getsockopt(IP_FW_ADD): Invalid argument 有没有人知道是为什麽呢? 似乎我 kernel config有哪里设错了 :( kernel config -------------------------------------------------------------- machine i386 cpu I686_CPU ident ptt maxusers 512 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options UFS_DIRHASH #Improve performance on big directories options NFS #Network Filesystem options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=2000 #Delay (in ms) before probing SCSI options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev #options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. #options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. # To make an SMP kernel, the next two are needed options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O # To support HyperThreading, HTT is needed in addition to SMP and APIC_IO #options HTT # HyperThreading Technology device isa device eisa device pci # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices # SCSI peripherals device scbus # SCSI bus (required) device da # Direct Access (disks) device pass # Passthrough device (direct SCSI access) # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 device psm0 at atkbdc? irq 12 device vga0 at isa? # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver #device vt0 at isa? #options XSERVER # support for X server on a vt console #options FAT_CURSOR # start with block cursor # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines #options PCVT_SCANSET=2 # IBM keyboards are non-std # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 device sio2 at isa? disable port IO_COM3 irq 5 device sio3 at isa? disable port IO_COM4 irq 9 # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support #device fxp # Intel EtherExpress PRO/100B (82557, 82558) device pcn # AMD Am79C97x PCI 10/100 NICs # Pseudo devices - the number indicates how many units to allocate. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device pty # Pseudo-ttys (telnet etc) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter options IPFIREWALL options IPFIREWALL_DEFAULT_TO_ACCEPT options NMBCLUSTERS=16000 options AUTO_EOI_1 options CPU_ENABLE_SSE #options KVA_PAGES=288 options KVA_PAGES=512 options CONSPEED=115200 options COMPAT_LINUX options PAE dmesg ---------------------------------------------------------------------- Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.9-RC #0: Tue Oct 7 08:02:29 CST 2003 [email protected]:/usr/obj/usr/src/sys/ptt Timecounter "i8254" frequency 1193182 Hz CPU: Intel Pentium III Xeon (701.73-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6a1 Stepping = 1 Features=0x387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C\ MOV,PAT,PSE36,PN,MMX,FXSR,SSE> real memory = 6442450944 (6291456K bytes) avail memory = 5868003328 (5730472K bytes) APIC_IO: MP table broken: 8259->APIC entry missing! Programming 16 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 Programming 16 pins in IOAPIC #1 FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs cpu0 (BSP): apic id: 3, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 14, version: 0x000f0011, at 0xfec00000 io1 (APIC): apic id: 13, version: 0x000f0011, at 0xfec01000 Preloaded elf kernel "kernel" at 0xc0310000. Pentium Pro MTRR support enabled npx0: <math processor> on motherboard npx0: INT 16 interface pcib2: <ServerWorks host to PCI bridge> on motherboard IOAPIC #1 intpin 1 -> irq 2 IOAPIC #1 intpin 2 -> irq 9 pci2: <PCI bus> on pcib2 ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0x4000-0x40ff mem 0xefbff000-0xefbfffff irq 2 at device 1.0 on pci2 aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0x4100-0x41ff mem 0xefbfe000-0xefbfefff irq 9 at device 1.1 on pci2 aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs pcib0: <ServerWorks host to PCI bridge> on motherboard IOAPIC #1 intpin 0 -> irq 10 IOAPIC #1 intpin 3 -> irq 11 pci0: <PCI bus> on pcib0 pcn0: <AMD PCnet/PCI 10/100BaseTX> port 0x2200-0x221f mem 0xfebffc00-0xfebffc1f irq 10 at device 5.0 on pci0 pcn0: Ethernet address: 00:06:29:f6:11:da miibus0: <MII bus> on pcn0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: <S3 Savage 4 graphics accelerator> at 6.0 isab0: <ServerWorks IB6566 PCI to ISA bridge> at device 15.0 on pci0 isa0: <ISA bus> on isab0 pci0: <Unknown PCI ATA controller> at 15.1 pci0: <OHCI USB controller> at 15.2 irq 11 pcib3: <ServerWorks host to PCI bridge> on motherboard pci3: <PCI bus> on pcib3 pcib5: <ServerWorks host to PCI bridge> on motherboard pci5: <PCI bus> on pcib5 orm0: <Option ROM> at iomem 0xc0000-0xc9fff on isa0 pmtimer0 on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 device_probe_and_attach: atkbd0 attach returned 6 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A, console sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A APIC_IO: Testing 8254 interrupt delivery APIC_IO: Broken MP table detected: 8254 is not connected to IOAPIC #0 intpin 2 APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0 IP packet filtering initialized, divert disabled, rule-based forwarding enabled, default to accept, logging disabled Waiting 2 seconds for SCSI devices to settle SMP: AP CPU #1 Launched! pass3 at ahc0 bus 0 target 8 lun 0 pass3: <IBM YGLv3 S2 0> Fixed Processor SCSI-2 device pass3: 3.300MB/s transfers da4 at ahc1 bus 0 target 4 lun 0 da4: <ATA WDC WD800JB- 17.0> Fixed Direct Access SCSI-3 device da4: 160.000MB/s transfers (80.000MHz, offset 14, 16bit) da4: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) da0 at ahc0 bus 0 target 0 lun 0 da0: <IBM DDYS-T36950M S80D> Fixed Direct Access SCSI-3 device da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da0: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C) da5 at ahc1 bus 0 target 5 lun 0 da5: <ATA WDC WD800JB- 17.0> Fixed Direct Access SCSI-3 device da5: 160.000MB/s transfers (80.000MHz, offset 14, 16bit) da5: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) da6 at ahc1 bus 0 target 6 lun 0 da6: <ATA WDC WD800JB- 17.0> Fixed Direct Access SCSI-3 device da6: 160.000MB/s transfers (80.000MHz, offset 14, 16bit) da6: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) da3 at ahc1 bus 0 target 2 lun 0 da3: <FUJITSU MAN3367MP 0108> Fixed Direct Access SCSI-3 device da3: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged Queueing Enabled da3: 35044MB (71771688 512 byte sectors: 255H 63S/T 4467C) da1 at ahc0 bus 0 target 1 lun 0 da1: <IBM DDYS-T36950M S80D> Fixed Direct Access SCSI-3 device da1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da1: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C) da8 at ahc1 bus 0 target 10 lun 0 da8: <ATA WDC WD800JB- 77.0> Fixed Direct Access SCSI-3 device da8: 160.000MB/s transfers (80.000MHz, offset 14, 16bit) da8: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) da9 at ahc1 bus 0 target 11 lun 0 da9: <ATA WDC WD800JB- 77.0> Fixed Direct Access SCSI-3 device da9: 160.000MB/s transfers (80.000MHz, offset 14, 16bit) da9: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) da2 at ahc0 bus 0 target 2 lun 0 da2: <IBM DDYS-T36950M S80D> Fixed Direct Access SCSI-3 device da2: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da2: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C) da7 at ahc1 bus 0 target 9 lun 0 da7: <ATA WDC WD800JB- 17.0> Fixed Direct Access SCSI-3 device da7: 160.000MB/s transfers (80.000MHz, offset 14, 16bit) da7: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) da10 at ahc1 bus 0 target 12 lun 0 da10: <SEAGATE SX118202LS B804> Fixed Direct Access SCSI-2 device da10: 80.000MB/s transfers (40.000MHz, offset 15, 16bit), Tagged Queueing Enabled da10: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C) Mounting root from ufs:/dev/da0s1a --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.143







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BuyTogether站内搜寻

TOP