免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3244 | 回复: 7
打印 上一主题 下一主题

安装了系统,再加内存,应该怎么配置? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-29 12:53 |只看该作者 |倒序浏览
dmesg结果如下:

Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-STABLE #0: Fri Mar 23 03:44:52 CST 2007
    [email=root@www.local.com:/usr/obj/usr/src/sys/SuperKernel-SMP-ULE-64bit]root@www.local.com:/usr/obj/usr/src/sys/SuperKernel-SMP-ULE-64bit[/email]
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D  CPU 2.66GHz (2660.21-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0xf47  Stepping = 7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x651d<SSE3,RSVD2,MON,DS_CPL,TM2,CNTX-ID,CX16,XTPR>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
real memory  = 2139029504 (2039 MB)
avail memory = 2057859072 (1962 MB)
ACPI APIC Table: <GBT    AWRDACPI>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <GBT AWRDACPI> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
acpi_button0: < src="./images/smilies/titter.gif" border=0 smilieid="9">ower Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <display, VGA> at device 2.0 (no driver attached)
pci0: <serial bus, USB> at device 29.0 (no driver attached)
pci0: <serial bus, USB> at device 29.1 (no driver attached)
pci0: <serial bus, USB> at device 29.2 (no driver attached)
pci0: <serial bus, USB> at device 29.3 (no driver attached)
pci0: <serial bus, USB> at device 29.7 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xa000-0xa03f mem 0xe1101000-0xe1101fff,0xe1000000-0xe10fffff irq 19 at device 1.0 on pci1
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:03:47:98:f5:ee
pci1: <network, ethernet> at device 5.0 (no driver attached)
pci0: <multimedia, audio> at device 30.2 (no driver attached)
isab0: < src="./images/smilies/titter.gif" border=0 smilieid="9">CI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 SATA300 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: < src="./images/smilies/titter.gif" border=0 smilieid="9">arallel port bus> on ppc0
plip0: <LIP network interface> on ppbus0
lpt0: <rinter> on ppbus0
lpt0: Interrupt-driven port
ppi0: <arallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROM> at iomem 0xc0000-0xca7ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to accept, logging limited to 20 packets/entry by default
ad2: 156333MB <Maxtor 6L160M0 BACE1G20> at ata1-master SATA150
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad2s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
Limiting closed port RST response from 206 to 200 packets/sec
Limiting closed port RST response from 202 to 200 packets/sec
Limiting closed port RST response from 203 to 200 packets/sec
Limiting closed port RST response from 205 to 200 packets/sec
Limiting closed port RST response from 205 to 200 packets/sec
Limiting closed port RST response from 204 to 200 packets/sec
Limiting closed port RST response from 205 to 200 packets/sec
Limiting closed port RST response from 204 to 200 packets/sec
Limiting closed port RST response from 205 to 200 packets/sec
Limiting closed port RST response from 203 to 200 packets/sec
Limiting closed port RST response from 205 to 200 packets/sec
Limiting closed port RST response from 201 to 200 packets/sec
Limiting closed port RST response from 204 to 200 packets/sec
Limiting closed port RST response from 204 to 200 packets/sec
Limiting closed port RST response from 203 to 200 packets/sec



TOP的结果如下:
last pid: 97084;  load averages:  1.53,  1.54,  1.74                                                                 up 29+20:30:49  21:56:28
153 processes: 8 running, 145 sleeping
CPU states: 34.3% user,  0.0% nice, 45.1% system,  2.2% interrupt, 18.4% idle
Mem: 693M Active, 785M Inact, 272M Wired, 84M Cache, 213M Buf, 3456K Free
Swap: 2002M Total, 7504K Used, 1995M Free


开机显示有2G内存,进入BSD系统后只认出有1G,该如何配置?

论坛徽章:
0
2 [报告]
发表于 2007-07-29 13:23 |只看该作者
real memory  = 2139029504 (2039 MB)

论坛徽章:
0
3 [报告]
发表于 2007-07-29 18:20 |只看该作者
Swap: 2002M Total

听说这个值应该是实际内存的两倍,为什么我这里只有2G而不是4G呢?

论坛徽章:
0
4 [报告]
发表于 2007-07-29 18:52 |只看该作者
原帖由 kingstone32 于 2007-7-29 18:20 发表
Swap: 2002M Total

听说这个值应该是实际内存的两倍,为什么我这里只有2G而不是4G呢?

Mem: 693M Active, 785M Inact, 272M Wired, 84M Cache, 213M Buf, 3456K Free

693M+785M>1G,怎么没有安装上呢?

swap是管理员在做系统的时候从硬盘上划出的交换区,和加不加内存没有关系。

至于两倍,是推荐,原因不知道。系统不会自己自动从硬盘上扩展swap的。

如果lz只是用来做日常应用而不是用来做服务器的,2G这么大的内存基本可以无视swap了,分32M都多。

[ 本帖最后由 995636 于 2007-7-29 18:54 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2007-07-29 23:32 |只看该作者
last pid:  2780;  load averages:  8.86,  8.80,  7.31   up 30+22:05:23  23:31:02
152 processes: 17 running, 135 sleeping
CPU states: 54.0% user,  0.0% nice, 32.3% system,  0.4% interrupt, 13.3% idle
Mem: 720M Active, 754M Inact, 270M Wired, 78M Cache, 213M Buf, 7736K Free
Swap: 2002M Total, 7612K Used, 1995M Free


2G内存好像不大够用,服务器是用来运行网站的,日IP3万左右,这里的7736K Free是什么意思呢?CPU大于30.0%后网站就慢得几乎不能动了,不知道是不是内存影响

论坛徽章:
0
6 [报告]
发表于 2007-07-30 01:09 |只看该作者
原帖由 kingstone32 于 2007-7-29 23:32 发表
last pid:  2780;  load averages:  8.86,  8.80,  7.31   up 30+22:05:23  23:31:02
152 processes: 17 running, 135 sleeping
CPU states: 54.0% user,  0.0% nice, 32.3% system,  0.4% interrupt, 13.3% idle
Mem: 720M Active, 754M Inact, 270M Wired, 78M Cache, 213M Buf, 7736K Free
Swap: 2002M Total, 7612K Used, 1995M Free


2G内存好像不大够用,服务器是用来运行网站的,日IP3万左右,这里的7736K Free是什么意思呢?CPU大于30.0%后网站就慢得几乎不能动了,不知道是不是内存影响

注意你的Swap空间使用情况。如果Swap开始被大量使用的话,说明你的内存已经不够用了。

论坛徽章:
0
7 [报告]
发表于 2007-07-30 14:17 |只看该作者
怎么知道Swap开始被大量使用?

论坛徽章:
0
8 [报告]
发表于 2007-07-30 16:04 |只看该作者
请看top最后一行
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP