道理我都懂,可是为什么内存 4G 只能识别 3G??

2015-10-17 21:02:32 +08:00
 tntsec

cat /etc/redhat-release
CentOS release 6.6 (Final)Markdown

free -m
total used free shared buffers cached
Mem: 3129

uname -a
Linux gov.jp 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

图片不会传,看贴吧里的图片吧
http://tieba.baidu.com/p/4107251680

8205 次点击
所在节点    Linux
37 条回复
yxaaa123
2015-10-18 08:26:40 +08:00
1g 给显卡了
wuxqing
2015-10-18 09:47:36 +08:00
用 dmesg | grep reserved
看看是不是被系统预留了
VYSE
2015-10-18 10:43:16 +08:00
咋还有说 32 位的,人家就是 x86_64 ,楼主去 bios 里看看可用内存就知道。例如 INTEL 945 之前的 memory-mapped I/O 与物理内存冲突干脆直接 bios 强行封印物理内存,有的封印多有的封印少。
gamexg
2015-10-18 10:43:39 +08:00
楼主的是 64 位系统...
Ouyangan
2015-10-18 10:49:50 +08:00
核显占用了吧
realpg
2015-10-18 11:23:59 +08:00
换主板。
你这主板就这样了,主板自身最高支持内存 4G ,且映射进系统时候会屏蔽不少内存。
G31 这玩意还用着呢……
chevalier
2015-10-18 11:30:32 +08:00
@tntsec 不到 1G , Windows 下面我看大概是 700M 左右
clink8001
2015-10-18 12:42:04 +08:00
操作系统也是软件,他的存在本身是要占用一部分内存的,剩下的才是可用的内存。
yksoft1
2015-10-18 15:48:59 +08:00
其实在某些笔记本上还可能小于 3GB
chenai00
2015-10-18 16:18:48 +08:00
真的是汪汪姐?😀😀😀
tntsec
2015-10-18 17:11:48 +08:00
@wuxqing dmesg | grep reserved
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved)
BIOS-e820: 00000000cf6f0000 - 00000000cf700000 (reserved)
BIOS-e820: 00000000fed00000 - 00000000fed00400 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ff380000 - 0000000100000000 (reserved)
e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
#4 [000009f800 - 0000100000] BIOS reserved ==> [000009f800 - 0000100000]
DMA zone: 103 pages reserved
Memory: 3182444k/3398336k available (5336k kernel code, 452k absent, 215440k reserved, 7016k data, 1292k init)
PCI: MCFG area at e0000000 reserved in ACPI motherboard resources
system 00:01: [mem 0xfed14000-0xfed19fff] has been reserved
system 00:07: [io 0x04d0-0x04d1] has been reserved
system 00:07: [io 0x0800-0x087f] has been reserved
system 00:07: [io 0x0480-0x04bf] has been reserved
system 00:07: [io 0x0900-0x090f] has been reserved
system 00:07: [mem 0xfed1c000-0xfed1ffff] has been reserved
system 00:07: [mem 0xfed20000-0xfed8ffff] has been reserved
system 00:09: [mem 0xffc00000-0xfff7ffff] has been reserved
system 00:0a: [mem 0xfec00000-0xfec00fff] could not be reserved
system 00:0a: [mem 0xfee00000-0xfee00fff] has been reserved
system 00:0c: [io 0x0280-0x028f] has been reserved
system 00:0c: [io 0x0290-0x029f] has been reserved
system 00:0d: [mem 0xe0000000-0xefffffff] has been reserved
system 00:0e: [mem 0x00000000-0x0009ffff] could not be reserved
system 00:0e: [mem 0x000e0000-0x000fffff] could not be reserved
system 00:0e: [mem 0x00100000-0xcf6fffff] could not be reserved
tntsec
2015-10-18 17:12:21 +08:00
@xierch 哈哈哈,看来你懂这个梗~
javaluo
2015-10-18 18:15:06 +08:00
@tntsec however 节点?
tntsec
2015-10-18 18:28:55 +08:00
@javaluo 啥?不懂
salmon5
2015-10-18 19:13:19 +08:00
http://serverfault.com/questions/81126/linux-x86-64-reports-3-2g-of-memory-instead-of-4g

Go in the BIOS. There should be a Memory Remap Feature option (probably in the Advanced menu) which is disabled by default. Enable it and try again.
tntsec
2015-10-18 19:34:05 +08:00
@salmon5
Mem: 3823

OK !!

他还感谢我,啊哈哈

You are welcome :) Thank you for showing us how to resolve that issue.
lyz1990
2015-10-19 15:47:20 +08:00
道理我都懂啊,可是我 16G 的内存在 64 位 Ubuntu 上也是显示的 15.4G  啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/228845

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX