免费注册 查看新帖 |

Chinaunix

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

为什么内存还是只认出3个G, 已经成功重新编译了内核 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-08 19:49 |只看该作者 |倒序浏览
先cvsup更新源码,
再make buildword
再make buildkernel KERNCONF=PAE
make installkernel KERNCONF=PAE
reboot
make isntallworld

中间除了报错没有audit组以外,无其它问题,这个问题当前也很好解决。

现在uname -a
FreeBSD xxx.net 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Fri Jun  8 19:25:04 CST 2007     root@xxx.net:/usr/obj/usr/src/sys/PAE  i386

ls -la /boot/kernel/kernel
-r-xr-xr-x  1 root  wheel  5641998 Jun  8 19:25 /boot/kernel/kernel

more /var/run/dmesg.boot | grep memory
real memory  = 3346202624 (3191 MB)
avail memory = 3272314880 (3120 MB)

而bios中看到的明明是4个G

高手帮忙看看吧,真要疯掉了。。。。。。。。

论坛徽章:
0
2 [报告]
发表于 2007-06-08 19:51 |只看该作者
以下是我的内核配置文件PAE,没有改动,直接用的
---------------------------------------------------------------------------
#
# PAE -- Generic kernel configuration file for FreeBSD/i386 PAE
#
# $FreeBSD: src/sys/i386/conf/PAE,v 1.16.2.4 2006/07/17 02:18:56 sam Exp $

include GENERIC

ident                xxxxxx
# To make a PAE kernel, the next option is needed
options                PAE                        # Physical Address Extensions Kernel

# Compile acpi in statically since the module isn't built properly.  Most
# machines which support large amounts of memory require acpi.
device                acpi

# Don't build modules with this kernel config, since they are not built with
# the correct options headers.
makeoptions        NO_MODULES=yes

# What follows is a list of drivers that are normally in GENERIC, but either
# don't work or are untested with PAE.  Be very careful before enabling any
# of these drivers.  Drivers which use DMA and don't handle 64 bit physical
# address properly may cause data corruption when used in a machine with more
# than 4 gigabytes of memory.

nodevice        ahb
nodevice        amd
nodevice        sym
nodevice        trm

nodevice        adv
nodevice        adw
nodevice        aha
nodevice        aic
nodevice        bt

nodevice        ncv
nodevice        nsp
nodevice        stg

nodevice        asr
nodevice        dpt
nodevice        mly
nodevice        hptmv

nodevice        ida
nodevice        mlx
nodevice        pst

nodevice        agp

nodevice        de
nodevice        txp
nodevice        vx

nodevice        nve
nodevice        pcn
nodevice        sf
nodevice        sis
nodevice        ste
nodevice        tl
nodevice        tx
nodevice        vr
nodevice        wb

nodevice        cs
nodevice        ed
nodevice        ex
nodevice        ep
nodevice        fe
nodevice        ie
nodevice        lnc
nodevice        sn
nodevice        xe

nodevice        wlan
nodevice        wlan_wep        # 802.11 WEP support
nodevice        wlan_ccmp        # 802.11 CCMP support
nodevice        wlan_tkip        # 802.11 TKIP support
nodevice        an
nodevice        ath                # Atheros pci/cardbus NIC's
nodevice        ath_hal                # Atheros HAL (Hardware Access Layer)
nodevice        ath_rate_sample        # SampleRate tx rate control for ath
nodevice        awi
nodevice        ral
nodevice        wi

nodevice        uhci
nodevice        ohci
nodevice        ehci
nodevice        usb
nodevice        ugen
nodevice        uhid
nodevice        ukbd
nodevice        ulpt
nodevice        umass
nodevice        ums
nodevice        ural
nodevice        urio
nodevice        uscanner
nodevice        aue
nodevice        axe
nodevice        cdce
nodevice        cue
nodevice        kue
nodevice        rue

论坛徽章:
0
3 [报告]
发表于 2007-06-08 22:03 |只看该作者
自己顶,
已经搞了我7天了,我快疯了。
不想重装amd64版本的,不报信心,装了也不知道能不能认出来,并且要备份的数据一大堆啊一大堆。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
4 [报告]
发表于 2007-06-08 22:15 |只看该作者
内存的型号和频率如何?

bios放电,再来。

论坛徽章:
0
5 [报告]
发表于 2007-06-08 22:26 |只看该作者
设定内核选项options         MAXMEM=你的内存

[ 本帖最后由 doctorjxd 于 2007-6-8 22:30 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2007-06-08 22:54 |只看该作者
原帖由 doctorjxd 于 2007-6-8 22:26 发表
设定内核选项options         MAXMEM=你的内存

我先本地虚拟机试试编译后能不能起来,明天等联系好机房的人再到服务器上面试试。

论坛徽章:
0
7 [报告]
发表于 2007-06-08 22:56 |只看该作者
原帖由 HonestQiao 于 2007-6-8 22:15 发表
内存的型号和频率如何?

bios放电,再来。

一条2G的,颗粒是现代的,
2条1G的,金士顿的
由于来源比较复杂,机房远在外地,频率还不清楚。。。。
放电。。。你真够狠啊,不过机房的人说bios里能看到4G的。。。

论坛徽章:
0
8 [报告]
发表于 2007-06-08 23:32 |只看该作者
原帖由 doctorjxd 于 2007-6-8 22:26 发表
设定内核选项options         MAXMEM=你的内存

我实在忍不住了,直接在服务器上面编译了,
可惜还是没认出来,
我在PAE文件中加入了一行
options MAXMEM="(4096*1024)"
重新编译,安装内核,reboot

sysctl -a | grep memory

real memory  = 3346202624 (3191 MB)
avail memory = 3274104832 (3122 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3274104832 (3122 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3274104832 (3122 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3272314880 (3120 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3272314880 (3120 MB)
hw.cbb.start_memory: 2281701376
p1003_1b.memory_protection: 0
p1003_1b.shared_memory_objects: 1

dmesg | grep memory

real memory  = 3346202624 (3191 MB)
avail memory = 3274104832 (3122 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3274104832 (3122 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3274104832 (3122 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3272314880 (3120 MB)
real memory  = 3346202624 (3191 MB)
avail memory = 3272314880 (3120 MB)


难道只能给bios"放电"?
.........................
已经疯了...

[ 本帖最后由 flyingkisser 于 2007-6-8 23:37 编辑 ]

论坛徽章:
1
15-16赛季CBA联赛之浙江
日期:2021-04-15 16:55:45
9 [报告]
发表于 2007-06-09 00:08 |只看该作者
看来内存大了也烦恼。。。。。。

论坛徽章:
26
处女座
日期:2016-04-18 14:00:4515-16赛季CBA联赛之深圳
日期:2020-06-02 10:10:5015-16赛季CBA联赛之广夏
日期:2019-07-23 16:59:452016科比退役纪念章
日期:2019-06-26 16:59:1315-16赛季CBA联赛之天津
日期:2019-05-28 14:25:1915-16赛季CBA联赛之青岛
日期:2019-05-16 10:14:082016科比退役纪念章
日期:2019-01-11 14:44:062016科比退役纪念章
日期:2018-07-18 16:17:4015-16赛季CBA联赛之上海
日期:2017-08-22 18:18:5515-16赛季CBA联赛之江苏
日期:2017-08-04 17:00:4715-16赛季CBA联赛之佛山
日期:2017-02-20 18:21:1315-16赛季CBA联赛之天津
日期:2016-12-12 10:44:23
10 [报告]
发表于 2007-06-09 09:10 |只看该作者
楼主算了吧,别折腾了。。。

没有4GB 就没有咯  不过个人觉得可能是 两个牌子的内存有冲突或则哪个牌子的内存有问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP