免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: wangbin
打印 上一主题 下一主题

[FreeBSD] 我的AMD64位服务器参数和大家交流 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-05-17 16:33 |只看该作者
我觉得以下内容都没有必要:
options         INET6                   # IPv6 communications protocols
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         KTRACE                  # ktrace(1) support
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy drives
device          atapist         # ATAPI tape drives
device          ahc             # AHA2940 and onboard AIC7xxx devices
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
device          ahd             # AHA39320/29320 and onboard AIC79xx devices
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~215k to driver.
device          amd             # AMD 53C974 (Tekram DC-390(T))
device          isp             # Qlogic family
#device         ispfw           # Firmware for QLogic HBAs- normally a module
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          aic             # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
device          bt              # Buslogic/Mylex MultiMaster SCSI adapters
# SCSI peripherals
device          scbus           # SCSI bus (required for SCSI)
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)
device          amr             # AMI MegaRAID
device          arcmsr          # Areca SATA II RAID
device          ciss            # Compaq Smart RAID 5*
device          dpt             # DPT Smartcache III, IV - See NOTES for options
device          hptmv           # Highpoint RocketRAID 182x
device          rr232x          # Highpoint RocketRAID 232x
device          iir             # Intel Integrated RAID
device          ips             # IBM (Adaptec) ServeRAID
device          mly             # Mylex AcceleRAID/eXtremeRAID
device          twa             # 3ware 9000 series PATA/SATA RAID
device          aac             # Adaptec FSA RAID
device          aacp            # SCSI passthrough for aac (requires CAM)
device          ida             # Compaq Smart RAID
device          mfi             # LSI MegaRAID SAS
device          mlx             # Mylex DAC960 family
#device         pst             # Promise Supertrak SX6000
device          twe             # 3ware ATA RAID
device          agp             # support several AGP chipsets

另外,make.conf里面可以用
NO_MODULES=            # do not build modules with the kernel
MODULES_OVERRIDE=      linux ipfw

来控制内核模块的编译

论坛徽章:
0
12 [报告]
发表于 2007-05-17 17:41 |只看该作者
makeoptions     DEBUG=-g   

这个参数没有必要使用

论坛徽章:
0
13 [报告]
发表于 2007-05-18 10:36 |只看该作者
原帖由 一颗小白菜 于 2007-5-17 16:33 发表
我觉得以下内容都没有必要:

另外,make.conf里面可以用

来控制内核模块的编译



主板上起用了镜像,所以保留了RAId!

开始删除了scsi的内容,但是编译没有通过,所以就这样了!

论坛徽章:
0
14 [报告]
发表于 2007-05-18 10:37 |只看该作者
原帖由 ayun2001 于 2007-5-17 17:41 发表
makeoptions     DEBUG=-g   

这个参数没有必要使用



十分感谢。

一点一滴,为目前流行的机器打造一个精简的配置。

谢谢!

论坛徽章:
0
15 [报告]
发表于 2007-05-18 10:38 |只看该作者
原帖由 LnBSD 于 2007-5-17 15:04 发表


你看看内核编译里面的提示
跑web的时候,不建议打开这个选择



不是很明白,会增加负载吗??

论坛徽章:
0
16 [报告]
发表于 2007-05-18 10:38 |只看该作者
希望大家多提建议,下午重新编译看看。

论坛徽章:
0
17 [报告]
发表于 2007-05-18 16:32 |只看该作者
我看到了你的dmesg信息,但是你的dmesg里面实际上并没有任何SCSI相关的信息。我怀疑你主板提供的RAID功能使用
device          scbus
device          arcmsr
来作用的

论坛徽章:
0
18 [报告]
发表于 2007-05-18 16:50 |只看该作者
感谢大家,做了些调整,很正常。

论坛徽章:
0
19 [报告]
发表于 2007-05-18 20:56 |只看该作者

结合大家的建议优化的内核!

  1. machine         amd64
  2. cpu             HAMMER
  3. ident           web

  4. device          pf
  5. device          pflog
  6. device          pfsync
  7. options         ALTQ
  8. options         ALTQ_CBQ
  9. options         ALTQ_RED
  10. options         ALTQ_RIO
  11. options         ALTQ_HFSC
  12. options         ALTQ_PRIQ
  13. options         ALTQ_NOPCC
  14. options         PANIC_REBOOT_WAIT_TIME=0
  15. options         DEVICE_POLLING
  16. options         HZ=2000
  17. options         IPSTEALTH
  18. options         SMP
  19. options         SCHED_4BSD              # 4BSD scheduler
  20. options         PREEMPTION              # Enable kernel thread preemption
  21. options         INET                    # InterNETworking
  22. options         FFS                     # Berkeley Fast Filesystem
  23. options         SOFTUPDATES             # Enable FFS soft updates support
  24. #options        UFS_ACL                 # Support for access control lists
  25. #options        UFS_DIRHASH             # Improve performance on big directories
  26. options         PROCFS                  # Process filesystem (requires PSEUDOFS)
  27. options         PSEUDOFS                # Pseudo-filesystem framework
  28. options         GEOM_GPT                # GUID Partition Tables.
  29. options         COMPAT_43               # Needed by COMPAT_LINUX32
  30. options         COMPAT_IA32             # Compatible with i386 binaries
  31. options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
  32. options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
  33. options         COMPAT_LINUX32          # Compatible with i386 linux binaries
  34. options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI

  35. options         SYSVSHM                 # SYSV-style shared memory
  36. options         SYSVMSG                 # SYSV-style message queues
  37. options         SYSVSEM                 # SYSV-style semaphores
  38. options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
  39. options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
  40. options         ADAPTIVE_GIANT          # Giant mutex is adaptive.


  41. device          atpic                   # 8259A compatability

  42. # Linux 32-bit ABI support
  43. options         LINPROCFS               # Cannot be a module yet.

  44. # Bus support.
  45. device          acpi
  46. device          pci
  47. # ATA and ATAPI devices
  48. device          ata
  49. device          atadisk         # ATA disk drives
  50. device          ataraid         # ATA RAID drives


  51. # SCSI Controllers
  52. device          ahc             # AHA2940 and onboard AIC7xxx devices
  53. options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
  54.                                         # output.  Adds ~128k to driver.
  55. device          ahd             # AHA39320/29320 and onboard AIC79xx devices
  56. options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
  57.                                         # output.  Adds ~215k to driver.
  58. device          amd             # AMD 53C974 (Tekram DC-390(T))
  59. device          isp             # Qlogic family
  60. #device         ispfw           # Firmware for QLogic HBAs- normally a module
  61. device          mpt             # LSI-Logic MPT-Fusion
  62. #device         ncr             # NCR/Symbios Logic
  63. device          sym             # NCR/Symbios Logic (newer chipsets + those of `ncr')
  64. device          trm             # Tekram DC395U/UW/F DC315U adapters

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

  69. # SCSI peripherals
  70. device          scbus           # SCSI bus (required for SCSI)
  71. device          ch              # SCSI media changers
  72. device          da              # Direct Access (disks)
  73. device          sa              # Sequential Access (tape etc)
  74. device          cd              # CD
  75. device          pass            # Passthrough device (direct SCSI access)
  76. device          ses             # SCSI Environmental Services (and SAF-TE)

  77. # RAID controllers interfaced to the SCSI subsystem
  78. device          amr             # AMI MegaRAID
  79. device          arcmsr          # Areca SATA II RAID
  80. device          ciss            # Compaq Smart RAID 5*
  81. device          dpt             # DPT Smartcache III, IV - See NOTES for options
  82. device          hptmv           # Highpoint RocketRAID 182x
  83. device          rr232x          # Highpoint RocketRAID 232x
  84. device          iir             # Intel Integrated RAID
  85. device          ips             # IBM (Adaptec) ServeRAID
  86. device          mly             # Mylex AcceleRAID/eXtremeRAID
  87. device          twa             # 3ware 9000 series PATA/SATA RAID

  88. # RAID controllers
  89. device          aac             # Adaptec FSA RAID
  90. device          aacp            # SCSI passthrough for aac (requires CAM)
  91. device          ida             # Compaq Smart RAID
  92. device          mfi             # LSI MegaRAID SAS
  93. device          mlx             # Mylex DAC960 family

  94. options MAXCONS=4 # 不需要更多的控制台
  95. options SC_DISABLE_REBOOT # 禁止Ctrl+Alt+Del重启,必须以root登录。

  96. options SC_NO_CUTPASTE   # 禁用剪贴板[节省内存]
  97. options SC_NO_FONT_LOADING # 禁用字体加载[节省内存]
  98. options SC_NO_SYSMOUSE   # 禁用鼠标[节省内存]

  99. options VGA_NO_FONT_LOADING # 不需要保存/加载字体[节省内存]
  100. options VGA_NO_MODE_CHANGE  # 不需要修改显示模式[节省内存]

  101. # 浮点运算支持 - 请勿禁用
  102. device npx0 at nexus? port IO_NPX irq 13



  103. #XXX pointer/int warnings
  104. #device         pst             # Promise Supertrak SX6000
  105. device          twe             # 3ware ATA RAID


  106. atkbdc0 controls both the keyboard and the PS/2 mouse


  107. device          kbdmux          # keyboard multiplexer

  108. device          vga             # VGA video card driver

  109. device          splash          # Splash screen and screen saver support

  110. # syscons is the default console driver, resembling an SCO console
  111. device          sc

  112. device          agp             # support several AGP chipsets


  113. device          miibus          # MII bus support
  114. device          bge             # Broadcom BCM570xx Gigabit Ethernet

  115. # Pseudo devices.
  116. device          loop            # Network loopback
  117. device          random          # Entropy device
  118. device          ether           # Ethernet support
  119. device          pty             # Pseudo-ttys (telnet etc)
  120. device          bpf             # Berkeley packet filter
复制代码

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
20 [报告]
发表于 2007-05-18 21:01 |只看该作者
这个是得反复测试 才行 支持楼主这种精神
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP